[NTG-context] problem with interaction and TOC

Pablo Rodriguez oinos at gmx.es
Sun Mar 22 11:53:15 CET 2015

On 03/22/2015 12:27 AM, Hans Hagen wrote:
> On 3/21/2015 10:49 PM, Pablo Rodriguez wrote:
>> Dear list,
>> I have the following sample:
>>      \setupinteraction[state=start]
>>      \starttext
>>      \placelist[chapter]
>>      %~ \uppercasestring{context}\to\ascii
>>      %~ \chapter{\getvalue{\ascii}}
>>      \chapter{ConTeXt}
>>      \stoptext
>> ConTeXt complains about an error in the first line.
>> What am I doing wrong? (Sorry, but I wanted to test the commented lines,
>> but I don’t know why the simplified example doesn’t work.)
> \uppercasestring{context}\to\ascii
> \chapter{\meaning\ascii}  % \getvalue{\ascii}}
> \chapter{\WORD{ConTeXt}}
> so, \ascii is made undefined at some time

Many thanks for your reply, Hans.

I’m afraid that my ignorance prevents me for understanding your reply.

What I was trying to solve was this:

        <h1><span label="context">ConTeXt</a></h1>
        <span label="context">ConTeXt</a>
        <span label="tex">TeX</a>
        <span label="latex">LaTeX</a>


    \startxmlsetups xml:initialize


    \startxmlsetups xml:h1

    \startxmlsetups xml:logo

    \startxmlsetups xml:context


xml:logo doesn’t work when it has to be parsed in a heading.

Is there a fix for xml:logo or is xml:context the proper fix?

Many thanks for your help,


More information about the ntg-context mailing list