However, Wolfgang, if I do, e.g.
\setuphead[chapter][textcommand={\setbar[underbar]}]
\starttext
\startchapter[title={My title}]
\input ward
\stopchapter
\stoptext
Then I do not get My Title with underline, which is what I want, and nor is anything else underlined in 'Ward'.
Could it be something to do with the version of LMTX? Mine is 2022.08.25 19:21 LMTX.
I do have a workaround, with a \defineframed[underbarframed] and then setting offsets accordingly and using that as a textcommand.
Julian
jbf schrieb am 21.09.2023 um 05:03:
Am attempting to get an underlined head style (chapter) with:
\setuphead[chapter][textcommand=\underbar]
But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar{text}}] but would prefer to achieve this with \setuphead
\setuphead[chapter][textcommand={\setbar[underbar]}]
\starttext
\chapter{\samplefile{ward}}
\stoptext
Wolfgang