Formatting Print statements.

There are occasions when you want to format Print statements to draw attention to them. The trick is to write some auxilliary functions and use them inside the Print command.

The auxilliary functions.

Here are two example functions, both using StyleForm to format the output.

f1[x_] := StyleForm[x, FontFamily -> "Chicago",FontSize -> 24,FontColor-> RGBColor[1,0,0],FontWeight -> "Bold"]

f2[x_] := StyleForm[x, FontFamily -> "Times",FontSize ->18,FontColor-> RGBColor[0,0,1],FontWeight -> "Bold"]

An example

Here we use the two functions to format our Print statement output.

Print[f2["This is a"]," ",f1["Test"]," ","of our functions"]