Culprit found by experimenting with your example that indeed is correct.

The problem is in the sectionstopper in the setup:
   \setuphead[chapter][sectionstopper={ – }]
This sectionstopper inserts something between chapter marker and chapter title:
  Chapter 1 – Chapter title

I didn't expect this sectionstopper to turn up in the reference to the chapter 
number. Can you point out how to suppress the sectionstopper in the references 
(if for now) while keeping it between the marker and the title?

And if you are also of the opinion that the sectionstopper shouldn't turn up at 
the end of the reference, will this be changed in an upcoming beta?

Hans van der Meer



On 10 sep. 2013, at 11:16, Wolfgang Schuster <[email protected]>
 wrote:

> 
> Am 10.09.2013 um 10:51 schrieb "Meer, H. van der" <[email protected]>:
> 
>> Doing \in{Figure}[fig:figname] neatly typesets for example: "figure 1.4" 
>> Defined as: \startplacefigure[title=figure-title,reference=fig:figname]
>> 
>> But if I define:\startchapter[title=chapter-title,reference=chap:chapname]
>> Then \in{Chapter}[chap:chapname] produces: "chapter 6 - "
>> Thus an extra space + minus sign + space are put behind the chapter 
>> reference.
>> 
>> This is annoying, because I would like my chapter reference to be "chapter 
>> 6" without any additions. Besides, the figure reference and chapter 
>> reference behave differently, an unexpected phenomenon.
>> It seems the \startchapter defines a reference different from the reference 
>> in \startplacefigure.
>> 
>> Is this difference in behaviour intentional? Is it a bug? How can I revert 
>> my chapter references to the form without the trailing characters?
> 
> 
> Make a minimal example because I can’t reproduce your results.
> 
> \useMPlibrary[dum]
> 
> \starttext
> 
> \startchapter[title=chapter-title,reference=chap:chapname]
> 
> \startplacefigure[title=figure-title,reference=fig:figname]
>  \externalfigure[dummy]
> \stopplacefigure
> 
> Take a look at \in{Figure}[fig:figname] in \in{Chapter}[chap:chapname].
> 
> \stopchapter
> 
> \stoptext
> 



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

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to