ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MKIV caption separator, revisited
@ 2014-04-22  0:57 Rik Kabel
  2014-04-22  6:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Rik Kabel @ 2014-04-22  0:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 877 bytes --]

Has any progress been made in the past few years implementing modifiable 
separators for captions under MKIV? This was raised as an issue by (at 
least) Mojca Miklavec in December 2010 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and by 
Andy Thomas 18 months later 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html). (Their 
issues with stopper have been resolved. In MKIV it is numberstopper.)

Here is an MWE demonstrating the problem. It compiles cleanly, but the 
separator remains the default period. With MKII, it generates a figure 
with a hyphen and not a period.

    \setupcaptions[separator=-]
    \setupexternalfigures[location=default]
    \starttext
    \chapter{Chaptername}
    \section{Sectionname}
    \placefigure[here][fig:1]{Caption}{\externalfigure[cow.pdf]}
    \in{See Figure}{.}[fig:1]
    \stoptext

-- 
Rik Kabel

[-- Attachment #1.2: Type: text/html, Size: 1364 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2014-04-22  0:57 MKIV caption separator, revisited Rik Kabel
@ 2014-04-22  6:25 ` Wolfgang Schuster
  2014-04-22 15:09   ` Rik Kabel
  2016-10-09 12:36   ` Meer, Hans van der
  0 siblings, 2 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2014-04-22  6:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 765 bytes --]


Am 22.04.2014 um 02:57 schrieb Rik Kabel <context@rik.users.panix.com>:

> Has any progress been made in the past few years implementing modifiable separators for captions under MKIV? This was raised as an issue by (at least) Mojca Miklavec in December 2010 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and by Andy Thomas 18 months later (http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html). (Their issues with stopper have been resolved. In MKIV it is numberstopper.)
> 
> Here is an MWE demonstrating the problem. It compiles cleanly, but the separator remains the default period. With MKII, it generates a figure with a hyphen and not a period.
> \setupcaptions[separator=-]

\setupcaptions[prefixconnector=-]

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1506 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2014-04-22  6:25 ` Wolfgang Schuster
@ 2014-04-22 15:09   ` Rik Kabel
  2016-10-09 12:36   ` Meer, Hans van der
  1 sibling, 0 replies; 9+ messages in thread
From: Rik Kabel @ 2014-04-22 15:09 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1379 bytes --]

