
When Quarto renders a document with a partial, it will use the built in template but replace a portion of the template with the provided partial.
#SPE JOURNAL LATEX TEMPLATE PDF#
A simple partial to provide custom handling of the document title in LaTeX looks like:įormat : pdf : template-partials : - title.tex For these formats, you may replace portions of Quarto’s built in template, allowing you to customize just a portion of the template without needing to replace the whole thing.

Replacing Partialsįor LaTeX / PDF and HTML output, Quarto provides built in templates that are composed of a set of ‘partial’ template files.
#SPE JOURNAL LATEX TEMPLATE CODE#
Note that after reviewing this documentation you may also want to check out the source code of formats published on quarto-journals for additional examples. Replace the entire LaTeX or HTML template, but then include partials provided with Quarto to ensure that your template takes advantage of all Pandoc and Quarto features.īelow we’ll cover both of these approaches. Selectively replace partials that exist within the master LaTeX or HTML template. It’s therefore recommended that you take one of two approaches when authoring templates:

If you replace the entire template and omit these variables, features will not work properly. Replacing an entire template gives you complete control of the rendered output, but many features of Pandoc and Quarto depend upon code and variables that appear in the built in templates. For more complete information about template syntax, see Template syntax.
