1 2 3 4 5 6 7
\documentclass[12pt,preview,border=1pt,class=extarticle]{standalone} $partial("templates/preamble.tex")$ \begin{document} \begin{preview} $body$ \end{preview} \end{document}