TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Is there a way to avoid repetitive compiler warning messages?

When debugging some stuff I sometimes have empty mdframes and I get the log file littered with tons of

"Package mdframed Warning: You got a bad break"

How can I disable this message for mdframed only? (I still need warnings/errors from other packages)

share|improve this question

marked as duplicate by egreg, clemens, lockstep, Marco Daniel, percusse Aug 18 '12 at 9:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The silence package as used here might be what you're looking for. – Scott H. Jul 23 '12 at 2:46
up vote 4 down vote accepted

As Scott H. suggests in a comment you can use the silence package for this purpose. Minimal example:




\WarningFilter{mdframed}{You got a bad break}


\mdf@PackageWarning{You got a bad break\MessageBreak
  because the last split box is empty\MessageBreak
  You have to change the settings}



share|improve this answer

The mdframed package uses


to report warning messages. So, to disable all warning messages from mdframed, you could redefine this in your preamble (after loading the mdframed package) to ignore the message:



  • As Marco Daniel commented, this kind of solution is generally not a good idea as it will eliminate all warning message form the mdframed package. So if you want to eliminate just one message it is better to use the silence package as per the other answer.


share|improve this answer
I think it's not a good idea ;-) – Marco Daniel Jul 23 '12 at 9:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.