Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
add comment

3 Answers

up vote 11 down vote accepted

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.
share|improve this answer
    
Aha, so the answer to the OP's question is "intentional"! –  Matthew Leingang Oct 11 '11 at 18:49
add comment

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][]{}
share|improve this answer
add comment

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.

share|improve this answer
    
Welcome to TeX.SX. You can add syntax highlighting of code by selecting the code and clicking the button marked {}. –  Torbjørn T. Dec 4 '13 at 19:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.