I know that I can use \overfullrule=5pt to get overfull lines marked with a black marker. I am using pdfLaTeX. Is there a way I can get this marker or something similar in magenta instead?
|
|
||||
|
Aditya gave a very nice, portable solution (Patrick's is very nice, too, but less portable). I've made a little package called
Edit: I've seen quite a few shortcomings in complex environments using Aditya's code, while Patrick's code has no side effects that I could see. For this reason, the package now supports both implementations. When compiled with LuaTeX, it will use Patrick's code, otherwise, Aditya's code is used. I still have to adapt the options to work with Patrick's code. Supporting the |
|||||||||||
|
|
I am not sure if this is possible with old fashioned TeX/pdfTeX, but it is with LuaTeX (of course, it is!)
|
|||||||||||||||||
|
|
Copied from a TeX pearl by Paweł Jackowski. In his words, never underestimate TeX's bells and whistles.
which gives
The definition of
and loading |
|||||||||||||||
|




\overfullrule=5ptonly determines the width of the "slug," i.e., of the marker that's placed to the right of the text in overfull lines. I couldn't find a detailed-enough explanation in either "TeX by Topic" or in "TeX for the inpatient" to determine how and were TeX creates the slug. I hope somebody else can help you out. – Mico Sep 13 '11 at 9:43\overfullruleis positive and an\hboxis overfull. Usually this happens during paragraphing, but not necessarily. I believe there's no way to set the color. – egreg Sep 13 '11 at 9:51