Wolfram Computation Meets Knowledge

How do I change the font in input or output cells?

Read this article in: Deutsch,Español, Français, 日本語, 한국어, Português, 中文


You can change the font used for input and output cells in all notebooks to your preferred one, such as Courier, by evaluating the following:

    CurrentValue[$FrontEnd, {StyleHints, "CodeFont"}] = "Courier"    

This will undo these changes.

   CurrentValue[$FrontEnd, {StyleHints, "CodeFont"}] = Inherited     

Note that the fonts used in mathematics typesetting are the supplied MathFonts. This setting cannot be changed.

To alter the styling of a given font, edit the input or output cell style in a stylesheet.

Here we demonstrate the procedure for input cells. The procedure for output cells is the same.

  1. From the menu bar, select FormatEdit Stylesheet. A blank stylesheet opens.
  2. Under Customize Inherited Style, select the Input cell style and make sure the Input cell bracket is highlighted.



  3. Use the Format menu selection to edit the characteristics (FormatFace or Background Color, for example). Here we change the font face to italic:


  4. Click the FileInstall... An install dialog appears. Enter the stylesheet name and select who the users will be. Click OK to confirm.

Now this stylesheet is available under FormatStylesheet.

You may wish to make this stylesheet the default one for your Mathematica.

Is this article helpful?
Yes
No

Any comments?

Thank you for your feedback.

Submit

Contact Support

Whether you have a question about billing, activation or something more technical, we are ready to help you.

1-800-WOLFRAM (+1-217-398-0700 for international callers)

Customer Support

Monday–Friday
8am–5pm US Central Time

  • Product registration or activation
  • Pre-sales information and ordering
  • Help with installation and first launch

Advanced Technical Support (for eligible customers)

Monday–Thursday
8am–5pm US Central Time

Friday
8:30–10am & 11am–5pm US Central Time

  • Priority technical support
  • Product assistance from Wolfram experts
  • Help with Wolfram Language programming
  • Advanced installation support