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 am preparing a huge document with tons of pictures and Tikz drawings (based on Beamer package). Is there a command for NOT including all the pictures inserted by \includegraphics? This might speed up the typesetting.

share|improve this question
add comment

2 Answers 2

up vote 12 down vote accepted

Usually the solution \usepackage[draft]{graphicx} won't work, because beamer loads the graphicx package by itself. You'll get the message

Option clash for package graphicx

You have to pass the draft option to the package before it will be loaded. Therefore write

\PassOptionsToPackage{draft}{graphicx}

before \documentclass{...}. This should solve your problem.

share|improve this answer
1  
Or you could just call \documentclass[draft]{...} - it will do a few things more than just not load the graphics; but in preparation mode most of those are useful as well. –  Mikael Vejdemo-Johansson Oct 21 '10 at 15:36
add comment

Not related to \includegraphics but something that will speed up your typesetting in development mode: \includeonlyframes. If you label the frames you're "working" on, you can typeset just those without disturbing the auxiliary files, very similar to \includeonly.

Example:

\documentclass{beamer}
\includeonlyframes{foo}
\begin{document}
\begin{frame}[label=foo]
    First frame
\end{frame}
\begin{frame}[label=bar]
    Second frame, which will not be seen.
\end{frame}
\end{document}

The beamer manual documents this feature as well.

share|improve this answer
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.