I would like to be able to split Pandoc template files into sub files using the \input{path-to-file}
in the template file. When I use the \input
command, I get the following error message when running pandoc -o output.pdf --template=default.latex --latex-engine=lualatex
:
! LaTeX Error: Missing \begin{document}.
How do I properly split pandoc template files?
I think this is not possible to achieve with Pandoc. I choose to switch to Panzer, a project which combines Pandoc with styles.