ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: caption labels
@ 2011-09-24 11:27 Felix Ingram
  2011-09-24 16:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Ingram @ 2011-09-24 11:27 UTC (permalink / raw)
  To: ntg-context

> Am 23.09.2011 um 12:45 schrieb Felix Ingram:
>
>>>> I'm defining a new float that I'd like to caption with its own label.
>>>> Something like:
>>>>
>>>> \definefloat[picture][pictures]
>>>>
>>>> I'd then like the caption to read:
>>>>
>>>> Picture 1 - my caption text
>>>> Picture 2 - etc
>>>>
>>>> At the moment I've used \setupcaption[picture][way=bytext] to sort out
>>>> the numbering but I cannot figure out how to do the label.
>>>
>>> \setupcaption[picture][way=bytext,label=Picture] does the trick
>>
>> This doesn't work for me. Setupcaption doesn't appear to support a
>> label option (MKIV and assuming I'm looking at the correct source
>> file…)
>
> Use “\setuplabeltext[picture=Picture ]”.
>
> Wolfgang

Firstly, thanks for the reply. Secondly, apologies again for not
supplying a minimal example - this would have helped me track down
what's causing my issue.


\mainlanguage[en-gb] %% Remove me for labels
%\mainlanguage[en]  %% or use me instead

\definefloat[picture][pictures] % Define our fancy boxout
\starttext
\placepicture{This is my caption}{Some float text}
\stoptext


The above will fail to generate a caption. Removing the \mainlanguage
command will cause the label to appear as expected. Using
\setuplabeltext[en-gb][picture=Picture ] will fail to work. Changing
the main language to 'en' or 'nl' will cause the label to reappear.

I'll change the main language to 'en' for the time being.

Thanks again for the help,

Felix
___________________________________________________________________________________
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: caption labels
  2011-09-24 11:27 caption labels Felix Ingram
@ 2011-09-24 16:31 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-09-24 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.09.2011 um 13:27 schrieb Felix Ingram:

>> Am 23.09.2011 um 12:45 schrieb Felix Ingram:
>> 
>>>>> I'm defining a new float that I'd like to caption with its own label.
>>>>> Something like:
>>>>> 
>>>>> \definefloat[picture][pictures]
>>>>> 
>>>>> I'd then like the caption to read:
>>>>> 
>>>>> Picture 1 - my caption text
>>>>> Picture 2 - etc
>>>>> 
>>>>> At the moment I've used \setupcaption[picture][way=bytext] to sort out
>>>>> the numbering but I cannot figure out how to do the label.
>>>> 
>>>> \setupcaption[picture][way=bytext,label=Picture] does the trick
>>> 
>>> This doesn't work for me. Setupcaption doesn't appear to support a
>>> label option (MKIV and assuming I'm looking at the correct source
>>> file…)
>> 
>> Use “\setuplabeltext[picture=Picture ]”.
>> 
>> Wolfgang
> 
> Firstly, thanks for the reply. Secondly, apologies again for not
> supplying a minimal example - this would have helped me track down
> what's causing my issue.
> 
> 
> \mainlanguage[en-gb] %% Remove me for labels
> %\mainlanguage[en]  %% or use me instead
> 
> \definefloat[picture][pictures] % Define our fancy boxout
> \starttext
> \placepicture{This is my caption}{Some float text}
> \stoptext
> 
> 
> The above will fail to generate a caption. Removing the \mainlanguage
> command will cause the label to appear as expected. Using
> \setuplabeltext[en-gb][picture=Picture ] will fail to work. Changing
> the main language to 'en' or 'nl' will cause the label to reappear.
> 
> I'll change the main language to 'en' for the time being.

Use can use “\setuplabeltext[en][picture=Picture ]” to set a label for “en-gb”.

Wolfgang
___________________________________________________________________________________
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-09-24 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-24 11:27 caption labels Felix Ingram
2011-09-24 16:31 ` Wolfgang Schuster

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