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.

92 <strong>Notebooks</strong> and <strong>Documents</strong>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 adifferent style.In[5]:=Here is an expression output in the style normally used for section headings.Style@x^2 + y^2, "Section"DOut[5]= x 2 + y 2"Cells as <strong>Mathematica</strong> Expressions" describes in more detail how cell styles work. By usingStyle@expr, "style", optionsD you can generate output that is in a particular style, but with certainoptions modified.Representing Textual Forms by BoxesAll textual and graphical forms in <strong>Mathematica</strong> are ultimately represented in terms of nestedcollections of boxes. Typically the elements of these boxes correspond to objects that are to beplaced at definite relative positions in two dimensions.In[1]:=Here are the boxes corresponding to the expression a + b.ToBoxes@a + bDOut[1]= RowBox@8a, +, b

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

Saved successfully!

Ooh no, something went wrong!