Newbie: How to add commands which must follow \begin{document}?

Only a few days into RStudio and bookdown, so forgive me if I don't frame the question in the right terms.

As I understand it, preamble.tex deals with things before the \begin{document} execution, so is fine for adding \usepackage{} and whatnot. Is there a comparable place where commands to those packages can be inserted such that they will be put into the LaTeX file in (or by) pandoc?

You are probably looking for before_body .

Usually preamble.tex does indeed go in in_header

More about those options:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.