From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88778 Path: news.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Automatic reference prefixing in heads with prefix=+ Date: Sat, 27 Sep 2014 12:00:29 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1186618667==" X-Trace: ger.gmane.org 1411812076 4137 80.91.229.3 (27 Sep 2014 10:01:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2014 10:01:16 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 27 12:01:12 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XXooR-00034n-Qx for gctc-ntg-context-518@m.gmane.org; Sat, 27 Sep 2014 12:01:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7ABD7102EA for ; Sat, 27 Sep 2014 12:01:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MnHbIcuD-wiG for ; Sat, 27 Sep 2014 12:01:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 958C51022D for ; Sat, 27 Sep 2014 12:01:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F8B5101E6 for ; Sat, 27 Sep 2014 12:00:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bvJ8Q2cjqPaO for ; Sat, 27 Sep 2014 12:00:56 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 1795C101E1 for ; Sat, 27 Sep 2014 12:00:56 +0200 (CEST) Original-Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s8RA0niP017602 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 27 Sep 2014 12:00:55 +0200 Original-Received: by mail-qg0-f46.google.com with SMTP id q108so10217957qgd.33 for ; Sat, 27 Sep 2014 03:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=x+D7bP/RwXRNw9A6rSENsr5gQ9yOy9SgAF92D6rh4Hg=; b=VqFTshcSEzy9eGVd/HwHtpXd80tCj9VDESusccWqH1Xlf874jHdA4j9aoS2p6llwBA NOTQRlWIkxyfslcjwjCFLbxHDTs6aTlg3aoITMmXooWqu9mTiiHTJNCHOBur8K+XIoUM 6AZI6i/GH1LFYwsX2zYKfTKTzDCrpyrftUax+7LhM2BlANgPx4NIAfpkI+pRcfhp9U8G Jy4EJ7E/khN5emMccCXqT8rO2J0a1RQef36m+p/n8eS6xH/rkiCriGd5zpz62W7PVyxB m0q9nkwVliK0VHdk+2wcj0ktEYRtnPlSghpR8xHxwkChCz7hURqq/k/IZ9X1naHDShov 3wPw== X-Received: by 10.140.84.231 with SMTP id l94mr42232724qgd.84.1411812049140; Sat, 27 Sep 2014 03:00:49 -0700 (PDT) Original-Received: by 10.96.110.105 with HTTP; Sat, 27 Sep 2014 03:00:29 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c04::22e; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03MUa0Oc3 - 634a4deda1a5 - 20140927 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88778 Archived-At: --===============1186618667== Content-Type: multipart/alternative; boundary=001a11c1198aadc1230504091bcf --001a11c1198aadc1230504091bcf Content-Type: text/plain; charset=UTF-8 Hi, Various documents mention a namespace feature for references by setting prefix=+. This is a really cool feature but I cannot get it to work. Why does the following example not work: \setupinteraction[state=start] \setuphead[chapter][prefix=+] \starttext \startchapter[reference=chap1,title={First Chapter}] \startsection[reference=sec1,title={First Section in First Chapter}] Reference \type{sec1} is \about[sec1].\par Reference \type{chap2:sec1} is \about[chap2:sec1].\par \stopsection \stopchapter \startchapter[reference=chap2,title={Second Chapter}] \startsection[reference=sec1,title={First Section in Second Chapter}] Reference \type{sec1} is \about[sec1].\par Reference \type{chap1:sec1} is \about[chap1:sec1].\par \stopsection \stopchapter \stoptext Any help is appreciated. Christoph Reller --001a11c1198aadc1230504091bcf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Various documents mention a namespa= ce feature for references by setting prefix=3D+. This is a really cool feat= ure but I cannot get it to work. Why does the following example not work:

\setupinteraction[state=3Dstart]
\se= tuphead[chapter][prefix=3D+]

\starttext
=
\startchapter[reference=3Dchap1,title=3D{First Chapter}]
=C2=A0 \startsection[reference=3Dsec1,title=3D{First Section in Firs= t Chapter}]
=C2=A0 =C2=A0 Reference \type{sec1} is \about[sec1].\= par
=C2=A0 =C2=A0 Reference \type{chap2:sec1} is \about[chap2:sec= 1].\par
=C2=A0 \stopsection
\stopchapter

=
\startchapter[reference=3Dchap2,title=3D{Second Chapter}]
<= div>=C2=A0 \startsection[reference=3Dsec1,title=3D{First Section in Second = Chapter}]
=C2=A0 =C2=A0 Reference \type{sec1} is \about[sec1].\pa= r
=C2=A0 =C2=A0 Reference \type{chap1:sec1} is \about[chap1:sec1]= .\par
=C2=A0 \stopsection
\stopchapter

\stoptext

Any help is appreciated.<= /div>

Christoph Reller
--001a11c1198aadc1230504091bcf-- --===============1186618667== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1186618667==--