Changes

Jump to navigation Jump to search
485 bytes removed ,  23:40, 11 July 2006
m
using the new <context> tag
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,
<texcode>\startalignment[left]This is some aligned text, with \type{left} alignment.\stopalignment \framed[align=right,widthcontext source=\textwidth]{Some framed "yes" 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:
<texcode>\startalignment[flushleft]This is some aligned text, with \type{flushleft} alignment.\stopalignment \framed[align=flushright,widthcontext source=\textwidth]{Some framed "yes" 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
<texcode>\leftaligned{This is some \type{leftaligned} context source="yes" text.}\rightaligned{This is some \type{rightaligned} text.}</texcode> ="producing <context">
\leftaligned{This is some \type{leftaligned} text.}
\rightaligned{This is some \type{rightaligned} text.}
</context>

Navigation menu