Styles and Fonts in Output

Specifying output styles.

The second (x^2) is shown in boldface here:

{x^2,Style[x^2,FontWeight->"Bold"]}

This shows the word text in font sizes from 10 to 20 points:

Table[Style["text",FontSize->s],{s,10,20}]

This shows the text in the Helvetica font:

Style["some text",FontFamily->"Helvetica"]

(RefLink[Style, paclet:ref/Style]) allows an abbreviated form of some options. For options such as (RefLink[FontSize, paclet:ref/FontSize]), (RefLink[FontWeight, paclet:ref/FontWeight]), (RefLink[FontSlant, paclet:ref/FontSlant]), and (RefLink[FontColor, paclet:ref/FontColor]), you can include merely the setting of the option.

Options are specified here in a short form:

Style["text",20, Italic]

A few options that can be used in (RefLink[Style, paclet:ref/Style]).

If you use the notebook front end for the Wolfram System, then each piece of output that is generated will by default be in the style of the cell in which the output appears. By using (RefLink[Style, paclet:ref/Style])[expr,"style"], however, you can tell the Wolfram System to output a particular expression in a different style.

Here is an expression output in the style normally used for section headings:

Style[x^2+y^2,"Section"]

"Cells as Wolfram Language Expressions" describes in more detail how cell styles work. By using (RefLink[Style, paclet:ref/Style])[expr,"style",options] you can generate output that is in a particular style, but with certain options modified.