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

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)
share|improve this question
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
up vote 4 down vote accepted

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

share|improve this answer
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
@Michaël: Can you accept my answer please? – Marco Daniel Sep 21 '12 at 16:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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