Passing LaTeX argument argument to \includegraphics{}
(e.g draft
)
#6239
Labels
Milestone
\includegraphics{}
(e.g draft
)
#6239
Discussed in #6234
Originally posted by ramiromagno July 17, 2023
Description
Is there a simple way of adding the
draft
option to:https://github.com/ramiromagno/wiley-njd/blob/885a1827617952d3d01156ab68e6af8c8e118337/template.qmd#L131
such that instead of getting:
I would get the argument
draft
passed on to\includegraphics{}
:Details
We could expect to do it like
However this does not work. Currently I don't think Pandoc supports passing any attributes to LaTeX. They are ignored.
knitr does have a
out.extra
chunk option that allows that;but knitr does write the LaTeX markup directly in that case, and does not rely on Pandoc.
Note: This does not work in Quarto because quarto will always enforce Markdown syntax for image for all knitr output.
Not sure we can improve the feature without Pandoc support... 🤔 But still opening the issue to track the idea.
The text was updated successfully, but these errors were encountered: