3
$\begingroup$

What can I set so that whenever I create a text cell, everything I enter into the text cell, whether plain text or some mathematical notation (Ctrl+9 on the Macintosh) is in a particular color I would like to choose?

$\endgroup$
  • 1
    $\begingroup$ The color of all text can be set by using Option Inspector to specify FontColor. $\endgroup$ – bbgodfrey Jul 31 '17 at 22:27
  • $\begingroup$ @bbgodfrey Thanks for this answer, but this sets all the colors ( I selected Blue ) to Blue. Even the input cell color is now blue, which I wanted to remain the usual black color. $\endgroup$ – David Jul 31 '17 at 23:11
  • $\begingroup$ Indeed, so. That is what I meant by "color of all text " Perhaps, progress can be made by means of a style sheet. $\endgroup$ – bbgodfrey Jul 31 '17 at 23:13
3
$\begingroup$

You can define a new style "BlueText" derived from the "Text" style.

blue_text

Update

This a partial answer to an issue raised by the OP in a comment to this answer.

I will work up a step by step explanation as soon as I can find the time. Might be a day or two. Meanwhile, you might look at this answer and this one. Also, you might search this site for "stylesheet". BTW the code I show in the private stylesheet needs to be entered with the cell opened to raw form; i.e., select the cell and press Ctrl+Shift+E to get that view. Press the same key combo again to go back to normal display.

$\endgroup$
  • $\begingroup$ This looks like a possible excellent introduction to forming my own stylesheet. Are you using Mathematica 11.1.1? I opened a new notebook, saved it as BlueNotebook.nb. I selected the Format->Edit Stylesheet menu and entered BlueText in the "Enter a style menu" block. Then I entered the code you suggested. But then I don't know where those menus came from or what I am to do next. Can you add further explanation. I appreciate this answer. $\endgroup$ – David Aug 2 '17 at 1:07
  • $\begingroup$ @David. I have written the step-by-step tutorial on creating a stylesheet. You can find it here $\endgroup$ – m_goldberg Aug 4 '17 at 22:41
  • $\begingroup$ Outstanding! :-) Your help over the years has been at a really exceptional level and have helped me to learn so much about Mathematica. Thanks again. $\endgroup$ – David Aug 5 '17 at 23:20

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.