|
[Date Index]
[Thread Index]
[Author Index]
Using the Notation package in an application
- To: mathgroup at smc.vnet.net
- Subject: [mg60340] Using the Notation package in an application
- From: John Browne <jbrowne at swin.edu.au>
- Date: Tue, 13 Sep 2005 06:07:46 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I am using Jason Harris's (wonderful) Notation package in a
Mathematica application.
It works well except for a beep on loading.
"Why the Beep?..." tells me "Mathematica could not understand the
expression you tried to evaluate. It left the insertion bar at the
place where it got confused."
The insertion bar is left between the B and the e of BeginPackage.
I have included some code below which reproduces the problem. Because
it's an application, I want neither the Notation palette to load, nor
the Style Sheet to be updated. Hence the first two (important) lines.
I emphasise that the application still seems to work correctly. I am
concerned though, that the beep and "Why the Beep?..." message may
disconcert any eventual users of the application. So I would like to
avoid them.
For those who haven't come across the Notation package, I highly
recommend looking at it. I would love to see it mainstreamed to the
kernel.
Thanks
John
__________________________________________
Utilities`Notation`AutoLoadNotationPalette=False;
Utilities`Notation`AutoUpdateNotationStyleSheet=False;
BeginPackage["MyPackage`","Utilities`Notation`"];
MyFunction::usage="MyFunction[x] squares x.";
Begin["`Private`"];
MyFunction[x_]:=x^2;
End[];
EndPackage[];
__________________________________________
John Browne
jbrowne at swin.edu.au
Prev by Date:
Help with constraints in a optimazation problem?
Next by Date:
Draw3D ColorFunction->Hue
Previous by thread:
Help with constraints in a optimazation problem?
Next by thread:
Draw3D ColorFunction->Hue
|