12

I downloaded a Nature style file from here but I don't see any images when I build my figures. Do you know if this is intentional or if I've done something wrong?

If you've drafted a LaTeX paper for any Nature journal, I'd love your advice!

3 Answers 3

12

Quoting lines 126--129 of nature.cls:

%% The new figure environment defers printing of all figure captions
%% until the end of the document and prints them in sans serif font.
%% The \includegraphics command is ignored since Nature wants figures
%% as separate files.
1
  • Aha, so the answer to the OP's question is "intentional"! Commented Oct 11, 2011 at 18:49
10

Do you use \includegraphics for your pictures? If so, it seems that nature.cls will ignore them intentionally- from the last few lines:

%% ignore all \includegraphics commands in the document
\AtBeginDocument{\let\includegraphics\NAT@ignore}

\newcommand{\NAT@ignore}[2][]{}
1

Here is my solution, open the nature.cls file and comment the last two lines.

%\AtBeginDocument{\let\includegraphics\NAT@ignore}
%\newcommand{\NAT@ignore}[2][]{}

It seems to work now.

2
  • Welcome to TeX.SX. You can add syntax highlighting of code by selecting the code and clicking the button marked {}. Commented Dec 4, 2013 at 19:12
  • unable to edit the nature.cls file. Access denied. How to solve the issue. Is there any other way to insert images in latex apart from graphicx module?
    – stp30
    Commented Nov 9, 2015 at 13:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .