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

header-includes in the YAML header causes an error when exporting to LaTeX or pdf #5

Closed
tpellard opened this issue Mar 23, 2021 · 1 comment

Comments

@tpellard
Copy link

When the YAML header contains header-includes, pandoc (2.13) cannot export to LaTeX or to pdf.
Exporting to docx works as expected.

Here is a minimal example and the command line run:

---
title: Testing pandoc-ling
header-includes: |
  \usepackage{hyperref}
---

# This is a test

::: ex
This is the most basic structure of a linguistic example.
:::

pandoc pandoc-ling_test.md -o pandoc-ling_test.tex --lua-filter pandoc-ling.lua

@cysouw
Copy link
Owner

cysouw commented Mar 23, 2021

I find the metadata handling of Pandoc confusing :-). But with a minimal change your problem has gone away. Please grab the latest commit for a working version.

@cysouw cysouw closed this as completed in 48035be Mar 23, 2021
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

2 participants