Skip to main content
added 7 characters in body
Source Link
user30471
user30471

(And hence also on the command-line.) Personally, I would have these messages printed in the PDF/dvi file as well, inside something like \ifdraft ... \fi so that you can automatically disable the messages in the output when not in draft mode. (Depending on which class file you are using, to do this you may need to add \newif\ifdraft to your tex file and thenafter which you can turn "draft mode" on and off with \drafttrue and \draftfalse).

(And hence also on the command-line.) Personally, I would have these messages printed in the PDF/dvi file as well, inside something like \ifdraft ... \fi so that you can automatically disable the messages in the output when not in draft mode. (Depending on which class file you are using, to do this you need to add \newif\ifdraft to your tex file and then you can turn "draft mode" on and off with \drafttrue and \draftfalse).

(And hence also on the command-line.) Personally, I would have these messages printed in the PDF/dvi file as well, inside something like \ifdraft ... \fi so that you can automatically disable the messages in the output when not in draft mode. (Depending on which class file you are using, to do this you may need to add \newif\ifdraft to your tex file after which you can turn "draft mode" on and off with \drafttrue and \draftfalse).

added 209 characters in body
Source Link
user30471
user30471

The MWE produceswrites the following messages in the log:

in the log file (andAnd hence also on the command-line).) Personally, I would have these messages printed in the PDF/dvi file as well, inside something like \ifdraft ... \fi so that you can automatically disable the printingmessages in the output when not in draft mode. (Depending on which class file you are using, to do this you need to add \newif\ifdraft to your tex file and then you can turn "draft mode" on and off with \drafttrue and \draftfalse).

The MWE produces the messages:

in the log file (and hence also on the command-line). Personally, I would have these messages printed in the PDF/dvi file as well inside something like \ifdraft ... \fi so that you can automatically disable the printing when not in draft mode.

The MWE writes the following messages in the log:

(And hence also on the command-line.) Personally, I would have these messages printed in the PDF/dvi file as well, inside something like \ifdraft ... \fi so that you can automatically disable the messages in the output when not in draft mode. (Depending on which class file you are using, to do this you need to add \newif\ifdraft to your tex file and then you can turn "draft mode" on and off with \drafttrue and \draftfalse).

Adding an explanation at what to do with new chapters
Source Link
user30471
user30471

The command \AtEndDocument{\CheckExamplesProofs} checks the number of proofs and examples in the last section. Depending how your document is structured, you will probably need to have a similar check at the start of each chapter to make sure that the last section in the previous chapter has the correct number of proofs and examples. For this you could use:

\let\realChapter=\chapter
\def\chapter{\CheckExamplesProofs\realChapter}

The command \AtEndDocument{\CheckExamplesProofs} checks the number of proofs and examples in the last section. Depending how your document is structured, you will probably need to have a similar check at the start of each chapter to make sure that the last section in the previous chapter has the correct number of proofs and examples. For this you could use:

\let\realChapter=\chapter
\def\chapter{\CheckExamplesProofs\realChapter}
added 26 characters in body
Source Link
user30471
user30471
Loading
Adding some comments to the code
Source Link
user30471
user30471
Loading
Removing redundant WARNING
Source Link
user30471
user30471
Loading
Removing redundant WARNING
Source Link
user30471
user30471
Loading
Source Link
user30471
user30471
Loading