Changes

Jump to navigation Jump to search
425 bytes removed ,  16:28, 10 September 2012
m
moved right and left to Right and left: move to Uppercase
The <tt>right</tt> and <tt>left</tt> alignments are backwards from the usual directions in all commands that accept an alignment option. For instance,
<texcodecontext source="yes" text="produces">\startalignment[left]This is some aligned text, with \type{left} alignment.\stopalignment \framedsetuppapersize[align=right,width=\textwidthA5]{Some framed text, with \type{align=right}.}</texcode> produces <context>
\startalignment[left]
This is some aligned text, with \type{left} alignment.
If you'd rather not try to remember that it's backwards, ConTeXt now supports <tt>flushleft</tt> and <tt>flushright</tt> options, which do exactly the same thing, but in the "correct" direction. Thus:
<texcodecontext source="yes" text="produces">\startalignment[flushleft]This is some aligned text, with \type{flushleft} alignment.\stopalignment \framedsetuppapersize[align=flushright,width=\textwidthA5]{Some framed text, with \type{align=flushright}.}</texcode> produces <context>
\startalignment[flushleft]
This is some aligned text, with \type{flushleft} alignment.
Incidentally, note that <cmd>leftaligned</cmd> and <cmd>rightaligned</cmd> produce flush-left and flush-right alignment, with
<texcodecontext source="yes" text="producing">\leftaligned{This is some \type{leftaligned} text.}\rightaligned{This is some \type{rightaligned} text.}</texcode> producing <context>setuppapersize[A5]
\leftaligned{This is some \type{leftaligned} text.}
\rightaligned{This is some \type{rightaligned} text.}
</context>

Navigation menu