
Hi folks, once again I have a problem that I can't solve: I would like to have a linebreak for \setupheadertexts. \setupheadertexts [{\bf Johnson}, Uwe][{\sl Mutmassungen über Jakob}] \starttext Freiheit ist die Einsicht in die Notwendigkeit. \stoptext *Johnson,* Uwe should be the result. Unfortunately, what I have tried (\\, \crlf, \break) does not work. Thanks for any help Tómas

Am 21.07.25 um 10:38 schrieb Thomas Meyer:
Hi folks,
once again I have a problem that I can't solve: I would like to have a linebreak for \setupheadertexts.
\setupheadertexts [{\bf Johnson}, Uwe][{\sl Mutmassungen über Jakob}] \starttext Freiheit ist die Einsicht in die Notwendigkeit. \stoptext
*Johnson,* Uwe
should be the result. Unfortunately, what I have tried (\\, \crlf, \break) does not work.
Use a frame like in https://wiki.contextgarden.net/Command/setupheadertexts (example multi-line headers). Maybe a \vbox is enough. Hraban

Am 21.07.25 um 10:53 schrieb Henning Hraban Ramm:
Am 21.07.25 um 10:38 schrieb Thomas Meyer:
Hi folks,
once again I have a problem that I can't solve: I would like to have a linebreak for \setupheadertexts.
\setupheadertexts [{\bf Johnson}, Uwe][{\sl Mutmassungen über Jakob}] \starttext Freiheit ist die Einsicht in die Notwendigkeit. \stoptext
*Johnson,* Uwe
should be the result. Unfortunately, what I have tried (\\, \crlf, \break) does not work.
Use a frame like in https://wiki.contextgarden.net/Command/setupheadertexts (example multi-line headers). Maybe a \vbox is enough.
Hraban
Hi Hraban, thank you for your help. I solved it this way: \def\PName{Uwe} \def\AName{Johnson} \def\BTitle{Mutmassungen über Jakob} \def\aName{\startframed[frame=off,align=flushleft,width=fit]{\vbox {{\bf \AName},}\\ \PName}\stopframed} \def\bTitle{\startframed[frame=off,align=flushright,width=fit]{\vbox {{\it \BTitle}}\\~ }\stopframed} \setupheadertexts [\aName] [\bTitle] \starttext Freiheit ist die Einsicht in die Notwendigkeit. \stoptext Without \vbox the indentation is slightly different. It may be that it is easier. Yours, Tómas

Am 21.07.2025 um 17:53 schrieb Thomas Meyer:
Without \vbox the indentation is slightly different.
The \vbox command is useless in your example and not necessary, the problem are the braces you put around the \framed content. Compare the first \framed which emulates your example with an extra group for the content and the second one without. When you add the group the space before the text appears in the output but without the group the space is removed. \starttext \startframed[align=normal]{ Text }\stopframed \startframed[align=normal] Text \stopframed \stoptext Wolfgang
participants (3)
-
Henning Hraban Ramm
-
Thomas Meyer
-
Wolfgang Schuster