ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug with reference ?
@ 2011-01-06 16:15 Steffen Wolfrum
  2011-01-06 17:34 ` Steffen Wolfrum
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Wolfrum @ 2011-01-06 16:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Taco Hoekwater

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@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
___________________________________________________________________________________


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

* Re: bug with reference ?
  2011-01-06 16:15 bug with reference ? Steffen Wolfrum
@ 2011-01-06 17:34 ` Steffen Wolfrum
  0 siblings, 0 replies; 2+ messages in thread
From: Steffen Wolfrum @ 2011-01-06 17:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Taco Hoekwater





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@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
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-01-06 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 16:15 bug with reference ? Steffen Wolfrum
2011-01-06 17:34 ` Steffen Wolfrum

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).