From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83333 Path: news.gmane.org!not-for-mail From: Steffen Kram Newsgroups: gmane.comp.tex.context Subject: Re: relative references? Date: Sun, 7 Jul 2013 16:13:46 +0200 Message-ID: References: <9DDE18A1-FD0B-4D9D-A8A0-2504F5DE1A2C@kram.io> <3751C849-4DD4-4060-BC3E-FDE7CE22BF5A@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373206446 26556 80.91.229.3 (7 Jul 2013 14:14:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jul 2013 14:14:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 07 16:14:08 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uvpj3-0005Yr-DS for gctc-ntg-context-518@m.gmane.org; Sun, 07 Jul 2013 16:14:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 612FE101EE; Sun, 7 Jul 2013 16:14:04 +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 DthAU-q4C884; Sun, 7 Jul 2013 16:14:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BECE9101E8; Sun, 7 Jul 2013 16:14:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D19E5101E8 for ; Sun, 7 Jul 2013 16:14:00 +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 1cqqPcEIC1os for ; Sun, 7 Jul 2013 16:13:59 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 43222101E0 for ; Sun, 7 Jul 2013 16:13:49 +0200 (CEST) Original-Received: from tain.scriptroom.net (tain.scriptroom.net [217.10.9.75]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r67EDlZA030525 for ; Sun, 7 Jul 2013 16:13:48 +0200 Original-Received: from doyle.mathematik.uni-ulm.de (doyle.mathematik.uni-ulm.de [134.60.66.160]) by tain.scriptroom.net (Postfix) with ESMTPSA id 56BD7336924 for ; Sun, 7 Jul 2013 16:13:45 +0200 (CEST) In-Reply-To: <3751C849-4DD4-4060-BC3E-FDE7CE22BF5A@gmail.com> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.10.9.75; country=DE; region=02; city=Neu-ulm; latitude=48.4000; longitude=10.0167; http://maps.google.com/maps?q=48.4000,10.0167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JVqdLjX - 76e3079da72c - 20130707 (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:83333 Archived-At: Hi Wolfgang, I already tried using \setuphead[=85][prefix=3D+], this are my definitions: \setuphead [chapter][command=3D\ChapterCmd, style=3D{\ss\bfc}, page=3Dright= , number=3Dyes, frame=3Doff, placehead=3Dyes, align=3Dleft, before=3D{}, af= ter=3D{\blank[3*line]}, header=3Dnomarking, prefix=3D+] \setuphead [section][style=3D{\ss\bfb}, page=3Dno, number=3Dyes, frame=3Dof= f, placehead=3Dyes, align=3Dright, before=3D{\testpage[6]\blank[2*line]}, a= fter=3D{\blank}, prefix=3D+] \setuphead [subsection][style=3D{\ss\bfa}, page=3Dno, number=3Dyes, frame= =3Doff, placehead=3Dyes, align=3Dright, before=3D{\testpage[6]\blank[line]}= , after=3D{}, prefix=3D+] But I can't get cross-chapter reference to work, e.g. a subsection in my se= cond chapter is defined as = \chapter[basics]{foo} =85 \section[development]{bar} referencing this from my fourth chapter with \in{Abschnitt}[basics:development] just produces "Abschnitt ??". Have I set up something wrong? Thanks! Steffen Am 04.07.2013 um 12:07 schrieb Wolfgang Schuster : > = > Am 02.07.2013 um 17:30 schrieb Steffen Kram : > = >> Hello, >> = >> is it possible to reference parts of a document in a "relative" style? >> = >> My structure is as follows: >> = >> \startproduct >> =85 >> \startbodymatter >> \component chapterFoo/main >> \component chapterBar/main >> \stopbodymatter >> =85 = >> \stopproduct >> = >> Each of my chapters uses \chapter, \section =85 \subsubsubsection marker= s. I would like to use references for each of them. >> = >> = >> Is it possible to reference for example the subsection "Foo AA" from the= chapter start with an relative reference such as = >> = >> \chapter[sec:foo]{Foo} >> = >> \in[fooA:fooAA] >> = >> \section[fooA]{Foo A} >> = >> \subsection[fooAA]{Foo AA} >> = >> = >> but when referencing it from the second chapter use a absolute reference: >> = >> \chapter[sec:bar]{Bar} >> = >> \in[sec:foo:fooA:fooAA] =85 >> = >> Is this possible? Or must I use absolute references and identifiers ever= ywhere? > = > Take a look at page 149ff at the context manual [1] where this is describ= ed. > = > [1] http://www.pragma-ade.nl/show-man-9.htm > = > Wolfgang > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > = ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________