I need a multi-line header in the right page corner, with content right-aligned. \setupheadertexts[nothing on left][line 1 \par line 2] doesn't work. Is using a \vbox the correct method of handling this? If so, how? \setupheadertexts[nothing on left][\vbox{line 1 \blank line 2] puts the header in the left corner. -- david
Am 08.04.2009 um 02:26 schrieb Design Department:
I need a multi-line header in the right page corner, with content right-aligned.
\setupheadertexts[nothing on left][line 1 \par line 2] doesn't work.
Is using a \vbox the correct method of handling this? If so, how?
\setupheadertexts[nothing on left][\vbox{line 1 \blank line 2] puts the header in the left corner.
\setupheadertexts[nothing on left] [{\framed[frame=off,width=fit,align=right]{line1\\line2}}] Wolfgang
On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
\setupheadertexts[nothing on left][{\framed[frame=off,width=fit,align=right]{line1\\line2}}]
Wolfgang
Thanks Wolfgang. Not quite correct yet, though. The individual lines in your example are aligned flush-left in a box that is on the right of the page. I need lines that are aligned flush-right in the box on the right of the page - the width of each line varies. I'm trying nested \framed elements, but not having any success. -- david
Am 08.04.2009 um 16:19 schrieb Design Department:
On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster
wrote: \setupheadertexts[nothing on left] [{\framed[frame=off,width=fit,align=right]{line1\\line2}}]
The individual lines in your example are aligned flush-left in a box that is on the right of the page. I need lines that are aligned flush-right in the box on the right of the page - the width of each line varies.
align=flushright Wolfgang
On Wed, 8 Apr 2009, Design Department wrote:
On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
\setupheadertexts[nothing on left][{\framed[frame=off,width=fit,align=right]{line1\\line2}}]
Wolfgang
Thanks Wolfgang. Not quite correct yet, though.
The individual lines in your example are aligned flush-left in a box that is on the right of the page. I need lines that are aligned flush-right in the box on the right of the page - the width of each line varies.
align=flushright.
I'm trying nested \framed elements, but not having any success.
See http://wiki.contextgarden.net/Right_and_left Aditya
\setupheadertexts[][{\framed[frame=off,width=fit,align=flushright]{line1\\line 2.}}] Thks. Works now. A further minor question: One of the lines sometimes ends with a period and it would be nice to have it optically aligned. Is this possible? The document is a tabular report, so this is a minor point. Just wondering. -- david
On Wed, 8 Apr 2009, Design Department wrote:
\setupheadertexts[][{\framed[frame=off,width=fit,align=flushright]{line1\\line 2.}}]
Thks. Works now.
A further minor question: One of the lines sometimes ends with a period and it would be nice to have it optically aligned. Is this possible? The document is a tabular report, so this is a minor point. Just wondering.
align={hanging,flushright} You would need to enable protrusion first using \usetypescript[serif,sans,mono][hanging][pure] Also see http://wiki.contextgarden.net/Protrusion#Details Aditya
Am 08.04.2009 um 16:57 schrieb Design Department:
\setupheadertexts[][{\framed[frame=off,width=fit,align=flushright] {line1\\line 2.}}]
Thks. Works now.
A further minor question: One of the lines sometimes ends with a period and it would be nice to have it optically aligned. Is this possible? The document is a tabular report, so this is a minor point. Just wondering.
You can use hanging punctuation. Wolfgang
participants (3)
-
Aditya Mahajan
-
Design Department
-
Wolfgang Schuster