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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________