I created a Stylesheet that increased the sizes of the fonts for the styles Input, Output and Text. Still, when I use the command Print[] the output comes out tiny.

In the code below I added some comments to the program trying to convey what is happening. The last line is not a Mathematica Output line, since the output of Print[] is Null. I omitted the line with that output. The last line is what is printed on the screen by Print[] (except for my comments).

How do I change the font size for the output of the Print[] command?

In[126]:= "Hello, World!" (* This text in big font *)

Out[126]= Hello, World! (* This text in big font *)

In[127]:= Print["Hello, World!"] (* This text in big font *)

Hello, World! (* This text in tiny font *)

You need to specify formatting directives for the "Print" style. Adding this cell to the custom style sheet:

 FontColor->RGBColor[1, 0, 0]]

Should produce:

enter image description here

There is also a "MSG" style for messages:

 FontColor->RGBColor[1, 0.5, 0]]

enter image description here

Both of these can be conveniently created by typing either Print or MSG (without quotation marks) into the Enter a style name: field of the Style Definitions editor, then using the standard formatting tools on the generated cells.


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.