Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarto: in LaTeX/PDF output, pass packages using the Lua API #8

Open
jdutant opened this issue Mar 2, 2023 · 0 comments
Open

Quarto: in LaTeX/PDF output, pass packages using the Lua API #8

jdutant opened this issue Mar 2, 2023 · 0 comments

Comments

@jdutant
Copy link
Contributor

jdutant commented Mar 2, 2023

In Quarto users shouldn't specify LaTeX packages as (LaTeX commands in) header-includes. They should put them under the imagify key.

  • Metadata syntax: make sure users can use the same keys under imagify as under format: pdf:
  • Metadata coverage: make sure we pick up all documented Quarto keys that are relevant for the filter (provided we can access them when rendering to other formats than PDF)
  • Pass to PDF output: pass packages specified under imagify to LaTeX when targeting LaTeX or PDF. In Pandoc, generate raw header-includes. In Quarto, use quarto.doc.include_text('in-header', text) and quarto.doc.use_latex_package(pkg, opt). See Quarto Lua API.
@jdutant jdutant added this to the v 0.2 Quarto Lua API basics milestone Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant