13.07.2015 Views

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Notebooks</strong> and <strong>Documents</strong> 91Styles and Fonts in OutputStyle@expr,optionsDStyle@expr,"style"Dprint with the specified style optionsprint with the specified cell styleSpecifying output styles.In[1]:=The second x 2 is here shown in boldface.8x^2, Style@x^2, FontWeight -> "Bold"D sD, 8s, 10, 20This shows the text in the Helvetica font.In[3]:= Style@"some text", FontFamily -> "Helvetica"DOut[3]= some textStyle allows an abbreviated form of some options. For options such as FontSize, FontWeight,FontSlant and FontColor, you can include merely the setting of the option.Options are specified here in a short form.In[4]:= Style@"text", 20, ItalicDOut[4]= textoptiontypical setting(s)FontSize 12 size of characters in printer's pointsFontWeight "Plain" or "Bold" weight of charactersFontSlant "Plain" or "Italic" slant of charactersFontFamily "Courier" ,font family"Times" , "Helvetica"FontColor GrayLevel@0D color of charactersBackground GrayLevel@1D background color for charactersA few options that can be used in Style.If you use the notebook front end for <strong>Mathematica</strong>, then each piece of output that is generatedwill by default be in the style of the cell in which the output appears. By usingStyle@expr, "style"D however, you can tell <strong>Mathematica</strong> to output a particular expression in a

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!