Difference between revisions of "Command/wordright"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \wordright")
 
Line 1: Line 1:
 
<cd:commandgroup name="wordright" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup name="wordright" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>On an otherwise left-alined line, place some text at the very right, and end the paragraph.
+
<cd:shortdesc>On an otherwise left-alined line, place some text at the very right, and end the paragraph.</cd:shortdesc>
 
 
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: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 category="alignment" file="spac-ali.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-align.xml" keywords="linebreak" level="document" name="wordright" variantnumber="1">
Line 18: Line 13:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<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 wordright text.
</cd:description>
+
 
 +
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. {{cmd|wordright}} ends the paragraph; any text that follows it will start a new paragraph.</cd:description>
 
<cd:examples></cd:examples>
 
<cd:examples></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>

Revision as of 10:47, 17 December 2020


\wordright

Summary

On an otherwise left-alined line, place some text at the very right, and end the paragraph.

Settings

\wordright[...]{...}
[...]right dimension
{...}content

Description

First, the paragraph is line-broken normally. The last line consists of two parts: call the 'normal' bit the left part, and the \wordright 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. \wordright ends the paragraph; any text that follows it will start a new paragraph.

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: