This may or may not be a bug, so I'll first ask it here before reporting.

In the following test case:



  to be the morphism from $\delta^*$ to $(\delta')^*$ (resp.\ to
  $(\delta'')^*$) such that $h'((p', p'')a(q', q''))$}





the overfullrule is drawn only in the first mdframed. How can I make it work in the second one too? This silent ignoring of overfullrule can be really dangerous...


  • TeXlive 2012.26892-2 on Arch Linux
  • latest mdframed from GitHub (1.6c, mdframed.dtx 436 2012-06-23 09:49:13Z marco)
  • Without any lines the with of the text area is longer and so you will get an other output. – Marco Daniel Sep 18 '12 at 16:03
  • This is not the point; the two mdframed contain an overfull hbox, only the first one is signaled with an overfullrule. Thanks! – Michaël Sep 18 '12 at 16:06
  • @Michaël The overfull rule is drawn: the message indeed ends with q[]\OT1/cmr/m/n/10 ))$ | and the bar means precisely the rule. For some reason, with TikZ as frame method, this rule is not printed: everything that overflows the reserved area is blanked out (the two closing parentheses are missing too). – egreg Sep 18 '12 at 16:28
  • @egreg Yeah, I guessed that the rule was just clipped (all the more since I saw examples with only half the rule). I prefered presenting the question without any guesswork :-) Though I didn't know about the "|" meaning of the message; thanks! – Michaël Sep 18 '12 at 18:59

This question lead to the new option draft which is now implement in the development branch.


The contents of the environment mdframed is saved in a savebox. The output, if you use framemethod=tikz, will be done by the environment tikzpicture. To allow the options of three different lines I must work with the command \clip provided by tikz which also clips the overfull boxes.

If you use the option hidealllines=true there is nothing to clip which results in the output of overfull boxes.

To show the overfull markers you can do the following:

\renewrobustcmd*\mdf@tikzbox@tfl[1]{%three or four borders

\renewrobustcmd*\mdf@tikzbox@otl[2]{%one or two borders

enter image description here

  • 2
    Probably an option for clipping or nonclipping should be used; maybe draft? – egreg Sep 18 '12 at 16:33
  • @egreg: Great idea. – Marco Daniel Sep 18 '12 at 16:36
  • Well, an answer from the man himself, great! Removing those "clips" is what I did to make it work; I was expecting a cleaner answer: adding a draft option is indeed a great idea! Thanks! – Michaël Sep 18 '12 at 19:01
  • @Michaël: Added option – Marco Daniel Sep 20 '12 at 12:27
  • @Marco: Thanks a lot! Tested it, and found a little bug; see pastebin.com/LBS1K1N1 ; with a nil overfullrule, the text is on the left, and it is moved a little bit otherwise. – Michaël Sep 21 '12 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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