One latex run suffices to generate the DVI/PDF version of the LaTeX document
\documentclass{article}
\usepackage{comment}
\includecomment{comment}
\begin{document}
\begin{comment}
\noindent
Test
\end{comment}
\end{document}
By contrast, latexmk thinks that two latex runs are necessary. The reason for this is the following: Since comments are to be included the comment environment writes its content to an intermediate file (by default comment.cut). Latexmk treats comment.cut similar to other intermediate files (such as the toc and lof files) and thus provides for another latex run. What latexmk misses is that comment.cut is input right at the end of the comment environment and that it’s useless afterwards. Hence, the second latex run is superfluous.
Does anybody know whether it’s possible to configure latexmk such that it completely ignores specific intermediate files?
commentpackage. – mhp Jan 11 '12 at 9:22-diagnosticsoption to better understand its behavior? It is described as follows in the manual: "Print detailed diagnostics during a run. This may help for debugging problems or to understand latexmk's behavior in difficult situations." – N.N. Jan 11 '12 at 9:31comment.cutis correctly detected as dependent file since it’s written by(pdf)latex. But, probably, it should not be treated as a source file. Then, the(pdf)latexrule might not consider it a prerequisite. – mhp Jan 11 '12 at 11:05