latex comment block code example

Example 1: multi line comments latex

\usepackage{verbatim}
%^that goes at the very top

\begin{comment}
stuff commented out here
\end{comment}

Example 2: latex long comments

\documentclass{article}
\usepackage{verbatim}	%You can use long comments from this package
\begin{document}
    This text will be displayed
\begin{comment}
    This text will not be displayed.
\end{comment}
\end{document}

Example 3: comment in latex

%this is a comment (use percent sign %)

Example 4: latex uncomment multiple lines

Mark section
Ctrl + t 	//multiline comment
Crtl + u 	//mutliline uncomment

Tags:

Misc Example