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
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
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
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
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
participants (3)
-
Jaroslav Hajtmar
-
Meer, H. van der
-
Wolfgang Schuster