2

I want to comment out a whole section in order to save the text but not render it in the PDF. Is this possible?

1 Answers1

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}