Re: \setuphead e \textrule

#48489
Up
0
Down
::


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)

Go to top