ramiromagno / wiley-njd

Wiley's New Journal Design (NJD) Latex Authoring Template
MIT License
13 stars 1 forks source link

Passing the `draft` argument to `\includegraphics{}`? #2

Open ramiromagno opened 1 year ago

ramiromagno commented 1 year ago

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:

\begin{figure}[t]
{\centering \includegraphics[width=\textwidth,height=1.5in]{empty.pdf}}
\caption{\label{fig-fig1}This is the sample figure caption.}
\end{figure}

I would get the argument draft passed on to \includegraphics{}:

\begin{figure}[t]
{\centering \includegraphics[width=\textwidth,height=1.5in, draft]{empty.pdf}}
\caption{\label{fig-fig1}This is the sample figure caption.}
\end{figure}
ramiromagno commented 9 months ago

For cross-reference: https://github.com/quarto-dev/quarto-cli/issues/6239.