ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* captions trouble
@ 2011-11-26 11:29 Meer, H. van der
  2011-11-26 11:50 ` Jaroslav Hajtmar
  2011-11-26 14:17 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Meer, H. van der @ 2011-11-26 11:29 UTC (permalink / raw)
  To: ConTeXt NTG


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

Something seems amiss in the code below. The idea is having in general figures with numbered labels, but now and then a figure without. First I thought to use [location=none] on the placement, but then the numbering is not interrupted: label-1 (label-2 invisible), label-3. That is disturbing to the reader who will think a figure is missing. The numbering and the label are suppressed by \setupcations[number=no] and reinstated with \setupcaptions[number=yes]. But this kills the space between the label and the caption. I enclose a minimal example that shows the effect. Could this be a bug?

\setuppapersize[A6][A6]
\starttext
\placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
\setupcaptions[number=no]
\placefigure{}{\externalfigure[arrows.pdf]}
\setupcaptions[number=yes]
\placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
\stoptext

Hans van der Meer





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

[-- Attachment #2: labelspace.pdf --]
[-- Type: application/pdf, Size: 8972 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] 5+ messages in thread

* Re: captions trouble
  2011-11-26 11:29 captions trouble Meer, H. van der
@ 2011-11-26 11:50 ` Jaroslav Hajtmar
  2011-11-26 12:29   ` Meer, H. van der
  2011-11-26 14:17 ` Wolfgang Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Jaroslav Hajtmar @ 2011-11-26 11:50 UTC (permalink / raw)
  To: ntg-context

Hello Hans,

My tip is use \setupcaptions[number=yes, suffix=\hskip5mm]

I do not know whether it is a clean solution, but visually it looks OK.
Probably will need to determine the exact size of  \hskip parameter.

Jaroslav



\setuppapersize[A6][A6]
\starttext
\placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
\setupcaptions[number=no]
\placefigure{}{\externalfigure[arrows.pdf]}
\setupcaptions[number=yes, suffix=\hskip5mm]
\placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
\stoptext

Dne 26.11.2011 12:29, Meer, H. van der napsal(a):
> \setuppapersize[A6][A6]
> \starttext
> \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=no]
> \placefigure{}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=yes]
> \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
> \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: captions trouble
  2011-11-26 11:50 ` Jaroslav Hajtmar
@ 2011-11-26 12:29   ` Meer, H. van der
  0 siblings, 0 replies; 5+ messages in thread
From: Meer, H. van der @ 2011-11-26 12:29 UTC (permalink / raw)
  To: <hajtmar@gyza.cz>, mailing list for ConTeXt users

My mistake. I remembered [number=no/yes] but it turns out there is also [number=none]. Which does the trick. And the [distance=(dimension)] sets the distande between label and caption.

Hans van der Meer

On 26 nov. 2011, at 12:50, Jaroslav Hajtmar wrote:

> Hello Hans,
> 
> My tip is use \setupcaptions[number=yes, suffix=\hskip5mm]
> 
> I do not know whether it is a clean solution, but visually it looks OK.
> Probably will need to determine the exact size of  \hskip parameter.
> 
> Jaroslav
> 
> \setuppapersize[A6][A6]
> \starttext
> \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=no]
> \placefigure{}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=yes, suffix=\hskip5mm]
> \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
> \stoptext
> 
> Dne 26.11.2011 12:29, Meer, H. van der napsal(a):
>> \setuppapersize[A6][A6]
>> \starttext
>> \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
>> \setupcaptions[number=no]
>> \placefigure{}{\externalfigure[arrows.pdf]}
>> \setupcaptions[number=yes]
>> \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
>> \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: captions trouble
  2011-11-26 11:29 captions trouble Meer, H. van der
  2011-11-26 11:50 ` Jaroslav Hajtmar
@ 2011-11-26 14:17 ` Wolfgang Schuster
  2011-11-26 16:09   ` Wolfgang Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-11-26 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 26.11.2011 um 12:29 schrieb Meer, H. van der:

> Something seems amiss in the code below. The idea is having in general figures with numbered labels, but now and then a figure without. First I thought to use [location=none] on the placement, but then the numbering is not interrupted: label-1 (label-2 invisible), label-3. That is disturbing to the reader who will think a figure is missing. The numbering and the label are suppressed by \setupcations[number=no] and reinstated with \setupcaptions[number=yes]. But this kills the space between the label and the caption. I enclose a minimal example that shows the effect. Could this be a bug?
> 
> \setuppapersize[A6][A6]
> \starttext
> \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=no]
> \placefigure{}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=yes]
> \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
> \stoptext

There is no need for \setupcaptions because you can say \placefigure[none]{…}{…} and \placefigure[nonumber]{…}{…} but the missing space after the label is wrong.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1643 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] 5+ messages in thread

* Re: captions trouble
  2011-11-26 14:17 ` Wolfgang Schuster
@ 2011-11-26 16:09   ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2011-11-26 16:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans van der Meer


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


Am 26.11.2011 um 15:17 schrieb Wolfgang Schuster:

> 
> Am 26.11.2011 um 12:29 schrieb Meer, H. van der:
> 
>> Something seems amiss in the code below. The idea is having in general figures with numbered labels, but now and then a figure without. First I thought to use [location=none] on the placement, but then the numbering is not interrupted: label-1 (label-2 invisible), label-3. That is disturbing to the reader who will think a figure is missing. The numbering and the label are suppressed by \setupcations[number=no] and reinstated with \setupcaptions[number=yes]. But this kills the space between the label and the caption. I enclose a minimal example that shows the effect. Could this be a bug?
>> 
>> \setuppapersize[A6][A6]
>> \starttext
>> \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
>> \setupcaptions[number=no]
>> \placefigure{}{\externalfigure[arrows.pdf]}
>> \setupcaptions[number=yes]
>> \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
>> \stoptext
> 
> There is no need for \setupcaptions because you can say \placefigure[none]{…}{…} and \placefigure[nonumber]{…}{…} but the missing space after the label is wrong.

I send a fix for the missing space to the dev list.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1971 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] 5+ messages in thread

end of thread, other threads:[~2011-11-26 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-26 11:29 captions trouble Meer, H. van der
2011-11-26 11:50 ` Jaroslav Hajtmar
2011-11-26 12:29   ` Meer, H. van der
2011-11-26 14:17 ` Wolfgang Schuster
2011-11-26 16:09   ` 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).