Difference between revisions of "Command/wordright"
< Command
Jump to navigation
Jump to search
m |
|||
Line 24: | Line 24: | ||
\startnarrower | \startnarrower | ||
\startalignment[normal] | \startalignment[normal] | ||
− | Normal justified text, bla bla bla, lorem ipsum dolor sit amet. | + | Normal justified text, bla bla bla, lorem ipsum dolor sit amet. |
No one loves pain for its own sake... \wordright{...right?} New paragraph. | No one loves pain for its own sake... \wordright{...right?} New paragraph. | ||
\stopalignment | \stopalignment | ||
Line 39: | Line 39: | ||
<cd:source file="spac-ali.mkiv" originator="system"></cd:source> | <cd:source file="spac-ali.mkiv" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Alignment"></cd:wikipage> | <cd:wikipage originator="system" page="Category:Alignment"></cd:wikipage> | ||
− | <cd:wikipage originator="system" page="Keywords:Linebreak"></cd:wikipage></cd:seealso> | + | <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:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Revision as of 10:53, 17 December 2020
Contents
\wordright
Summary
On an otherwise left-aligned line, place some text at the very right, and end the paragraph.
Settings
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
Example 1
\setuppapersize[A5] \setupwhitespace[big] \setupnarrower[middle=3.5cm] \startnarrower \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 \startalignment[middle] Centered. \crlf Left. \wordright{Right.} \stopalignment \stopnarrower
Notes
See also
- spac-ali.mkiv
- \setupalign
- \rightaligned to right-align a single line
- \startalignment to align paragraphs