I am using the package comment extensively and it produces a lot of information messages I don't want to read anymore. How can I get rid of them? (presumably, I would still like to receive warnings and errors, but not any of the messages that start with "Excluding".)
I've tried using the package silence
but maybe it only addresses actual warning/errors and not pure information messages?
\documentclass{article}
\usepackage{silence}
\WarningsOff[comment]
\ErrorsOff[comment]
\WarningFilter{comment}{Excluding}
\usepackage{comment}
\excludecomment{hint}
\begin{document}
Zero
\begin{hint}
One
\end{hint}
\begin{hint}
One
\end{hint}
\begin{hint}
One
\end{hint}
\begin{hint}
One
\end{hint}
\begin{hint}
One
\end{hint}
\end{document}
How can I avoid the MWE above displaying all these "Excluding 'hint' comment." messages in the output?
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2019/texmf-dist/tex/latex/silence/silence.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/comment/comment.sty Excluding comment 'comment') Excluding comment 'hint' (./test.aux) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/omscmr.fd) Excluding 'hint' comment. Excluding 'hint' comment. Excluding 'hint' comment. Excluding 'hint' comment. Excluding 'hint' comment. Excluding 'hint' comment. [1{/usr/local/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )</usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
comment
uses\message
for the messages.silence
can not filter them, and you can only get rid of them by either redefining the primitive\message
or by redefining thecomment
definitions.