Back to Teaching Page
LaTeX Software
Multi columns
\usepackage{multicol}
\begin{multicols}{2}
\begin{enumerate}
\item a
\item b
\item c
\item d
\end{enumerate}
\end{multicols}
Custom Names for Equations
\begin{equation}\label{zzz}\tag{P1}
c^2 = a^2 + b^2
\end{equation}
Split-level Fractions
\usepackage{xfrac}
$\sfrac{12}{3}$
Tcolorbox
\usepackage{tcolorbox}
\begin{tcolorbox}[
boxrule = 0.5pt, colback = green!10!white,
grow to left by = -1in, grow to right by = -1in,
enlarge top by = 0.1in, enlarge bottom by = 0.1in]
$c^2=a^2+b^2$
\end{tcolorbox}
Change space in listing globally
\usepackage{enumitem}
\setlist[enumerate]{itemsep=1pt, topsep=1pt}
Long arrows
\usepackage{extarrows}
$\xLeftarrow[\text{bottom}]{\text{top}}$
$\xleftarrow[\text{bottom}]{}$
$\xRightarrow{\text{top}}$
$\xrightarrow{\text{top}}$
$A\xlongequal{\text{by ZZZ’s Theorem}} B$
Align (right) in matrices
\begin{pmatrix*}[r]
1 & -2\\
-1 & 3
\end{pmatrix*}
Spacing in arrays
\[\arraycolsep = 10pt
\def\arraystretch{2.2}
\begin{array}{c|c}
a & b\\
c & d
\end{array}\]
Tikz - Stealth Arrows
\usepackage{arrows.meta}
\begin{tikzpicture}
\draw [-stealth] (0,0) -- (3,0);
\draw [stealth-] (0,-1) -- (3,-1);
\draw [-{Stealth[width=3mm,length=5mm]}] (0,-2) -- (3,-2);
\end{tikzpicture}