Closed firefart closed 1 year ago
Have you looked at --include-before-body
and include-before:
?
@daamien Yes but this option also includes the contents after the \begin{document}
. This just inserts the content at the beginning of the body, but the \usepackage
needs to be before \begin
.
Ok managed it with the following in the metadata yml:
header-includes: |
\usepackage{tikz}
\usepackage{pgf-pie}
Thanks!
How about --include-in-header=
and header-includes:
then ?
It would be great to add an option to add additional packages through the yml header.
If I want to
\usepackage{pgf-pie}
for example (to generate pie charts) this is currently not possible because the\usepackage
instructions must come before\being{document}
.I would suggest adding an array of packages to the yml section and then looping over all of them and add
\usepackage
instructions for every single one.