Open main menu

Changes

848 bytes added ,  14:35, 17 November 2021
no edit summary
<cd:commandgroup name="wordright" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>On an otherwise left-alined aligned line, place some text at the very right, and end the paragraph. First, the paragraph is line-broken normally. The last line consists of two parts: call the 'normal' bit the left part, and the <code>\wordright{...}</code> bit the wordright text. The left part is placed flush left, even if the paragraph is middle-aligned or right-aligned. The wordright text is placed on the same line, but flush against the right. If there isn't enough space left on the line, the left part will still be aligned flush left, but the wordright text will be placed on the next line. <code>\wordright</code> ends the paragraph; any text that follows it will start a new paragraph.</cd:shortdesc>
<cd:variants>
<cd:command category="alignment" file="spac-ali.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-align.xml" keywords="linebreak" level="document" name="wordright" variantnumber="1">
</cd:command>
</cd:variants>
<cd:description><!-First, the paragraph is line- broken normally. The last line consists of two parts: call the 'normal' bit the left part, and the {{cmd|wordright}} bit the long description of wordright text. The left part is placed flush left, even if the command goes here paragraph is middle-aligned or right->aligned. The wordright text is placed on the same line, but flush against the right. If there isn't enough space left on the line, the left part will still be aligned flush left, but the wordright text will be placed on the next line. {{cmd|wordright}} ends the paragraph; any text that follows it will start a new paragraph.</cd:description><cd:examples><cd:example title=""><context source="yes">\setuppapersize[A7]\setupwhitespace[big] \starttext \startalignment[normal] Normal justified text, bla bla bla, lorem ipsum dolor sit amet. No one loves pain for its own sake... \wordright{...right?}\stopalignment \thinrule \startalignment[normal] Normal justified text, bla bla bla, lorem ipsum dolor sit amet. No one loves pain for its own sake... \wordright{...right?} New paragraph.\stopalignment \thinrule \startalignment[middle] Centered. \\ Left. \wordright{Right.}\stopalignment \stoptext</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="spac-ali.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Alignment"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Linebreak"></cd:wikipage><cd:commandref name="setupalign"></cd:commandref><cd:commandref name="rightaligned">to right-align a single line</cd:commandref><cd:commandref name="startalignment">to align paragraphs</cd:commandref><cd:commandref name="hfill">The TeX <code>\hfill</code> command, which is not documented on this wiki.</cd:commandref></cd:seealso>
</cd:commandgroup>