10
$\begingroup$

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?

$\endgroup$

2 Answers 2

13
$\begingroup$

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`"}]
$\endgroup$
1
  • $\begingroup$ Exact what I need! Tks! $\endgroup$
    – Murta
    Oct 7, 2012 at 14:17
5
$\begingroup$

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.

$\endgroup$
5
  • $\begingroup$ Now I understand how it works!.. Nice block application. tks $\endgroup$
    – Murta
    Jan 31, 2013 at 11:04
  • $\begingroup$ @Murta I love those moments of recognition. :-) $\endgroup$
    – Mr.Wizard
    Jan 31, 2013 at 11:09
  • $\begingroup$ You deserve, sorry for the delay! %) $\endgroup$
    – Murta
    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$
    – Mr.Wizard
    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$
    – Murta
    Jan 31, 2013 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.