Message Boards Message Boards

0
|
7396 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Change the input cell's font?

Hi, everyone. I am now using Mathematica 11.1 in Windows 10 to write reports. I found that I cannot change "input" cell's font and I also found that the font displayed in notebook is not what it sets in sheet style. The problems are below:

Click [Format] -> [Edit Sheet Style] -> [Choose a style] -> Select [input] , then using "Font..." menu to set the font of "input".

  1. The default font is "Times New Roman", but the font displayed in notebook is NOT.
  2. Setting the font to other styles, say, "Courier New", even the font in sheet style IS changed, but the font in notebook IS NOT.

Are they bugs in Mathematica or my setting method is WRONG?

Thanks a lot!!

POSTED BY: Kui Chen
3 Replies
Posted 7 years ago

But why cannot change the font in [Edit Sheet Style]?

You can, but instead of FontFamily you should change StyleHints as shown above.

POSTED BY: Alexey Popkov
Posted 7 years ago

You need to change the default font. For example, changing it to Courier:

SetOptions[$FrontEnd, StyleHints -> {"CodeFont" -> "Courier"}]

Related MMa.SE question:

POSTED BY: Alexey Popkov

That works!!! Thank you very much!! But why cannot change the font in [Edit Sheet Style]?

POSTED BY: Kui Chen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract