Thank you! :) El mar, 16 sept 2025 a la(s) 2:40 p.m., Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió:
> Am 16.09.2025 um 20:33 schrieb Alan Caruanambo: > > I have the following code. How can I make the number and text centered > > as if they were a single block? > > You can use "alternative=paragraph" for \setuphead but it ignores the > width setting. > > To get centered text and a shorter text width you have to create you own > layout for the title: > > \define[2]\SectionCommand > {\vbox\bgroup > \headsetupspacing > \hsize=.75tw > \begstrut#1\nobreakspace#2\endstrut > \egroup} > > \setuphead > [section] > [style=\ss\bfc, > align=middle, > indentnext=yes, > margin=.125tw, > command=\SectionCommand, > color=darkred] > > Wolfgang > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___________________________________________________________________________________ >
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________