I am using a trick I found here to suppress text output when I wish. See below. The only problem is that 1. My equations are still showing (not suppressed) and 2. My tables show the \hlines. How can I modify this to get rid of those as well.
Note: My purpose is to run a chapter, but eliminate some material from the output, but still retain the number of tables, figures, equations intact for the part that I do output.
Thanks, Lucas
\documentclass{article}
\long\def\suppress#1\endsuppress{%
\begingroup%
\tracinglostchars=0%
\let\selectfont=\nullfont
\nullfont #1\endgroup}
\pagestyle{empty}
\begin{document}
\suppress
This text will not be seen in the generated document.
\endsuppress
But this text will.
\suppress
And this text won't again.
\endsuppress
\end{document}
articledoesn't have chapters;bookdoes. Does your suppression change happen at page breaks (such as between chapters)? If so, I would recommend looking intoincludeandincludeonly, which is designed with exactly this in mind. – Teepeemm Aug 13 '21 at 21:29\usepackage{comment}https://ctan.org/pkg/comment?lang=en ? – MS-SPO Sep 13 '21 at 08:34