2012-11-30 H. Özoguz:
> How to define a new title - like section, but aligned in the center and
> underlined?
>
> So far I got:
>
> \definehead[mysection][section]
> \setuphead[mysection][alternative=middle]
>
> How to get the underlining in that?
The following code is quite verbose, but it's the most flexible way
of implementing a structure head design. See also:
http://wiki.contextgarden.net/Titles
\definehead
[mysection]
[section]
\setuphead
[mysection]
[alternative=mysection]
\defineheadalternative
[mysection]
[renderingsetup=setup:mysection]
\defineframedtext
[mysectionframe]
[width=broad,
align=middle,
frame=off,
bottomframe=on]
\startsetups [setup:mysection]
\headsetupspacing
\startmysectionframe
\ifconditional\headshownumber
\headnumbercontent
\hskip\headnumberdistance
\fi
\headtextcontent
\stopmysectionframe
\stopsetups
\starttext
\startmysection [title=Foo]
\input knuth
\stopmysection
\stoptext
Marco
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___