ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, H. van der" <H.vanderMeer@uva.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: extra - in reference
Date: Tue, 10 Sep 2013 10:07:22 +0000	[thread overview]
Message-ID: <7E24008D-414A-41A3-91BD-85994B3090F5@uva.nl> (raw)
In-Reply-To: <42955625-D70D-415F-89D4-885E422A4DD1@gmail.com>

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 <schuster.wolfgang@gmail.com>
 wrote:

> 
> Am 10.09.2013 um 10:51 schrieb "Meer, H. van der" <H.vanderMeer@uva.nl>:
> 
>> 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 : 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
___________________________________________________________________________________


      reply	other threads:[~2013-09-10 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-10  8:51 Meer, H. van der
2013-09-10  9:16 ` Wolfgang Schuster
2013-09-10 10:07   ` Meer, H. van der [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7E24008D-414A-41A3-91BD-85994B3090F5@uva.nl \
    --to=h.vandermeer@uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).