On 2014-04-22 02:25, Wolfgang Schuster wrote:
>
> Am 22.04.2014 um 02:57 schrieb Rik Kabel <context@rik.users.panix.com 
> <mailto:context@rik.users.panix.com>>:
>
>> Has any progress been made in the past few years implementing 
>> modifiable separators for captions under MKIV? This was raised as an 
>> issue by (at least) Mojca Miklavec in December 2010 
>> (http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and 
>> by Andy Thomas 18 months later 
>> (http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html 
>> <http://www.mail-archive.com/ntg-context@ntg.nl/msg63937.html>). 
>> (Their issues with stopper have been resolved. In MKIV it is 
>> numberstopper.)
>>
>> Here is an MWE demonstrating the problem. It compiles cleanly, but 
>> the separator remains the default period. With MKII, it generates a 
>> figure with a hyphen and not a period.
>>
>>     \setupcaptions[separator=-]
>>
> \setupcaptions[prefixconnector=-]
>
> Wolfgang
>

As always, thank you.

I have updated the wiki page for setupcaptions. The updated includes a 
reworded description of the suffix key and new descriptions for the 
stopper/numberstopper and separator/prefixconnector keys.

(There are many other keys that are not documented, and a few at least 
that differ between MKII and MKIV, but I do not have the time at the 
moment to test all of them.)

-- 
Rik Kabel


[-- Attachment #1.2: Type: text/html, Size: 2659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2014-04-22  6:25 ` Wolfgang Schuster
  2014-04-22 15:09   ` Rik Kabel
@ 2016-10-09 12:36   ` Meer, Hans van der
  2016-10-09 19:44     ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Meer, Hans van der @ 2016-10-09 12:36 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1119 bytes --]

Is this still valid? Using \setupcaptions[prefixconnector=-] doesn't seem to make a difference for \startplacefigure.

Hans van der Meer

On 22 Apr 2014, at 08:25, Wolfgang Schuster <schuster.wolfgang@gmail.com<mailto:schuster.wolfgang@gmail.com>> wrote:


Am 22.04.2014 um 02:57 schrieb Rik Kabel <context@rik.users.panix.com<mailto:context@rik.users.panix.com>>:

Has any progress been made in the past few years implementing modifiable separators for captions under MKIV? This was raised as an issue by (at least) Mojca Miklavec in December 2010 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and by Andy Thomas 18 months later (http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html<http://www.mail-archive.com/ntg-context@ntg.nl/msg63937.html>). (Their issues with stopper have been resolved. In MKIV it is numberstopper.)

Here is an MWE demonstrating the problem. It compiles cleanly, but the separator remains the default period. With MKII, it generates a figure with a hyphen and not a period.
\setupcaptions[separator=-]
\setupcaptions[prefixconnector=-]

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2259 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2016-10-09 12:36   ` Meer, Hans van der
@ 2016-10-09 19:44     ` Wolfgang Schuster
  2016-10-10  7:41       ` Meer, Hans van der
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2016-10-09 19:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 233 bytes --]

> Meer, Hans van der <mailto:H.vanderMeer@uva.nl>
> 9. Oktober 2016 um 14:36
> Is this still valid? Using \setupcaptions[prefixconnector=-] doesn't 
> seem to make a difference for \startplacefigure.
Do you have a example?

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1279 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2016-10-09 19:44     ` Wolfgang Schuster
@ 2016-10-10  7:41       ` Meer, Hans van der
  2016-10-10  8:39         ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Meer, Hans van der @ 2016-10-10  7:41 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1689 bytes --]

Here is the example. \setupcaptions has no effect, however \setupfloatcaption does (assuming of course I didn't make a silly mistake ;-). Thus it is no problem to get the effect desired, but possibly \setupcaptions should be deprecated, or perhaps reimplemented to calling \setupfloatcaption. I could have missed the change, but I guess a lot of other people might have missed it too. In that case we could spare them the trouble of finding out what happened.

Hans van der Meer

\starttext

\setupcaptions[prefixconnector=-]
\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[test.jpg][scale=300]
\stopplacefigure

\setupfloatcaption[suffix=-]
\startplacefigure[title=\tex{setupfloatcaption[suffix=-]}]
\externalfigure[test.jpg][scale=300]
\stopplacefigure

\stoptext

On 09 Oct 2016, at 21:44, Wolfgang Schuster <schuster.wolfgang@gmail.com<mailto:schuster.wolfgang@gmail.com>> wrote:

Meer, Hans van der<mailto:H.vanderMeer@uva.nl>
9. Oktober 2016 um 14:36
Is this still valid? Using \setupcaptions[prefixconnector=-] doesn't seem to make a difference for \startplacefigure.
Do you have a example?

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

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


[-- Attachment #1.2: Type: text/html, Size: 4801 bytes --]

[-- Attachment #2: tester.pdf --]
[-- Type: application/pdf, Size: 31515 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2016-10-10  7:41       ` Meer, Hans van der
@ 2016-10-10  8:39         ` Wolfgang Schuster
  2016-10-10  8:40           ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2016-10-10  8:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1053 bytes --]

> Meer, Hans van der <mailto:H.vanderMeer@uva.nl>
> 10. Oktober 2016 um 09:41
> Here is the example. \setupcaptions has no effect, however 
> \setupfloatcaption does (assuming of course I didn't make a silly 
> mistake ;-). Thus it is no problem to get the effect desired, but 
> possibly \setupcaptions should be deprecated, or perhaps reimplemented 
> to calling \setupfloatcaption. I could have missed the change, but I 
> guess a lot of other people might have missed it too. In that case we 
> could spare them the trouble of finding out what happened.
prefixconnector is the separator between the section number (=prefix) 
and the float number (=figure number), the symbol at the end of the 
float number is called numberstopper. In your example you don’t have a 
section which can act as prefix number no did you change which prefixes 
should be shown (by default only chapters are used as prefix).

The suffix key you use (together with suffixconnector and suffixstopper) 
is used to show the number for subfigures, e.g. figure 3.a.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2187 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2016-10-10  8:39         ` Wolfgang Schuster
@ 2016-10-10  8:40           ` Wolfgang Schuster
  2016-10-10 10:29             ` Meer, Hans van der
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2016-10-10  8:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 896 bytes --]

> Wolfgang Schuster <mailto:schuster.wolfgang@gmail.com>
> 10. Oktober 2016 um 10:39
> prefixconnector is the separator between the section number (=prefix) 
> and the float number (=figure number), the symbol at the end of the 
> float number is called numberstopper. In your example you don’t have a 
> section which can act as prefix number no did you change which 
> prefixes should be shown (by default only chapters are used as prefix).
>
> The suffix key you use (together with suffixconnector and 
> suffixstopper) is used to show the number for subfigures, e.g. figure 3.a.
Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1960 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: MKIV caption separator, revisited
  2016-10-10  8:40           ` Wolfgang Schuster
@ 2016-10-10 10:29             ` Meer, Hans van der
  0 siblings, 0 replies; 9+ messages in thread
From: Meer, Hans van der @ 2016-10-10 10:29 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1712 bytes --]

Thanks I did not know the correct designations for the various parts of the captionlabel: the prefixconnector and the numberstopper. It is clear now.
Hans van der Meer




On 10 Oct 2016, at 10:40, Wolfgang Schuster <schuster.wolfgang@gmail.com<mailto:schuster.wolfgang@gmail.com>> wrote:

Wolfgang Schuster<mailto:schuster.wolfgang@gmail.com>
10. Oktober 2016 um 10:39
prefixconnector is the separator between the section number (=prefix) and the float number (=figure number), the symbol at the end of the float number is called numberstopper. In your example you don’t have a section which can act as prefix number no did you change which prefixes should be shown (by default only chapters are used as prefix).

The suffix key you use (together with suffixconnector and suffixstopper) is used to show the number for subfigures, e.g. figure 3.a.
Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

\stoptext

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

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


[-- Attachment #1.2: Type: text/html, Size: 3791 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2016-10-10 10:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22  0:57 MKIV caption separator, revisited Rik Kabel
2014-04-22  6:25 ` Wolfgang Schuster
2014-04-22 15:09   ` Rik Kabel
2016-10-09 12:36   ` Meer, Hans van der
2016-10-09 19:44     ` Wolfgang Schuster
2016-10-10  7:41       ` Meer, Hans van der
2016-10-10  8:39         ` Wolfgang Schuster
2016-10-10  8:40           ` Wolfgang Schuster
2016-10-10 10:29             ` Meer, Hans van der

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