Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
pandoc
@pandoc@fosstodon.org  ·  activity timestamp 4 days ago

Simplify custom LaTeX templates maintenance with "partials" & baked-in internal template snippets: The `common.latex` partial is the most important, as it contains almost all LaTeX definitions and instructions necessary to compile pandoc-generated LaTeX code.

% In LaTeX templates, use
$common.latex()$

Manual template updates become mostly unnecessary this way.

See the contents of the partial with

pandoc --print-default-data-file=templates/common.latex

#pandoc #TeXLaTeX #template #partial

  • Copy link
  • Flag this post
  • Block
pandoc
@pandoc@fosstodon.org replied  ·  activity timestamp 4 days ago

Besides the `common.latex` partial, there are also:

• `passoptions.latex` – options for packages that may be loaded implicitly (should come before `\begin{document}`)
• `fonts.latex` – Fonts setup
• `font-settings.latex` – Fonts configs
• `hypersetup.latex` – Options for the “hypertext” package (hyperlinks and metadata)
• `after-header-includes.latex` – Everything that *must* happen late.

Using all of these partials in custom templates gives maximum robustness.

#pandoc #TeXLaTeX #template

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login