Command/showjustification

From Wiki
< Command
Revision as of 08:40, 28 November 2012 by Esteis (talk | contribs) (Created page with "== Description == Show justification in color * blue: natural width is larger than hsize * green: natural width is smaller than hsize * magenta: natural width is smaller than h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Show justification in color

  • blue: natural width is larger than hsize
  • green: natural width is smaller than hsize
  • magenta: natural width is smaller than hsize (raggedright)
  • cyan: natural width is smaller than hsize (raggedleft)
  • yellow: natural width is smaller than hsize (raggedcenter)
  • red: probably bad news

Example

\starttext

     \showjustification

     \showframe

     {\notragged    \input ward \blank}
     {\raggedright  \input ward \blank}
     {\raggedleft   \input ward \blank}
     {\raggedcenter \input ward \blank}

     {\hsize1cm \notragged x x xxxxxx xxxxxxxxxxxxxxxxxxx\par} \blank

     \framed[width=10cm,align=middle]{test}

 \stoptext