Difference between revisions of "Command/showjustification"

From Wiki
Jump to navigation Jump to search
(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...")
 
Line 1: Line 1:
 
== Description ==
 
== Description ==
  
Show justification in color
+
Show justification in color.{{since|2012|text=nov 2012}}
  
 
* blue: natural width is larger than hsize
 
* blue: natural width is larger than hsize

Revision as of 08:41, 28 November 2012

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