Am 14.10.2011 um 13:28 schrieb Wolfgang Schuster:
Am 14.10.2011 um 13:18 schrieb Marco:
On 2011-10-13 Wolfgang Schuster
wrote: \setupreferencestructureprefix[default][prefixsegments=2:*]
Thanks.
Wikified. (Although without explanations, just an example)
I can also provide the entry from my command reference (no yet in the PDF):
\setupreferencestructureprefix[.1.][.2.][..,.3.,..] optional
1. IDENTIFIER (float, formula, figure, SECTION (e.g. section, subsection, …), …) 2. number, page, title, text or default 3. prefix = yes (default), no prefixseparatorset = IDENTIFIER prefixconversionset = IDENTIFIER prefixset = IDENTIFIER prefixsegments = SEGMENTS prefixconnector = TEXT
Below I describe the values of the three arguments. The first (and optional) argument can be used to specify the element, where you want to customize the reference. When you use “float” the setting affects all kind of floats which are created with \definefloat but you also change only certain float type when you use the name of the float, e.g. figure or table. When you want to change the layout for a heading you need the name of it, e.g. chapter or section (not sure about this because I haven’t checked this). The second argument specifies the reference type, you can the values of these types in the following example. When you refer to a section or float with \in context uses the “default” type and when you use \at it uses the “page” type. \startsetups[reference:table] \starttabulate \NC \bf key \EQ \bf value \NC\NR \NC number \EQ \currentreferencenumber \NC\NR \NC page \EQ \currentreferencepage \NC\NR \NC title \EQ \currentreferencetitle \NC\NR \NC text \EQ\currentreferencetext \NC\NR \NC default \EQ \currentreferencedefault \NC\NR \NC realpage \EQ \currentreferencerealpage \NC\NR \stoptabulate \stopsetups \definereferenceformat[referencetable][setups=reference:table] \starttext \section[sec:table]{Values for the reference command} \starttyping \startsection[reference=sec:table,title={Values for the reference command}] \stoptyping \referencetable[sec:table] \startbuffer \reference[ref:test]{Is this the text or the title?} \stopbuffer \getbuffer \typebuffer \referencetable[ref:test] \stoptext With the third argument you can control which prefixes (section numbers which are shown in front of a floats own counter value) are shown and how they should be formatted. Wolfgang