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? Thanks! Huseyin
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
participants (2)
-
"H. Özoguz"
-
Marco Patzer