Am 23.01.2025 um 23:00 schrieb garulfo@azules.eu:
Hi,
in setuphead, I try to get a decreasing size of the section number according to its level with \defineconversion and \definestructureconversionset.
It works as expected for the first levels, but between 6th and 7th, the variation doesn't occur.
The missing font change occurs between level 5 and 6 when you use the correct conversion name as shown below. The reason for this is the default font size for the sections and the fact that \tf doesn't switch to the default font size, i.e. when you use \tf after \tfa the a-size remains. \starttext \tfa{\tfc 1.}{\tfb 1.}{\tfa 1.}{\tf 1.}{\tfx 1} \stoptext
Any clue about what is happening ?
For the MVE, I've added a visual check in dark red to show the discrepancy.
\setuppapersize[A5]
\define[1]\NivA{\tfc #1} \defineconversion[NA][\NivA]
\define[1]\NivB{\tfb #1} \defineconversion[NB][\NivB]
\define[1]\NivC{\tfa #1} \defineconversion[NC][\NivC]
\define[1]\NivD{\tf #1} \defineconversion[ND][\NivD]
\define[1]\NivE{\tfx #1} \defineconversion[ND][\NivE]
This should be: \defineconversion[NE][\NivE] A better alternative is to create a processor for each conversion. \defineprocessor [level_3] [style=\tfc] \defineprocessor [level_4] [style=\tfb] \defineprocessor [level_5] [style=\tfa] \defineprocessor [level_6] [style=\tf ] \defineprocessor [level_7] [style=\tfx] \defineconversionset [mysectionnumbers] [n,n,level_3->n,level_4->n,level_5->n,level_6->n,level_7->n] [n] Wolfgang