Hi,

\namedheadnumber{chapter} gives the real number (ie an integer) of the
chapter. Of course, this could be used with other headings.

-- Cédric



On Tue, Aug 17, 2010 at 11:53, Elias Oltmanns <e...@nebensachen.de> wrote:
> Elias Oltmanns <e...@nebensachen.de> wrote:
>> For the record:
>>
>> Elias Oltmanns <e...@nebensachen.de> wrote:
>>> In the attempt to customise my section headings by means of
>>> \setuphead[section][...command=]
>>> I followed the instructions at
>>> http://wiki.contextgarden.net/Figures_in_Headings#Figures_in_Headings
>>> .
>> [...]
>>> As it turns out, neither MkII nor MkIV processes the attached example
>>> as expected:
>>> MkII The table of contents is incomplete, even though the wiki says
>>>      it shouldn't be;
>>
>> The solution seems to be to use deeptextcommand instead of textcommand.
>>
>>> MkIV \currentheadnumber seems to be 0 all the time.
>>
>> Apart from Wolfgang's solution, I have now realised that MkIV allows to
>> use command instead of textcommand / numbercommand and still produces a
>> complete table of contents. Accordingly, the setups look like this:
>> \setuphead[section][command=\Myhead]
>> \def\Myhead#1#2{%
>>     Sect #1}
>
> Well, actually, when I really need just a number as in
> \def\Myhead#1#2{\externalfigure[chapter-\currentheadnumber]}
> I'm still in trouble as far as MkIV is concerned. Can I somehow extract
> that number from the argument? Or can MkIV be changed to provide
> \currentheadnumber as does MkII? Personally, I'm content with using MkII
> right now. So, I'm asking out of curiosity here and for the purpose of
> updating the wiki page referenced above.
>
> Regards,
>
> Elias
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to