[NTG-context] setuphead and command
Taco Hoekwater
taco at elvenkind.com
Mon Jul 24 12:13:15 CEST 2006
Hubertus Schmidt wrote:
> Hi all,
>
> It's supposed to look like
> ------------------------------------------------------------------------------
> def Define Variable
> ------------------------------------------------------------------------------
This is somewhat closer:
\def\CommandHeader#1%
{\framed[frame=off,bottomframe=on,
topframe=on,align=right,width=\textwidth]
{\makeline #1}}
\def\makeline#1#2%
{\hbox to 10em{\hskip14pt\type{#1}\hss}\index{#1}{\it #2}}
\definehead[Command][subject]
\setuphead[Command][deeptextcommand=\CommandHeader]
\starttext
\Command{{def}{Define Variable}}
\Command{{tsolve}{solve differential equation}}
\stoptext
Cheers, Taco
More information about the ntg-context
mailing list