From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81174 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: Include section number in reference Date: Sat, 16 Mar 2013 18:37:51 +0100 Message-ID: References: <20111012154914.7bce82ab@glyph> <20111013223644.033d2fca@glyph> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363455478 8428 80.91.229.3 (16 Mar 2013 17:37:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Mar 2013 17:37:58 +0000 (UTC) Cc: Wolfgang Schuster To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 16 18:38:23 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 1UGv3m-0002vR-3v for gctc-ntg-context-518@m.gmane.org; Sat, 16 Mar 2013 18:38:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 783BF101E3; Sat, 16 Mar 2013 18:37:59 +0100 (CET) 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 z7q0XfdXXghk; Sat, 16 Mar 2013 18:37:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 86632101EB; Sat, 16 Mar 2013 18:37:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8738E101EB for ; Sat, 16 Mar 2013 18:37:56 +0100 (CET) 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 ok1ZdeUUPwCn for ; Sat, 16 Mar 2013 18:37:55 +0100 (CET) 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 B5247101E3 for ; Sat, 16 Mar 2013 18:37:55 +0100 (CET) Original-Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.94]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2GHbsgW028546 for ; Sat, 16 Mar 2013 18:37:55 +0100 Original-Received: from [89.247.4.15] (helo=[192.168.1.4]) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1UGv3J-0000J2-U6; Sat, 16 Mar 2013 18:37:54 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Df-Sender: Njk4NTgw X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.31.94; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JchBSHD - 060e938540d8 - 20130316 (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:81174 Archived-At: Am 13.10.2011 um 22:48 schrieb Wolfgang Schuster: > > Am 13.10.2011 um 22:36 schrieb Marco: > >> Does anyone have an idea? >> >> What I do at the moment is that I manually reference my >> sections. But I'm convinced, there's a neat solution for >> that. > > \setupreferencestructureprefix[default][prefixsegments=2:*] > > Wolfgang If I run Marcos example (as seen below), it gives: I Foo A Bar subsection A But how do we get I Foo A Bar subsection I.A ?? Steffen ------- \definestructureconversionset [myset] [ Romannumerals, Romannumerals, Romannumerals, Character, ] [numbers] \setuphead [sectionconversionset=myset] \setuphead [subsection] [sectionsegments=subsection] \setupreferencestructureprefix[default][prefixsegments=1:*] \startsection [title=Foo] \startsubsection [title=Bar, reference=bar] \stopsubsection \in{subsection}[bar] \stopsection ___________________________________________________________________________________ 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 ___________________________________________________________________________________