Re: [NTG-context] Automatic reference prefixing in heads with prefix=+ broken?

On Tue, Sep 30, 2014 at 8:08 AM, Christoph Reller < christoph.reller@gmail.com> wrote:
Hi everybody Is automatic prefixing of references partially broken? I have found the following example for mkiv in the unofficial test suite ( https://github.com/melmothx/context-unofficial-test-suite): \setuphead[chapter][referenceprefix=+] \starttext \chapter[one]{Chapter One} \section[bla]{Blablabla} \chapter[two]{Chapter Two} See \in{Section}[one:bla] \stoptext The test suite also contains the output pdf with the correct reference. So there must have been a time when mkiv did resolve the reference in the above example correctly. On my ConTeXt standalone dating 2014.08.19 11:57, the above example does, however, not work. The example does only a test of "non-local" references (from within the namespace "two" to the different namespace "one"). Local references do, however, work even with my version of ConTeXt. Here is an example: \setuphead[chapter][referenceprefix=+] \starttext \startchapter[reference=chap1,title=First Chapter] \startsection[reference=sec1,title=First Section in First Chapter] Reference \type{sec1} is \about[sec1]. \stopsection \stopchapter \startchapter[reference=chap2,title=Second Chapter] \startsection[reference=sec1,title=First Section in Second Chapter] Reference \type{sec1} is \about[sec1]. \stopsection \stopchapter \stoptext But how can I now reference chap1:sec1 from withing chap2? I tried \about[chap1:sec1], but in vain. Referencing the global namespace with "-:" does, surprisingly, work. Here is an example: \setuphead[chapter][referenceprefix=+] \starttext \startsection[reference=sec1,title=Freefloating Section] \about[sec1] \stopsection \startchapter[reference=chap1,title=First Chapter] \startsection[reference=sec1,title=First Section in First Chapter] Reference \type{sec1} is \about[sec1].\par Reference \type{-:sec1} is \about[-:sec1] \stopsection \stopchapter \stoptext Any help is appreciated. Regards, Christoph Reller
participants (1)
-
Christoph Reller