From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30717 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Homogeneous captions for figures Date: Sat, 09 Sep 2006 03:40:31 +0200 Message-ID: <45021B8F.7060103@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0584364411==" X-Trace: sea.gmane.org 1157766365 12022 80.91.229.2 (9 Sep 2006 01:46:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Sep 2006 01:46:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 09 03:46:03 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLruw-0002fq-6x for gctc-ntg-context-518@m.gmane.org; Sat, 09 Sep 2006 03:45:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 24D5C1FE47; Sat, 9 Sep 2006 03:45:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21999-04; Sat, 9 Sep 2006 03:45:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D685F1FE13; Sat, 9 Sep 2006 03:45:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 124851FE13 for ; Sat, 9 Sep 2006 03:45:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21771-08-2 for ; Sat, 9 Sep 2006 03:45:47 +0200 (CEST) Original-Received: from 42.mail-out.ovh.net (42.mail-out.ovh.net [213.251.189.42]) by ronja.ntg.nl (Postfix) with SMTP id 10C811FE05 for ; Sat, 9 Sep 2006 03:45:46 +0200 (CEST) Original-Received: (qmail 6146 invoked by uid 503); 9 Sep 2006 01:40:27 -0000 Original-Received: from b6.ovh.net (HELO mail187.ha.ovh.net) (213.186.33.56) by 42.mail-out.ovh.net with SMTP; 9 Sep 2006 01:40:27 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 9 Sep 2006 01:40:38 -0000 Original-Received: from d80-170-164-149.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@80.170.164.149) by ns0.ovh.net with SMTP; 9 Sep 2006 01:40:37 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: ConTeXt Mailing List X-Ovh-Remote: 80.170.164.149 (d80-170-164-149.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/1.0/5.0/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30717 Archived-At: This is a multi-part message in MIME format. --===============0584364411== Content-Type: multipart/alternative; boundary="------------040206080604080605040308" This is a multi-part message in MIME format. --------------040206080604080605040308 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 }. \par } \p!doifinsetelse ...onefalse \edef \!!stringa {#3} \ifx \!!stringa \empty \el... ...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 --------------040206080604080605040308 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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

--------------040206080604080605040308-- --===============0584364411== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0584364411==--