LaTeXML

 view release on metacpan or  search on metacpan

t/math/sampler.tex  view on Meta::CPAN

  a \,+\, b, \qquad
  a \>+\> b, \qquad
  a \;+\; b, \qquad
\end{equation}
% m:phantom
\begin{eqnarray}
  X &=& f(x) + g(x) + h(x) \\
    &=& f(x) + \phantom{g(x)} + h(x) \\
\end{eqnarray}
%% m:mfenced, @open, @close [not really used]

Not used: \mml{mfenced}, \mml{mphantom};
used only for errors: \mml{merror}.

\section{Script and Limit Schemata}
A variety of sub- and super-scripts (\mml{msub}, \mml{msup}, \mml{msubsup}),
under- and over-scripts (\mml{munder}, \mml{mover}, \mml{munderover}),
some as accents, and pre-scripts (\mml{multiscripts}, \mml{mprescripts}).
% m:sub, m:sup, m:subsup

\begin{equation}
 a^{b},\qquad
 a^{b^{c}},\qquad
 a^{b^{c^{d}}},\qquad
 a_{b},\qquad
 a_{b_{c}},\qquad
 a_{b_{c_ {d}}},\qquad
 a^{b}_{c}
\end{equation}

% m:under, m:over, m:underover
\begin{equation}
 \sum^{b},\qquad
 \sum_{b},\qquad
 \sum^{b}_{c}
\end{equation}
\begin{equation}
X = \sum_{1\le i \le j \le n} X_{ij},\qquad
X = \sum_{\mathclap{1\le i \le j \le n}} X_{ij},\qquad
%X = \smashoperator{\sum_{1\le i \le j \le n}} X_{ij},\qquad
X = \smashoperator[r]{\sum_{1\le i \le j \le n}} X_{ij},\qquad
X = \smashoperator[l]{\sum_{1\le i \le j \le n}} X_{ij}
\end{equation}

\begin{equation}
 a \overset{\mathrm{def}}{\rightarrow} b, \qquad
 a \underset{\mathrm{def}}{\rightarrow} b,\qquad
 a \overrightarrow{\mathrm{def}} b,\qquad
 a \underrightarrow{\mathrm{def}} b
\end{equation}

% m:multiscripts, m:prescripts, m:none
\begin{equation}
 {}_p F_q,\qquad
 \sideset{_a^b}{^c_d}{\sum}
\end{equation}

\section{Tabular Math}
Some basic tabular math (\mml{mtable}, \mml{mtr}, \mml{mtd});
many combinations of row and column spacing and spans
(\attr{rowspacing}, \attr{columnspacing}, \attr{columnspan}, \attr{rowspan})
are not currently tested.
%m:mtable, @rowspacing, @columnspacing, @width
%m:mtr
%m:mtd, @columnalign, @columnspan, @rowspan

\begin{equation}
  \begin{matrix} -1 & 3 \\ 2 & -4 \end{matrix}
,\qquad
  \begin{matrix*}[r] -1 & 3 \\ 2 & -4 \end{matrix*}
,\qquad
  \begin{Vmatrix} -1 & 3 \\ 2 & -4 \end{Vmatrix}
,\qquad
  \begin{Vmatrix*}[r] -1 & 3 \\ 2 & -4 \end{Vmatrix*}
\end{equation}
% m:mlabeledtr, m:maligngroup, m:malignmark not used
Not used: \mml{mlabeledtr}, \mml{maligngroup}, \mml{malignmark}.

\section{Elementary Math}
% m:mstack, m:mlongdiv, m:msgroup, m:msrow,
% m:mscarries, m:mscarry, m:msline not used
Not currently used:
\mml{mstack}, \mml{mlongdiv}, \mml{msgroup}, \mml{msrow},
\mml{mscarries}, \mml{mscarry}, \mml{msline}.
\end{document}



( run in 0.413 second using v1.01-cache-2.11-cpan-39bf76dae61 )