-
-
Notifications
You must be signed in to change notification settings - Fork 971
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
Interplay of header-includes, extra_dependencies, and in_header in pdf_document() #1359
Comments
Hi, sorry to bother again. In case this is not intended behavior, I'd be willing to contribute a pull request to fix this. Any pointers as to where this could originate would be appreciated. |
This is actually an issue upstream in |
One other observation: if you include
but this doesn't:
If you look at the generated |
Problem still exists in pandoc-2.7. My document which has a template and an includes statement: output:
pdf_document:
citation_package: natbib
fig_caption: true
highlight: haddock
keep_tex: true
latex_engine: pdflatex
pandoc_args: [--listings]
template: "theme/report-template.tex"
includes:
in_header: "theme/guidePreambleKnitr.tex" was failing to run the "header-includes: " section. I solve problem in short term by following your fix to add an extra_dependencies flag. This is a bad bug for me and I was having a hard time figuring it out until I found this post. Thanks very much to the original poster. I've grown frustrated with relying on pandoc because of problems like this. |
As @mnazarov pointed out, this was by design of Pandoc. I agree it is confusing, so I just pushed a fix to always include the code from the |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Hi,
I've noticed some unexpected interplay between the different methods of customizing the document preamble in PDF documents.
header-includes
andincludes: in_header
both work individually, but when I use bothheader-includes
appears to be ignored:preamble.tex
could for example simply containHowever, once I include the additional
extra_dependencies
everything is included.Is this intended behavior? To me it would be useful and less confusing if these three approaches could be used independently of one another.
The text was updated successfully, but these errors were encountered: