[NTG-context] number of chapters

Henning Hraban Ramm texml at fiee.net
Wed Jul 20 10:02:23 CEST 2022


Am 20.07.22 um 09:47 schrieb Taco Hoekwater:
>> Ok, I can access the wiki via Tor and found
>>
>> \somenamedheadnumber{chapter}{current}
>> \somenamedheadnumber{chapter}{last}
> 
> These are expandable
> 
>> \someheadnumber[chapter][current]
>> \someheadnumber[chapter][last]
> 
> These are not
>>
> 
> \definecolor[MyChapterColor][h={\the\numexpr 360*\somenamedheadnumber{chapter}{current}/\somenamedheadnumber{chapter}{last}\relax},s=1,v=1]

Thank you!

It’s now in https://wiki.contextgarden.net/Command/somenamedheadnumber

Hraban



More information about the ntg-context mailing list