![](https://secure.gravatar.com/avatar/1232667a969c42fe0b5873862eca7035.jpg?s=120&d=mm&r=g)
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 <?xml version="1.0"?> <?xml-stylesheet href="simple-doc.xsl" type="text/xsl"?> \stopXML \stoptext -------