* Homogeneous captions for figures
@ 2006-09-09 1:40 Renaud AUBIN
2006-09-09 3:25 ` Renaud AUBIN
2006-09-12 17:57 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: Renaud AUBIN @ 2006-09-09 1:40 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1836 bytes --]
Hi all,
I wanted to obtain to obtain an homogeneous formatting for my captions
whenever I use \placefigure or \placefloatcaption within combination, so
I've tried \setupcaption and \setupcaptions but
\starttext
\setupcaptions[align=left] % or \setupcaption[figure][align=left]
\startuseMPgraphic{dummy}
numeric u; u := 5cm;
draw origin--(1u,1u);
draw (0,1u)--(1u,0);
\stopuseMPgraphic
\placefigure[here]{A \dorecurse{20}{very\ } long
caption}{\useMPgraphic{dummy}}
\startbuffer
\startcombination[1*2]
{\useMPgraphic{dummy}}{\placefloatcaption[figure]{A
\dorecurse{20}{very\ } long caption}}
{\useMPgraphic{dummy}}{\placefloatcaption[figure]{A
\dorecurse{20}{very\ } long caption}}
\stopcombination
\stopbuffer
\placefigure[page]{none}{\getbuffer}
\stoptext
leads to
1 output file written: caption-mpgraph.1
Transcript written on caption-mpgraph.log.
[MP to PDF] (./caption-mpgraph.1)
(/home/renaud/texmf/tex/context/base/pdfr-ec.tex)
! Argument of \floatcaptionparameter has an extra }.
<inserted text>
\par
<to be read again>
}
\p!doifinsetelse ...onefalse \edef \!!stringa {#3}
\ifx \!!stringa \empty
\el...
<argument> ...le \floatcaptionparameter }\c!align
{\let
\captionovershoot \!...
\firstofoneargument #1->#1
\dopreparestackcaptionaut ...shoot \!!zeropoint }}
\edef \captionhsize
{\the ...
...
l.11 ...ery\ } long caption}{\useMPgraphic{dummy}}
Bug ? BTW, I need a quick solution for my PhD dissertation... so any
suggestions are welcome. I've also tried \setupcombinations with various
align values but failed to find a good solution... I use ConTeXt ver:
2006.09.07 17:50 MK II fmt: 2006.9.9
Cheers,
Renaud
[-- Attachment #1.2: Type: text/html, Size: 3325 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Homogeneous captions for figures
2006-09-09 1:40 Homogeneous captions for figures Renaud AUBIN
@ 2006-09-09 3:25 ` Renaud AUBIN
2006-09-12 17:57 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Renaud AUBIN @ 2006-09-09 3:25 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 914 bytes --]
Renaud AUBIN a écrit :
> Hi all,
>
> I wanted to obtain to obtain an homogeneous formatting for my captions
> whenever I use \placefigure or \placefloatcaption within combination,
> so I've tried \setupcaption and \setupcaptions but
> ...
> Bug ? BTW, I need a quick solution for my PhD dissertation... so any
> suggestions are welcome. I've also tried \setupcombinations with
> various align values but failed to find a good solution... I use
> ConTeXt ver: 2006.09.07 17:50 MK II fmt: 2006.9.9
I've just digged out the Peter Münster's thread "[NTG-context]
table-caption: centred or not??"... I quote Peter:
"My goal: one-line captions centred, but multi-line captions justified normally."
That's exactly what I want for all my captions (even when I use combination + placefloatcaption)... Is there a solution to this problem ? (I didn't see this "bug" (?) in the collector)
Renaud
[-- Attachment #1.2: Type: text/html, Size: 1451 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Homogeneous captions for figures
2006-09-09 1:40 Homogeneous captions for figures Renaud AUBIN
2006-09-09 3:25 ` Renaud AUBIN
@ 2006-09-12 17:57 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2006-09-12 17:57 UTC (permalink / raw)
Renaud AUBIN wrote:
> Hi all,
>
> I wanted to obtain to obtain an homogeneous formatting for my captions
> whenever I use \placefigure or \placefloatcaption within combination,
> so I've tried \setupcaption and \setupcaptions but
>
>
> }
> \p!doifinsetelse ...onefalse \edef \!!stringa {#3}
> \ifx \!!stringa
> \empty \el...
> <argument> ...le \floatcaptionparameter }\c!align
> {\let
> \captionovershoot \!...
ok, fixed, should have been
{\floatcaptionparameter \c!align}
(occasionally i'm adapting modules to this parameter stuff which saves
space)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-12 17:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-09 1:40 Homogeneous captions for figures Renaud AUBIN
2006-09-09 3:25 ` Renaud AUBIN
2006-09-12 17:57 ` Hans Hagen
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).