Re: Notebook Styles

*To*: mathgroup at smc.vnet.net*Subject*: [mg8737] Re: Notebook Styles*From*: "P.J. Hinton" <paulh>*Date*: Sat, 20 Sep 1997 22:28:04 -0400*Organization*: Wolfram Research, Inc.*Sender*: owner-wri-mathgroup at wolfram.com

Derick J.R. Qua wrote: > Hello... just a quick question from a "3.0" newbie. In Mathematica 2, I used > to be able to change the default style (font) with which (say) the Input or > Ouput cells are rendered by simple text editing of the defaults notebook. > How do I do the same with Mathematica 3.0? E.g. I want to change "Courier" > to "Lucida Sans Typewriter" ... Thanks.... A similar approach exists under Mathematica 3.0. The default notebook you describe has been replaced by a host of "style sheet" notebooks. Default.nb is the one that is used by default. To change the appearance of the type you describe, do the following: (1) Click on the menu command sequence Format -> Edit Style Sheet (2) You'll get a dialog box asking if you want to import a private copy of the style sheet to be used only by that notebook or if you want to edit the shared style sheet (under Unix systems, I don't think regular users have the permission levels to edit the shared style sheet, but they can view the styles. At the beginning, you'll probably want to just import the styles so that you don't louse up the master style sheets. If you find a change that you really like, you can export this style out as a style sheet of your own (more on that later). (3) Click open the FormatType Styles cell group. Many newbies make the mistake of trying to change the styles for Input/Output, but it doesn't work this way. The reason is that the FormatType controls the appearance of BoxData expressions, while the InputOutput affects only TextData expressions. In most cases, what you type into Input and Output cells is BoxData. (4) Select the prototype cell for the Form that you want to change. You probably want to change StandardForm. (5) Click on the menu sequence Format -> Font -> (choose your font here). The text of the cell should change font. (6) Double click the cell group shut and close the window. The changes should be reflected in the notebook now. (7) You can export the style as notebook by bringing up the Style Sheet and saving it as a regular notebook. Once this is done, you can place this Style Sheet in a directory where Mathematica looks to find Style Sheet notebooks. Under Macintosh, one place is System Folder:Preferences:Mathematica:3.0:FrontEnd:StyleSheets Under Windows 95, one place is Program Files\Common Files\Mathematica\3.0\FrontEnd\StyleSheets Under Windows NT, your preferences may get written to your home directory [HOMEDRIVE][HOMEPATH]\Mathematica\3.0\FrontEnd\StyleSheets Under Unix, the place is ~/.Mathematica/3.0/FrontEnd/StyleSheets Note that in each situation, you'll probably need to create the StyleSheets directory yourself. When you start Mathematica again, notebooks you have placed in this directory will appear on the Format -> Style Sheet menu. -- P.J. Hinton Mathematica Programming Group paulh at wolfram.com Wolfram Research, Inc. http://www.wolfram.com/~paulh/ Disclaimer: Opinions expressed herein are those of the author alone.