I was creating some custom notations using the Notation package and it works fine. I put it in my default personal package, and it loads fine on Mathematica's startup. To make it complete I need just one more thing. How can I suppress the Notation palette from appearing every time I launch Mathematica? Is there some command that I can put into my package?
2 Answers
$\begingroup$
$\endgroup$
1
The answer is to set
Notation`AutoLoadNotationPalette = False
prior to loading Notation`
, e.g.
Notation`AutoLoadNotationPalette = False
(* .... *)
Needs["Notation`"]
or
Notation`AutoLoadNotationPalette = False
(* .... *)
BeginPackage["MyPackage`", {"Notation`"}]
$\begingroup$
$\endgroup$
5
I recommend using Block
:
Block[{Notation`AutoLoadNotationPalette = False},
Needs["Notation`"]
]
Or:
Block[{Notation`AutoLoadNotationPalette = False},
BeginPackage["MyPackage`", {"Notation`"}]
]
This way you do not prevent the palette from displaying when the user calls << Notation`
, which could be aggravating.
-
$\begingroup$ Now I understand how it works!.. Nice block application. tks $\endgroup$– MurtaCommented Jan 31, 2013 at 11:04
-
$\begingroup$ @Murta I love those moments of recognition. :-) $\endgroup$ Commented Jan 31, 2013 at 11:09
-
$\begingroup$ You deserve, sorry for the delay! %) $\endgroup$– MurtaCommented Jan 31, 2013 at 11:21
-
$\begingroup$ @Murta I think perhaps my prior comment was misunderstood. I was referring to moments of suddenly understanding something, which I find a pleasant sensation. I did not mean that I was seeking personal recognition, though I admit that too can be nice. $\endgroup$ Commented Jan 31, 2013 at 11:25
-
$\begingroup$ Wow!.. yes.. I really misunderstood. But no problems because you still deserves .. rsrs. Now, about the intelectual recognition moment, yes! it's amazing. $\endgroup$– MurtaCommented Jan 31, 2013 at 11:29