tag: latex

LaTeX Notes

4 Jan, 2022 - 1 minutes
Insert a figure, caption and label in a multicols environment This doesn’t float so will appear exactly where you place it % preamble \usepackage[margin=10pt,font=small,labelfont=bf]{caption} % reqd for captionof in minipage figs \usepackage{calc} % reqd to calc minipage dims % image \begin{minipage}{\linewidth-10pt}% -10pt to avoid hbox overflow \includegraphics[width=\linewidth]{img/tas} \captionof{figure}{Total Alkali--Silica for Martian igneous rocks \autocite{Filiberto2017}} \label{fig:tas} \end{minipage}% Referencing WIP Macros These are some of the custom commands I use when producing documents.