I have the following macro
\mainlanguage [de]
\definepapersize[MyBook][A5]
\setuppapersize[MyBook][A5]
\definestartstop[Test][commands=\setups{Test}]
\def\Test{\doTest}
\def\Test[#1]{
\placeongrid[top]{
{\startalignment [flushleft] #1 \stopalignment \startalignment [flushright] (\bf Test Message) \stopalignment}
\blank[big]
}
}
\starttext
\Test[Wrong]
\Test[This one is correct, correct, correct, correct, correct.]
This one is wrong, wrong, wrong, wrong, wrong.
\startalignment [flushright]
(\bf Test Message)
\stopalignment
\stoptext
with three examples. What I want is this:
\Test[#1] should produce #1 and #2 with the following properties:
- #1 should be flushleft, #2 flushright
- #2 should never be breaked into two lines
- if they fit into one line, then they should do that, not like the above first example
How to do that?
\hbox to \textwidth{#1 \hfill #2}should work. – Aditya Nov 1 '12 at 16:28\wordright{#2}should be sufficient. – Aditya Nov 2 '12 at 12:25