TransWikia.com

Showing figure inside figure environment in draft mode

TeX - LaTeX Asked by Liris on December 6, 2020

I am writing the supporting information of a paper whose template can be downloaded here

Basically, it is in draft mode :

documentclass[draft, grl]{agutexSI2019}

But I also add after this:

usepackage{graphicx}
%
%  Uncomment the following command to allow illustrations to print
%   when using Draft:
setkeys{Gin}{draft=False}
%

As a result, figures outside figure environment (those not floats) show:

includegraphics[scale = 1]{dummyfig.pdf}

but those inside figure environment doe not:

begin{figure}
  includegraphics[scale = 1]{dummyfig.pdf}
  caption{test}
  label{Figure_sand_pile}
end{figure}

Any hint ?

One Answer

The class does

ifjdraft%
expandafterifxcsname setkeysendcsnamerelaxelse
setkeys{Gin}{draft=false}fi

so sets the graphics back to draft mode in at least a couple of places

Probably you can do this:

makeatletter
setkeys{Gin}{draft=false}
define@key{Gin}{draft}[true]{}
makeatother

so you disable the key after setting it the way you want, further uses of draft=anything do nothing.

Answered by David Carlisle on December 6, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP