Advanced Customization
Intermediate TeXR Markdown documents are converted to PDF by first converting to a TeX file and then calling the LaTeX engine to convert to PDF. By default this TeX file is removed, however if you want to keep it (e.g. for an article submission) you can specify the keep_tex option. For example:
---title: "Tufte Handout"output: tufte::tufte_handout: keep_tex: true---
IncludesYou can do more advanced customization of PDF output by including additional LaTeX directives and/or content or by replacing the core pandoc template entirely. To include content in the document header or before/after the document body you use the includes option as follows:
---title: "Tufte Handout"output: tufte::tufte_handout: includes: in_header: header.tex before_body: doc_prefix.tex after_body: doc_suffix.tex---
Pandoc ArgumentsIf there are pandoc features you want to use that lack equivilants in the YAML options described above you can still use them by passing custom pandoc_args. For example:
---title: "Tufte Handout"output: tufte::tufte_handout: pandoc_args: [ "--no-tex-ligatures" ]---Documentation on all available pandoc arguments can be found in the pandoc user guide.