3

Is there the draft mode in ConTeXt (to highlight overfull/underfull boxes and stuff)? If not, how can I re-create its features?

I've searched through ConTeXt wiki and all I found is --draft commandline option which doesn't seem suitable for ConTeXt Mark IV.

  • 1
    Does \overfullrule 5pt\relax do what you want? – Aditya Jan 20 '16 at 18:43
  • @Aditya: for overfull boxes - pretty much) But what about underfull ones? In the wake of your answer I've found this question. Does this have to be some large extra routine too? – The_Keeper Jan 21 '16 at 6:30
  • LaTeX doesn't show underful boxes either :-). I don't know TeX internals well enough to understand the link that you posted. So I don't know how to translate it to ConTeXt – Aditya Jan 21 '16 at 14:38
  • @Aditya: well, neither do I) thanks for your help... again ^^ – The_Keeper Jan 22 '16 at 9:25
3

There is a new feature in ConTeXt to show overfull and underfull boxes!

\enabletrackers[visualizers.justification] % overfull/underfull
\enabletrackers[typesetters.suspects] % suspicious spacing


\setuppapersize[A8]
\setuplayout[width=3mm] \showframe

\starttext

\hsize 3mm

xxxxxxxxxxxxxxxxxxxxxxx
xxxx
x

$x$x

x:$x$

\stoptext

With just the visualizers.justification, you get:

enter image description here

With just typesetters.suspects, you get:

enter image description here

And with both, you get:

enter image description here

  • that's pretty neat! and I guess that solves the problem... but it gives a lot of false positives (perhaps caused by hanging punctuation)... is there a way to set some visibility threshold?) – The_Keeper Feb 15 '16 at 20:58
  • Not sure. You can ask on the mailing list where this was announced – Aditya Feb 15 '16 at 23:09

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.