From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22929 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: "Smart" \in Date: Sat, 08 Oct 2005 14:26:27 +0200 Message-ID: <4347BAF3.4080807@wxs.nl> References: <95485469.20051007182526@iol.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128774374 24964 80.91.229.2 (8 Oct 2005 12:26:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2005 12:26:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 08 14:26:06 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EODmA-0001zM-EF for gctc-ntg-context-518@m.gmane.org; Sat, 08 Oct 2005 14:26:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 56CE0127C9; Sat, 8 Oct 2005 14:26:05 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13010-08; Sat, 8 Oct 2005 14:25:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A8550127BF; Sat, 8 Oct 2005 14:25:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B3130127BF for ; Sat, 8 Oct 2005 14:25:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13156-04 for ; Sat, 8 Oct 2005 14:25:56 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id A5F08127AA for ; Sat, 8 Oct 2005 14:25:56 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j98CPrV5025443 for ; Sat, 8 Oct 2005 14:25:53 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id A042036514; Sat, 8 Oct 2005 13:28:10 +0200 (CEST) Original-Received: from [10.100.1.15] (unknown [10.100.1.15]) by server-1.pragma-net.nl (Postfix) with ESMTP id 9865A193E9 for ; Sat, 8 Oct 2005 11:28:09 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <95485469.20051007182526@iol.it> X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22929 Archived-At: Giuseppe Bilotta wrote: >Hello all, > >I have a document which is split into separate \parts. I >would like the \in command (& friends) to automatically add >the "part" reference when cross-referencing across parts. > >Example: > > >""" >\part[part:one]{Part one} > >\chapter[ch:one]{Chapter one} > >\chapter[ch:two]{Chapter two} >As seen in \in chapter[ch:one] > >\part[part:two]{Part two} > >\chater[ch:2-1]{Chapter two} > >As seen in \in chapter[ch:one] >""" > >The first \in would say chapter~1, the second chapter~1, >part~1. > > > \setuphead[part][prefix=part] \setuphead[chapter][prefix=ch] \setuphead[chapter]prefix=+] % kind of automatic (actually, prefixes are blabla::whatever deep down in context) -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------