Changes

Jump to navigation Jump to search
55 bytes removed ,  12:06, 10 June 2020
m
no edit summary
< [[Bugs The basic commands are {{cmd|setupalign}} for the whole document, and workarounds]] {{cmd| startalignment}} for a given block. Additional [[FAQ:Category:Command/Alignment|alignment commands list]] >.
; Warning: ConTeXt uses <tt>flushleft</tt> and <tt>flushright</tt> options. The basic commands <tt>right</tt> and <tt>left</tt> alignments are {{cmd|setupalign}} for '''backwards from the whole documentusual directions in all commands that accept an alignment option''', in the sense of "ragged left" and {{cmd|startalignment}} for "ragged right". Unfortunately, when Hans was first writing this part of ConTeXt, he was thinking of "ragged right" and "ragged left" alignment, rather than "flush left" and "flush right". And now that it's been this way a given blockwhile, it's impossible to change it, because changing it would break backward compatibility with all of the existing documents that use it.
'''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, :
<context source="yes" text="produces">
</context>
Unfortunately, when Hans was first writing this part of ConTeXt, he was thinking of "ragged right" and "ragged left" alignment, rather than "flush left" and "flush right". And now that it's been this way a while, it's impossible to change it, because changing it would break backward compatibility with all of the existing documents that use it.
If you'd rather not try to remember that it's backwards, '''ConTeXt supports <tt>flushleft</tt> and <tt>flushright</tt> options, which do exactly the same thing, but in the "correct" direction'''. Thus:
<context source="yes" text="produces">
</context>
 Incidentally, note that <{{cmd>|leftaligned</cmd> }} and <{{cmd>|rightaligned</cmd> }} produce flush-left and flush-right alignment, with
<context source="yes" text="producing">

Navigation menu