18
$\begingroup$

Is there a way in which when you choose to format the size of the font within your notebook, for a particular cell, when you go into another cell, the default size font (12pt) will not be re-activated. I want the font size to stay constant throughout the entire notebook, until I go back and need to manually change it by hand.

Example:

Format -> Size -> 16 Point

$\endgroup$
17
$\begingroup$

There are a variety of ways to do this. One can use Stylesheets as noted by acl. Perhaps the most direct way is this:

For one Notebook:

SetOptions[EvaluationNotebook[], FontSize -> 16]

For all Notebooks:

SetOptions[$FrontEnd, FontSize -> 16]

You can also set FontSize for different Box types, such as GraphicsBox:

SetOptions[$FrontEnd, GraphicsBoxOptions -> {BaseStyle -> {FontSize -> 15}}]

If you are more comfortable with a GUI, all of these options are available through the Options Inspector in the Format menu.


If you decide to go the advanced route and use style sheets here is a guide to get you started:

David Park's StyleSheet creation notes (.zip file)


Depending on your goals, this question may also be of interest:

How to set default magnification for all windows

$\endgroup$
12
  • $\begingroup$ good point, more direct if less general $\endgroup$ – acl Feb 18 '12 at 23:44
  • $\begingroup$ Mr. Wizard. Thank You so much, this works perfect. One thing, you forgot to add the s to the end of Option for the first two dealing with the notebooks. $\endgroup$ – night owl Feb 19 '12 at 0:31
  • $\begingroup$ @nightowl I'm glad I could help. I rely heavily on spell-check and I was typing that from memory. Thanks for the catch. $\endgroup$ – Mr.Wizard Feb 19 '12 at 0:41
  • 1
    $\begingroup$ OK, so none of this seems to work. I am running Mathematica 11.0.0.0 I am running the standard notebook. SetOptions[EvaluationNotebook[], FontSize -> 16] -- Does nothing. What is this supposed to do? Change the font size in all the boxes immediately? Change the font size in all future boxes? SetOptions[$FrontEnd, FontSize -> 16] -- Has no discernable effect, either to the current notebook, or to any others that I open, or after I restart Mathematica. Format menu => OptionInspector=> Font size (by search). There is no pull-down next to FontSize, and changing the number (13) directly undoes as s $\endgroup$ – Richard Hartley Apr 17 '18 at 1:23
  • 1
    $\begingroup$ None of the suggestions seems to work for me either: MMA 12.0 on Mac OS 10.11.6. Does anyone know why these suggestions don't work, or how to do this? $\endgroup$ – Michael B. Heaney Jun 4 '19 at 2:54
6
$\begingroup$

Yes: you may use stylesheets for this. See also this.

$\endgroup$
1
  • 1
    $\begingroup$ I don't feel up to explaining in detail how to set up, use and modify stylesheets; if someone else does, please do so and I'll remove my answer $\endgroup$ – acl Feb 18 '12 at 23:39
0
$\begingroup$

You can zoom in and out the entire stylesheet (text and figures) by holding Crtl while rolling the mouse wheel.

Note that this won't scale the text menus nor Mathematica's hints.

$\endgroup$
2
  • $\begingroup$ This is about as useful as advising the OP to sit closer to, or further away from, his (or her) screen. It can certainly make text look bigger or smaller, but it won't reset the size of the fonts used. $\endgroup$ – High Performance Mark Mar 14 '18 at 11:11
  • $\begingroup$ @HighPerformanceMark it has the same visual effect, and since most of the time, people change the font size for readibility issues, this is actually relevant. $\endgroup$ – P-Gn Mar 14 '18 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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