Homogeneous captions for figures
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
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
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Renaud AUBIN