-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Raw header-includes #7926
Comments
It looks like you are missing the closing ```, like so:
header-includes:
- |
```{=latex}
\setlength\LTleft\parindent
\setlength\LTright\fill
\AddToHook{cmd/section/before}{\clearpage}
```
Adding that should solve the issue.
|
No, I've got that... But copy/paste into github didn't work.
The 3 dashes after these create the line in the text, BTW.
|
I fixed the code block in your original post. (Use four backticks for the surrounding code block if it contains a code block with three backticks.) |
OK, I believe this is an issue that has come up before. (I will look it up in the tracker soon.) The issue is this: in parsing the metadata file, we use the extensions enabled in the reader. Since your reader is |
Maybe we could do something like this:
|
I just tried to use an HTML file like this: <html><head>
<meta name=author-meta content=abc>
<meta name=title content=abc>
<meta name=header-includes content="\setlength...">
... and had partial success -- the backslashes came up as Sadly, I found a workaround; by using another file and the command line option Thanks for the quick replies! |
Fixed this by having pandoc use default pandoc markdown to parse metadata when the metadata format is not a markdown variant. |
I'm running
pandoc 2.17.1.1-1 amd64
on Debian.I've got a few HTML files that I convert to tex via my own template; also, I'd like to expand a few variables in the template via a
metadata.yaml
file:According to
MANUAL.txt
, #3300, #2139, and/or 2b34337 this is the exact syntax I should be using; still, it doesn't work.The authors and the title are correctly replaced in the template -- but then I get
instead of the raw data.
The command line (broken for readability) is
I also tried
html+raw_attribute
, but despiteraw_attribute
being listed asgeneric
it's not accepted withhtml
.Is that a recent regression, or am I just not understanding how to use pandoc?
Thank you so much for your help!!
[update: removed "# vim: set et :" comment from yaml, that confused github issue rendering]
The text was updated successfully, but these errors were encountered: