ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "j. van den hoff" <veedeehjay@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
	"Otared Kavian" <otared@gmail.com>
Subject: Re: \setupcaptions question
Date: Thu, 12 Feb 2015 23:14:43 +0100	[thread overview]
Message-ID: <op.xtytetwup7eajd@muck.fritz.box> (raw)
In-Reply-To: <D01B0CE6-7BA9-4EF3-8B0D-06640FABF294@gmail.com>

On Thu, 12 Feb 2015 22:56:11 +0100, Otared Kavian <otared@gmail.com> wrote:

> Hi Wolfgang, and Joerg,
>
> Actually with your code and using numberstopper instead of stopper your  
> example works fine here, too.
> So the right command is
> 	\setupcaption[figure][numberstopper={:}]
> and not what I wrote before (which works in mkii, though…).
> Actually the command used by Joerg, that is
> 	\setupcaptions[numberstopper={:}]
> works also.
>
> Best regards: OK
>
>> On 12 Feb 2015, at 22:31, Wolfgang Schuster  
>> <schuster.wolfgang@gmail.com> wrote:
>>
>>
>>> Am 12.02.2015 um 17:37 schrieb j. van den hoff  
>>> <veedeehjay@googlemail.com>:
>>>
>>>
>>> I want to use `numberstopper' for figure caption customization like so:
>>>
>>> \setupcaptions[numberstopper={:}]
>>>
>>> this works fine for the caption itself (i.e. I get, e.g. "Figure 1:
>>> caption text") _but_
>>> references to the figure via a defined label such as [fig:example]
>>> in the body text do include the numberstopper, too, which is highly
>>> undesirable in my view, since, e.g.,
>>>
>>> "... see Figure 1: for an example. ..."
>>>
>>> should rather read
>>>
>>> "... see Figure 1 for an example. ..."
>>>
>>> i.e. the numberstopper should be omitted (at least optionally) when
>>> referencing.
>>>
>>> question: how can this be achieved?
>>
>>
>> Can you make a example because I can’t reproduce the problem you  
>> describe.

I have done that right now (problem definitely there) but then looked at  
the difference between my syntax
and yours. I used something like

\setupexternalfigures [directory={.}]
\setupcaption[width=.95\textwidth, location=bottom, numberstopper={:}]

\starttext
An illustration of this process is given in Fig.~\in[fig:convosim].
....
\stoptext

changing the referencing to

An illustration of this process is given in Fig.~\at[fig:convosim].

i.e. replacing `\in' by `\at' resolves the issue. I'm rather new to  
context and was under the impression that `\in' is the
context equivalent of latex's \ref and was not aware of \at at all.
but this seems only partly true. can you give me a pointer where best to  
look up the
differences between `\in' and `\at'?

so it seems I need to use \at for referencing figures, at least when  
numberstopper is not empty? ok, so be it ....

and thanks a lot for responding and straightening this out.

best,

joerg


>>
>> \setupexternalfigure[location=default]
>>
>> \setupcaption[figure][numberstopper=:]
>>
>> \starttext
>>
>> Take a look at \at{picture}[fig:cow] below.
>>
>> \startplacefigure[reference=fig:cow,title=A dutch cow]
>>  \externalfigure[cow]
>> \stopplacefigure
>>
>> \stoptext
>>
>> Wolfgang

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
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:[~2015-02-12 22:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12 16:37 j. van den hoff
2015-02-12 21:18 ` Otared Kavian
2015-02-12 21:41   ` j. van den hoff
2015-02-12 21:31 ` Wolfgang Schuster
2015-02-12 21:56   ` Otared Kavian
2015-02-12 22:14     ` j. van den hoff [this message]
2015-02-13  3:54       ` Wolfgang Schuster
2015-02-13  7:53         ` j. van den hoff
2015-03-10 12:06           ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2015-02-12 16:21 joerg van den hoff

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=op.xtytetwup7eajd@muck.fritz.box \
    --to=veedeehjay@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=otared@gmail.com \
    /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).