Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'd like to set Mathematica ( up so it opens new notebooks with the "NaturalColor" stylesheet and with a window size like {800,770}. I tried to change default stylesheet via:

" OptionInspector -> Global Preferences -> Global Options\File Locations\Default Style Definition "

and I get this ugly notebook instead of this one.

And when I Change the value of "WindowSize" from "Medium" to "{800,770}" under "Notebook Options\Window Properties", it just does nothing.

This is driving me crazy, any ideas ?

share|improve this question

migrated from stackoverflow.com Feb 26 '12 at 23:34

This question came from our site for professional and enthusiast programmers.

2 Answers 2

The default window size can be controlled from two different places. The first is the Global $FrontEnd WindowSize, set through the Option Inspector > Global Preferences or with:

SetOptions[$FrontEnd, WindowSize -> {300, 900}]

The second is the WindowSize of the style sheet itself. If it is defined, the WindowSize of the style sheet will overrule the setting above. You set the style sheet size through the Option Inspector > Selected Notebook or by evaluating this inside the style sheet itself:

SetOptions[EvaluationNotebook[], WindowSize -> {300, 900}]

To select the default style sheet, click the button to the right of the setting name, and use the file browser:

Mathematica graphics

share|improve this answer
window size and window position cannot be set globally for newly opened notebooks. Had this confirmed by Wolfram after a couple of other questions here asking similar. You can only set these at the notebook level, i.e. the notebook has to open first at its default position with default size before you can change these settings. –  Mike Honeychurch Feb 27 '12 at 21:37
@Mike, I just tested this again to make sure I'm not blowing smoke. It works as I described. Are you sure the style sheet doesn't have a WindowSize setting embedded in it that is overriding the global setting? –  Mr.Wizard Feb 28 '12 at 0:11
Maybe we are talking apples and oranges -- what did you test? I was talking about an inability to globally set a window size for all notebooks via e.g. a global setting in the option inspector (or equivalent code). It is possible to set default sizes for various dialog boxes globally but not for notebooks. I am on Mac but when I asked Wolfram I also asked about Windows since it was originally a Windows question on here that alerted me to this absence. Ditto the WindowMargins. –  Mike Honeychurch Feb 28 '12 at 7:15
@Mike your insistence caused me to look at this once again, and the situation is more complicated than I thought. I always create a new notebook with a button that calls NotebookCreate[StyleDefinitions -> . . .] and this produces different behavior than using File > New > Notebook. With this it is possible to get the specified Notebook WindowSize, and theoretically one could edit MenuSetup.tr to get the same result from the menu. I shall try to update my answer today with a more complete analysis of how this works. –  Mr.Wizard Feb 28 '12 at 16:00
Yes it would be possible to do it that way because you are setting the specific notebook option within the notebook you create. I guess I was referring to the current built in availability rather than buttons a user can create. –  Mike Honeychurch Feb 28 '12 at 20:37

For the first part of your question: To change the style definition for the default notebook, youe need to change the value of the OptionInspector -> Global Preferences -> Global Options\File Locations\Default Style Definition to

 FrontEnd`FileName[{"Creative"}, "NaturalColor.nb"]


enter image description here

enter image description here

Note: that you need to hit Enter after you type anything in an input field in the Options Inspector. Clicking on the Apply button or anywhere outside the input field without hitting Enter just resets the field value.

share|improve this answer
It worked for the Stylesheet but, the windows are still opened in {707, 639} whenever I hit Ctrl+N ... and the value under "Option Inspector > Selected Notebook >Window Properties" returns to : " {825, FEPrivateIf[FEPrivateSameQ[FEPrivate$OperatingSystem, "Unix"], 11, 0] + FEPrivateIf[FEPrivateSameQ[FEPrivateLess[FEPrivate`$DaysUntilExpiration, 15], True], 505, 451]} " upon restart –  user1234161 Feb 27 '12 at 10:23
@user1234161, re window sizes for new notebooks please see Mike's comments on Mr.Wizard's answer. –  kguler Feb 29 '12 at 9:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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