is there any way to hide all images, equations and all listings (embedded by using lstlisting package) manually by setting a certain command in the preamble? It would just be interesting to see how many pages of real 'text' the document contains actually. Thanks!
Edit: I tried using Stefans suggestion:
\renewenvironment{lstlisting}{\begin{comment}}{\end{comment}}
\renewenvironment{figure}{\begin{comment}}{\end{comment}}
\renewenvironment{equation}{\begin{comment}}{\end{comment}}
whereas I have the verbatim-package in the preamble. I'm getting the same error message as if when using Martins suggestion:
File ended while scanning use of \next for a command line `\include{main/02}`
When not using the commenting-stuff, there's no error while compiling the document :(
Edit2: I found out that Martins solution works but not for equations which I insert via:
\newcommand{\beq}{\begin{equation}}
\newcommand{\eeq}{\end{equation}}
and than:
\beq
blaaa...
\eeq
Which way to take therefor?
commentenvironment into another environment doesn't work, like for any verbatim environment, because\begin{comment}then can't find it's\end{comment}. My small example works, but I can't say what's goes wrong with your file. You don't have an environment split over two input files, or something similar? – Martin Scharrer♦ Jun 28 '11 at 20:24