From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76371 Path: news.gmane.org!not-for-mail From: John Dyreby Newsgroups: gmane.comp.tex.context Subject: Re: Align caption text separately from figure label Date: Thu, 24 May 2012 06:44:08 -0500 Message-ID: <4C60EF56-68AB-4C25-BD6C-AE6850AD6FB6@wisc.edu> References: <20120513130948.7050953e@Zewz> 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 1337859866 27410 80.91.229.3 (24 May 2012 11:44:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 May 2012 11:44:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 24 13:44:25 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 1SXWSq-00024q-0q for gctc-ntg-context-518@m.gmane.org; Thu, 24 May 2012 13:44:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C7EE101E1; Thu, 24 May 2012 13:44:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Upl84N1FRsW4; Thu, 24 May 2012 13:44:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C0F2101EF; Thu, 24 May 2012 13:44:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20A4A101E5 for ; Thu, 24 May 2012 13:44:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6JQ6rfH5tiaN for ; Thu, 24 May 2012 13:44:11 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 58AFA101DF for ; Thu, 24 May 2012 13:44:11 +0200 (CEST) Original-Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4OBiArq004232 for ; Thu, 24 May 2012 13:44:10 +0200 Original-Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0M4I00000Z9LKJ00@smtpauth2.wiscmail.wisc.edu> for ntg-context@ntg.nl; Thu, 24 May 2012 06:44:09 -0500 (CDT) Original-Received: from [10.0.1.164] (71-82-241-23.dhcp.stpt.wi.charter.com [71.82.241.23]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0M4I00I4QZ9K1D10@smtpauth2.wiscmail.wisc.edu> for ntg-context@ntg.nl; Thu, 24 May 2012 06:44:08 -0500 (CDT) In-reply-to: <20120513130948.7050953e@Zewz> X-Mailer: Apple Mail (2.1278) X-Spam-PmxInfo: Server=avs-15, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.24.113318, SenderIP=10.0.1.164 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=144.92.197.211; country=US; region=WI; city=Madison; postalcode=53706; latitude=43.0761; longitude=-89.4104; metrocode=669; areacode=608; http://maps.google.com/maps?q=43.0761,-89.4104&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHdLIaqT - 69ab162e4960 - 20120524 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76371 Archived-At: Marco - thanks for your help! I found an alternative way to do it that centers the whole caption, including the figure label: \starttext % Centers the caption text, label is offset (suggested by Marco): \setupcaptions [headstyle={\hskip-5em\bold},width=4in] \startplacefigure [title={This is a very, very, very, very, very, very, very, very, very, very, very long caption.}] \externalfigure [dummy] \stopplacefigure % Centers the entire caption, including the label: \setupcaptions [headstyle=bold,style={\hangindent=6em},distance=2em,width=4in] \startplacefigure [title={This is a very, very, very, very, very, very, very, very, very, very, very long caption.}] \externalfigure [dummy] \stopplacefigure \stoptext For both methods the spacing is hardcoded; for my application I ended up creating a short macro that checked the length of the figure label and adjusted things accordingly so that the the spacing for Figure 10+ worked the same as for Figures 1-9. John On May 13, 2012, at 6:09 AM, Marco wrote: > On 2012-05-11 John Dyreby wrote: > >> Or if this formatting works... >> >> How it currently looks: >> Figure 1 This is a caption that extends >> to multiple lines. >> >> What I'm trying to get: >> Figure 1 This is also a caption that >> extends to multiple lines. > > This is a hack, but seems to work: > > \setupcaptions [headstyle={\hskip-5em\bold}] > \starttext > \startplacefigure [title={\input knuth\par}] > \externalfigure [dummy] > \stopplacefigure > \stoptext > > Marco > > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________