Possible Duplicate:
How can I ignore everything except a specified environment?
I am looking for a package or a command, say compileonly, that can do the following task:
For a .tex file as following,
\begin{document}
This is A.
\begin{compileonly}
This is B
\end{compileonly}
This is C
\end{document}
The result will be This is B.
Does such a thing exist?
Thanks all the reply. Finally, the best solution is to use xcomment package and define a new environment \compileconly and use \begin{compileonly} and \end{compileonly} inside \begin{xcomment}{compileonly} and \end{xcomment}
commentpackage. – Werner Nov 19 '11 at 16:43\includeand\includeonly. Is this an option? – Werner Nov 19 '11 at 16:52