4

I am using a the Tufte-\LaTeX class and compiling it in TextMate, which has a nifty LaTeX bundle and latexmk interface. The document is getting long, and I get heaps of these:

LaTeX Warning: Marginpar on page 31 moved.

This is mostly due to how the footnotes are handled by the class, and thus rarely of interest to me. From time to time, I also get this from my fonts:

LaTeX Font Warning: Font shape `OT1/zi4/m/it' undefined

As it happens, these issues are (really) trivial to me, but I do care about the other issues that get lost in the huge list of warnings.

Is there a way to suppress either all or a selection of warnings from my log? I could not find much on that topic by searching here or elsewhere.

(For the moment, it seems that my only option is to reprogram the TextMate bundle to display warnings, e.g., in minuscule text.)

doncherry
  • 54,637
Fr.
  • 259
  • 1
  • 10

1 Answers1

9

You could use the silence package to filter the log. For marginpar warnings, a specific solution is presented in the silence documentation (p. 6):

% Filter out all marginpar warnings
\usepackage{silence}
  \WarningFilter*{latex}{Marginpar on page \thepage\space moved}

If you are using MiKTeX, you can use the -quiet flag on the command line to suppress all errors and warnings.

doncherry
  • 54,637
Martin Heller
  • 11,391
  • That works well indeed, I have added my solution to your answer. – Fr. Aug 20 '13 at 14:43
  • @Fr. I replaced your (working) solution with a more specific one suggested by the package author, hope you don’t mind. – doncherry Oct 29 '16 at 09:39