ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typesetting chapter--label for cross references
@ 2003-02-24  8:25 Guy Worthington
  2003-03-11 23:24 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Guy Worthington @ 2003-02-24  8:25 UTC (permalink / raw)


I'd like to display a cross reference, using a en-dash to separate the
chapter number from the text being cross referenced.  In the example
below, if you look at label attached to the example caption "A Sample
XML file," you'll see that it is typeset as

    Example~1--1

however if you look at the cross reference to the example, it is
typeset as

   Example~1.1

how do I change the period (.) separator in the cross reference to an
en-dash separator (--).

-----

\defineenumeration
 [example]
 [location=serried,
  text=Example,
  before=\blank,
  after=\blank,
  way=bychapter,
  style=italic,
  separator=--]

\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

-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-12 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24  8:25 typesetting chapter--label for cross references Guy Worthington
2003-03-11 23:24 ` Hans Hagen
2003-03-12 13:06   ` Guy Worthington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).