I want to comment out a whole section in order to save the text but not render it in the PDF. Is this possible?
Asked
Active
Viewed 1.5k times
2
1 Answers
6
As pointed out in the comments, there is a solution to this problem. For me, the verbatim package worked out the easiest. As given here
The solution is simply
\documentclass{article}
\usepackage{verbatim}
\begin{document}
This text will be displayed
\begin{comment}
This text will not be displayed.
\end{comment}
\end{document}
Physics_maths
- 2,012
%at the beginning of every line of the section, use packagecommentor use a conditional test i wont show you, because it is bad. – Johannes_B Feb 25 '15 at 19:44\iffalsetrick myself everyday. But it isn't the cleanest of solutions. – Johannes_B Feb 25 '15 at 20:19