[NTG-context] Trouble with customising section heads

Elias Oltmanns eo at nebensachen.de
Wed Aug 11 00:00:49 CEST 2010


Wolfgang Schuster <schuster.wolfgang at googlemail.com> wrote:
>  Am 10.08.10 17:02, schrieb Elias Oltmanns:
>> Hi again,
>
>>
>> sorry for bothering you so persistently, but I really did try to hard to
>> find a solution -- and failed:
>> 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
>> . For the purposes of testing, I've installed a current minimals
>> distribution. 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;
>> MkIV \currentheadnumber seems to be 0 all the time.
>>
>> There is a possibility, of course, that something is wrong with my setup
>> of ConTeXt. But I just did another
>> % ./first-setup.sh --context=current
>>
>> Thanks in advance for any hint,
>>
>> Elias
>>
>>
>> %%%%%%%%%%
>> \setuphead[section][textcommand=\Myhead,numbercommand=\Mynum]
>
> \setuphead[section][textcommand=\gobbleoneargument,numbercommand=\groupedcommand{Sect
> }{}]

I see. Well, this seems to fix the issue with MkIV at least.

Thanks,

Elias


More information about the ntg-context mailing list