[NTG-context] bug with reference ?

Steffen Wolfrum context at st.estfiles.de
Thu Jan 6 18:34:07 CET 2011





Sure ... an alternative might be to include the various starter/stopper in the conversion:

\define[1]\EbeneDreiConversion  {§\,\numbers{#1}}
\define[1]\EbeneVierConversion  {\Characters{#1}.}
...
\defineconversion [ebenedrei]           [\EbeneDreiConversion]
\defineconversion [ebenevier]           [\EbeneVierConversion]
...
\definestructureconversionset [default] [ , Erster_Teil, Erstes_Kapitel,ebenedrei,ebenevier] [numbers]

In this case the reference output is fine.


But: the booksmarks would be wrong, as they fall back to numbers and have no individual start/stopper!!


If I write down each conversion literally, then the bookmarks are correct:
\defineconversion [ebenedrei]  
[{§ 1},{§ 2},{§ 3},{§ 4},{§ 5},{§ 6},{§ 7},{§ 8},{§ 9}]



So, this is the only way?

Steffen







Am 06.01.2011 um 17:15 schrieb Steffen Wolfrum:

> Hi,
> 
> when the lowest section is defined with "sectionstarter=("
> then the entire reference gets "(" instead of only the actual section:
> 
> 
> The example below gives ...
> (1. (1) 1. (1)
> 
> ...but the right way would be
> 1. (1) 1. (1)
> 
> 
> 
> Did I make a mistake or is there a bug?
> 
> Steffen
> -------
> 
> \starttext
> 
> \setupreferencestructureprefix[default][prefixsegments=2:100]
> \definestructureseparatorset  [default][,,{. (},{) },{. (}][ ]
> 
> \setupstructurehead[section]         [sectionstarter=,sectionstopper=.,sectionsegments=3:3]
> \setupstructurehead[subsection]      [sectionstarter=(,sectionstopper=),sectionsegments=4:4]
> \setupstructurehead[subsubsection]   [sectionstarter=,sectionstopper=.,sectionsegments=5:5]
> \setupstructurehead[subsubsubsection][sectionstarter=(,sectionstopper=),sectionsegments=6:6]
> 
> \section {One}
> 
> \subsection{Two}
> 
> \subsubsection[sectest]{Three}
> 
> \subsubsubsection[subsectest]{Four}
> 
> See in "Three" \in[sectest] and in "Four" \in[subsectest] as well.
> 
> \stoptext
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________



More information about the ntg-context mailing list