From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74384 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: How to make Figure captions justify if long? Date: Thu, 09 Feb 2012 13:06:13 +0100 Message-ID: <87y5scnrd6.fsf@micropit.couberia.bzh> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328789212 6469 80.91.229.3 (9 Feb 2012 12:06:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2012 12:06:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 09 13:06:52 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RvSly-0002CT-95 for gctc-ntg-context-518@m.gmane.org; Thu, 09 Feb 2012 13:06:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB0E8CB253; Thu, 9 Feb 2012 13:06:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L6X3UUUCXqPK; Thu, 9 Feb 2012 13:06:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6EC8CB22A; Thu, 9 Feb 2012 13:06:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4697CB22A for ; Thu, 9 Feb 2012 13:06:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mW8gnDb7BBh4 for ; Thu, 9 Feb 2012 13:06:24 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 11629CB227 for ; Thu, 9 Feb 2012 13:06:23 +0100 (CET) Original-Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q19C6IdZ005795 for ; Thu, 9 Feb 2012 13:06:23 +0100 Original-Received: from micropit.couberia.bzh ([2.2.194.17]) by mwinf5d45 with ME id Xo6J1i00C0NzHYq03o6JAb; Thu, 09 Feb 2012 13:06:18 +0100 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id 4C0D15006B0; Thu, 9 Feb 2012 13:06:13 +0100 (CET) In-Reply-To: (Wagner Macedo's message of "Wed, 8 Feb 2012 20:50:26 -0300") User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) X-Bayes-Prob: 0.1175 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.132; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dGvM6jMv - 2a63b0939ef1 - 20120209 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74384 Archived-At: On Thu, Feb 09 2012, Wagner Macedo wrote: > My layout style require that table or figure captions stay centered only if > short. If long, it needs that the caption be justified (like normal text, but > less width). --8<---------------cut here---------------start------------->8--- \defineframed[FullWidth][offset=overlay, width=\textwidth, frame=off, align=middle] \starttext \placefigure[here]{\input tufte\relax} {\FullWidth{\externalfigure[any][width=3cm]}} \placefigure[here]{Short} {\FullWidth{\externalfigure[any][width=3cm]}} \stoptext --8<---------------cut here---------------end--------------->8--- Is this a solution? -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________