Command/showjustification

From Wiki
< Command
Revision as of 08:41, 28 November 2012 by Esteis (talk | contribs)
Jump to navigation Jump to search

Description

Show justification in color.Template:since

  • 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