18 Agosto 2010 alle 13:15
#48489
::
Ecco la mia, valida per mkii. Il tuo codice è ok in mkiv, comunque.
`
\def\MySectionCommand#1%
{\bgroup\setbox0=\hbox{#1}%
\textrule{\box0}%
\egroup}
\setuphead[section]
[number=no,style=\tfb,
textcommand=\MySectionCommand
]
\starttext
\chapter{foo}
\section{goo}
hello
\stoptext
`
E’ una traccia: se hai un testo che va su più righe ci sono problemi
(ma allora anche \textrule non va bene)