SK

LaTeX code snippets

Date written Jul 5 2020
Filed underSoftware Engineering in tech

Contents

Localize Settings

Just wrap everything inside

\begingroup
...
\endgroup

Table Merge Columns

% <column size> (2), <type> (c), <content>
\multicolumn{2}{c}{...content...}

Table Column Spacing

\setlength{\tabcolsep}{2pt}

Wrapping figure around text

% "r" for right, "l" for left
\begin{wrapfigure}{r}{0.5\textwidth}
...
\end{wrapfigure}

Split long equations overflowing page width

Inside align environments, use split. {}& for alignment and the usual new line \\ for split points.

\begin{align}
a = b + c \\
\begin{split}
z^2 = {}&x^2 + \\{}&y^2
\end{split} \\
...
\end{align}