1 \documentclass{article} 2 \usepackage{mathpartir} 3 \usepackage[dvips]{color} 4 \begin{document} 5 \section*{Infererence rule} 6 Check vertical alignment. 7 $$ 8 \infer* 9 {\infer*{}{A}\and\infer*{\infer*{B'\and{}B''}{B}\and{}X}{C}} 10 {C \and D} 11 $$ 12 \section*{Mathpar} 13 \subsection*{Command} 14 Command defined inside \texttt{mathpar} environment. 15 \begin{mathpar} 16 \newcommand{\for}[2]{\left#1\begin{array}{cc}1&2\\3&4\end{array}\right#2}% 17 \for\{\} \and \for() \and \for\vert.\\ 18 \for\vert\vert \and \for\lfloor\rfloor 19 \end{mathpar} 20 21 \subsection*{Font change (orange color)} 22 First cell in black. 23 Three last cells in {\textcolor[named]{Orange}{orange}}. 24 No cell in bold font. 25 {\bfseries This is bold. \begin{mathpar} 26 F(0) = 1 \and \color[named]{Orange}F(1) = 1 \and F(2) = 2 27 \\ F(n+2) = F(n+1) + F(n) 28 \end{mathpar} 29 This is bold also.} 30 This is normal font in black. 31 32 \end{document}