From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88802 Path: news.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Re: Automatic reference prefixing in heads with prefix=+ Date: Tue, 30 Sep 2014 08:08:16 +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="===============0073152126==" X-Trace: ger.gmane.org 1412057341 23938 80.91.229.3 (30 Sep 2014 06:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 06:09:01 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 30 08:08:57 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 1XYqcK-0004cP-Sw for gctc-ntg-context-518@m.gmane.org; Tue, 30 Sep 2014 08:08:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5053E102B2 for ; Tue, 30 Sep 2014 08:08:56 +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 GUhWm6A1N3Ok for ; Tue, 30 Sep 2014 08:08:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3AE9210226 for ; Tue, 30 Sep 2014 08:08:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C07B101EB for ; Tue, 30 Sep 2014 08:08:44 +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 s6M1EPW0LA1A for ; Tue, 30 Sep 2014 08:08:42 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 9387E101E1 for ; Tue, 30 Sep 2014 08:08:42 +0200 (CEST) Original-Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s8U68bH8032605 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 30 Sep 2014 08:08:39 +0200 Original-Received: by mail-ie0-f169.google.com with SMTP id tr6so4131563ieb.28 for ; Mon, 29 Sep 2014 23:08:37 -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=C+/uZ5hT8XIRrtAoYmYEyb1iSHb3KAIK56Z2Sm5Xkso=; b=i3mqElzpQSi0duNUZGHa9Ye5nzss6+hkAITMJpZFi4VT8i9w1KmWt4ZYGtK7dYy/XD XotacQT7qtyIK43KTSYJfkrFueyVzaGEoDS8LKkx8C0CboEMjoYNW9hdPzWj1f1rgCE1 cCQuGO5XYKLlU7hmu1JBa/Ytq8OBRWc2SoO3MKIsswgWag934gL8GVIFhs0RbJJ1jFBN RZ78zFWuR11eeRcjvBnsmNtXK75Fv8t+atTOtivf6DlElk9LQLpK8ZwGZWosVErDaNbH 5loCBbkxhBVMMqEohnX8m2wk1At/idEskFNtn3VTMmNX+BrkWrl/DytG96ISi0NRTfAz 9Zqg== X-Received: by 10.43.1.135 with SMTP id nq7mr7321685icb.95.1412057316755; Mon, 29 Sep 2014 23:08:36 -0700 (PDT) Original-Received: by 10.107.40.2 with HTTP; Mon, 29 Sep 2014 23:08:16 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TMVi8CUb - cf7ca72ddaa9 - 20140930 (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:88802 Archived-At: --===============0073152126== Content-Type: multipart/alternative; boundary=bcaec50fe6cdc48e7705044236b0 --bcaec50fe6cdc48e7705044236b0 Content-Type: text/plain; charset=UTF-8 On Sat, Sep 27, 2014 at 12:00 PM, Christoph Reller < christoph.reller@gmail.com> wrote: > 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 > Does anybody have a minimal working example on this topic? Because of the concise syntax "prefix=+" it is difficult to google for an example. This feature is mentioned in two places: 1. contextref.pdf in section "12.5 Cross references" explains the main mechanism but seems a little outdated. 2. Hans Hagen, "This Way - Cross document referencing", September 2011. This is more up to date, but mentions the feature only briefly. The mentioned key there is not "prefix" but "referenceprefix", which doesn't seem to work either. Regards, Christoph Reller --bcaec50fe6cdc48e7705044236b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On S= at, Sep 27, 2014 at 12:00 PM, Christoph Reller <christoph.reller@= gmail.com> wrote:
Hi,
Various documents mention a namespace feature for referen= ces by setting prefix=3D+. This is a really cool feature but I cannot get i= t to work. Why does the following example not work:

\setupinteraction[state=3Dstart]
\setuphead[chapter][prefi= x=3D+]

\starttext

\startc= hapter[reference=3Dchap1,title=3D{First Chapter}]
=C2=A0 \startse= ction[reference=3Dsec1,title=3D{First Section in First Chapter}]
= =C2=A0 =C2=A0 Reference \type{sec1} is \about[sec1].\par
=C2=A0 = =C2=A0 Reference \type{chap2:sec1} is \about[chap2:sec1].\par
=C2= =A0 \stopsection
\stopchapter

\startchap= ter[reference=3Dchap2,title=3D{Second Chapter}]
=C2=A0 \startsect= ion[reference=3Dsec1,title=3D{First Section in Second Chapter}]
= =C2=A0 =C2=A0 Reference \type{sec1} is \about[sec1].\par
=C2=A0 = =C2=A0 Reference \type{chap1:sec1} is \about[chap1:sec1].\par
=C2= =A0 \stopsection
\stopchapter

\stoptext<= /div>

Any help is appreciated.

Christoph Reller

Does anybody have a= minimal working example on this topic? Because of the concise syntax "= ;prefix=3D+" it is difficult to google for an example.

This feature is menti= oned in two places:
1. contextref.pdf in se= ction "12.5 Cross references" explains the main mechanism but see= ms a little outdated.
2.=C2=A0=C2=A0Hans Ha= gen, "This Way - Cross document referencing", September 2011. Thi= s is more up to date, but mentions the feature only briefly. The mentioned = key there is not "prefix" but "referenceprefix", which = doesn't seem to work either.

=
Regards,
Christo= ph Reller
--bcaec50fe6cdc48e7705044236b0-- --===============0073152126== 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 ___________________________________________________________________________________ --===============0073152126==--