[NTG-context] Chapter number and titles in separate lines with grid layout
Rik Kabel
rik at panix.com
Wed Feb 15 19:10:46 CET 2023
On 2023-02-15 08:44, Alex Leray via ntg-context wrote:
>
> \showframe
> \showlayout
> \showgrid
>
> \setuplayout[
> Â Â Â grid=yes,
> ]
>
> \define[2]\MySection{\framed[
> Â Â Â location=keep,
> Â Â Â frame=on,
> Â Â Â width=broad,
> Â Â Â % height=22pt,
> Â Â Â align=middle
> ]{{#1.\\#2}}}
>
> \setuphead[section][
> Â Â Â strut=no,
> Â Â Â conversion=Romannumerals,
> Â Â Â style={\bf\WORDS},
> Â Â Â align=middle,
> Â Â Â command=\MySection,
> ]
>
> \starttext
> \startsection[title={First section}]
> this is the text
> \stopsection
> \stoptext
Have you tried it with \framedtext in the place of \framed ?
--
Rik
More information about the ntg-context
mailing list