I want to use Pandoc to convert markdown text files to beautifully formatted PDFs using LaTeX templates. I want to be able to do this reproducibly across unknown future machines, so I am using the official Pandoc Docker image to do it through a Docker container, as recommended here. I have successfully got it working with the Eisvogel Pandoc Latex template...
-- but I am perplexed by how to use a standard LaTeX template, such as those freely available at http://www.latextemplates.com/ (specifically let's say this one) or offered by academic journals (such as this one), given my particular configuration with Markdown, Pandoc, and Docker (which can be reproduced precisely from its git repository).
Specifically I think I have two questions:
The 'standard templates' mentioned above don't exactly seem to me to be templates -- they include their example text with their LaTeX markup. How do I extract whatever necessary to map this on to the Markdown + Pandoc LaTeX template paradigm?
They use multiple
.texfiles and/or accompanying.clsfiles. How do I get these into the right place for a containerized Pandoc process to find?
This question addresses a similar issue, but is specifically interested in using RStudio.