jbf schrieb am 21.09.2023 um 07:01:
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'.
I get a line below the chapter title with LMTX and LuaTeX with the current ConTeXt version. %%%% begin example \setuphead [chapter] [textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext %%%% end example The line is limited to the title because the textcommand key is used to set \underbar, when you want a line below the whole chapter content you can use the insidesection and aftersection keys. %%%% begin example \setuphead [chapter] [insidesection={\startbar[underbar]}, aftersection={\stopbar}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext %%%% end example Wolfgang