Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It used to be quite straightforward to change the default settings of a notebook in terms of inputs, outputs, text styles and font sizes in previous versions of Mathematica using initialization cells with commands such as $TextStyle and $FormatType.

However, as of Mathematica version 6, functions have been superseded by BaseStyle. May I know how to use this new function to accomplish the same?

share|improve this question
user656570 - Could you configure your account properly so that you have a real user name? – Simon Jan 19 '12 at 12:15
See v5_2/functions/$TextStyle for the old documentation. – Simon Jan 19 '12 at 12:18
up vote 7 down vote accepted

Just use SetOptions[Graphics, BaseStyle -> {...}]. For example

SetOptions[Graphics, BaseStyle -> {Large, Red, FontFamily -> "Times", Italic}];
Graphics[{Circle[], Text["test"]}]


Note that the Text inherits its BaseStyle from the surrounding Graphics. The Text function also takes a BaseStyle option, but for some reason it doesn't seem to do anything (in Mma v8.0.4) - this might be a bug. For example:

SetOptions[Text, BaseStyle -> {Large, "Color" -> Green}]
{Text["test"], Text["test"]//Graphics}


However explicit BaseStyle options passed to Text do work:

Graphics[{Circle[], Text["test", BaseStyle -> {Large, "Color" -> Green}]}]


share|improve this answer
Possibly related question: How can I work out which functions work with SetOptions? – Simon Jan 20 '12 at 23:29

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.