Installation guide
Marking U p Text in Cells for Publishing
Format
How to Produce
Format Resultin g Code Pu bl ished Results
LaTeX markup
1 Position the cursor
before the line where
you want to add
LaTeX markup.
2 Select
Cell > Insert Text
Markup > LaTeX
Markup.
3 Replace the inserted
LaTeX markup (as
shown in the next
column) with your
desired text. Be
careful, however, to
keep the percent signs
(%) at the beginning
of each line.
% <latex>
%
\begin{tabular}{|r|r}
% \hline $n$&$n!$\\
\\hline 1&1\\ 2&2\\
3&6\\ \\hline
% \end{tabular}
% </latex>
TeX Equations
and symb ols
1 Position the cursor
before the line where
you want to add an
equation or symbols.
2 Select Cell > Insert
Text Markup > TeX
Equation.
3 Replace the inserted
text inserted,
e^{\pi
i}+1=0
,with
your desired TeX
equation. See step in
the exam ple.
% $$e^{\pi
i}+1=0$$
%
The $$ at the start
and end of a block
description distinguish
the TeX equation.
For a list of symbols
you can display and
the character sequence
to create them, see
the
String property
on MATLAB graphics
reference page for
Text
Properties
.
In the example, line 7
includes a TeX equation:
% $$0\leq 6\pi$$
8-19