From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11366 Path: main.gmane.org!not-for-mail From: Guy Worthington Newsgroups: gmane.comp.tex.context Subject: Re: typesetting chapter--label for cross references Date: 12 Mar 2003 21:06:57 +0800 Sender: ntg-context-admin@ntg.nl Message-ID: References: <5.1.0.14.1.20030312002231.02499ec0@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047474146 5481 80.91.224.249 (12 Mar 2003 13:02:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2003 13:02:26 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Mar 12 14:02:24 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18t5sG-0001Q8-00 for ; Wed, 12 Mar 2003 14:02:24 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id C02AF10B8A; Wed, 12 Mar 2003 14:03:04 +0100 (MET) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id 0AFCD10B7E for ; Wed, 12 Mar 2003 14:00:02 +0100 (MET) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18t5pG-0001EJ-00 for ; Wed, 12 Mar 2003 13:59:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18t5pF-0001E9-00 for ; Wed, 12 Mar 2003 13:59:17 +0100 Original-Lines: 54 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11366 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11366 Hans Hagen wrote: > Guy Worthington wrote: >> I'd like to display a cross reference, using a en-dash to separate >> the chapter number from the text being cross referenced. > This is a mixture of a bug and feature. I don't understand what you did to patch the bug, but I can certainly appreciate the feature. I get a lot of pleasure when I trip across these types of electric macros. ----- %output=pdf \unprotect \def\preparethenumber#1#2#3% {\??id#1} \number \result {\doifelsevaluenothing{#1\c!scheider} {\let\numberseparator\empty \let#3#2} {\edef\numberseparator{\getvalue{#1\c!scheider}}% \edef#3{\@EA\separatednumber\@EA{#2}}}} % hm, etex \protect \definesymbol[MySep][--] \defineenumeration [example] [location=serried, text=Example, before=\blank, after=\blank, way=bychapter, style=italic, separator={\symbol[MySep]}] \starttext \chapter{One} \in{Example}[ex:Simple-doc] has the chapter number separated from the example number by a period, and not an en-dash. \example[ex:Simple-doc] A Sample XML file \startXML \stopXML \stoptext -------