From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86226 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Re: Centering the last line in combination subcaptions Date: Sat, 8 Feb 2014 12:22:55 +0100 Message-ID: <42032.8601998792$1391858624@news.gmane.org> References: <008201cf0356$ccebf400$66c3dc00$@tosovsky@email.cz> <016201cf244b$29d9f210$7d8dd630$@tosovsky@email.cz> <52f56744.c8310f0a.7ef8.ffffb680SMTPIN_ADDED_BROKEN@mx.google.com> 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: ger.gmane.org 1391858611 28236 80.91.229.3 (8 Feb 2014 11:23:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 11:23:31 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 08 12:23:41 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC60a-0007i9-69 for gctc-ntg-context-518@m.gmane.org; Sat, 08 Feb 2014 12:23:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 884E3101FA; Sat, 8 Feb 2014 12:23:22 +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 4FFct3cn3V4D; Sat, 8 Feb 2014 12:23:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 66A04101F8; Sat, 8 Feb 2014 12:23:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 331FF101F8 for ; Sat, 8 Feb 2014 12:23:08 +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 nQnete4KJl4U for ; Sat, 8 Feb 2014 12:23:06 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 7ACA8101E1 for ; Sat, 8 Feb 2014 12:22:56 +0100 (CET) Original-Received: from fep20.mx.upcmail.net (fep20.mx.upcmail.net [62.179.121.40]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s18BMtcL029710 for ; Sat, 8 Feb 2014 12:22:55 +0100 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep20-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20140208112255.BZGE10895.viefep20-int.chello.at@edge03.upcmail.net> for ; Sat, 8 Feb 2014 12:22:55 +0100 Original-Received: from emk ([78.102.140.160]) by edge03.upcmail.net with edge id PnNu1n00L3Tq9wW03nNuVB; Sat, 08 Feb 2014 12:22:55 +0100 X-SourceIP: 78.102.140.160 In-Reply-To: X-Mailer: Microsoft Office Outlook 12.0 Content-Language: cs Thread-Index: Ac8kmN5JBEMJkeIsSWKm+GY8CVtihwAI0Twg X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=62.179.121.40; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LnLmT0Q - fcd45a055851 - 20140208 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86226 Archived-At: On 2014-02-08 Wolfgang Schuster wrote: > > > I haven't find any better way to extend the caption width than that > > negative value for narrowed text. It works, but that empty space above > > looks weird > > You have to force a certain width for your images because the width > of the text space depends on the width of the images. You can use > \framed (instead of loffset/roffset you can also set a fixed width) or > \simplealignedbox to set the width of the images. > > \setupexternalfigures[location=default] > > \defineframed[CombinationBox][frame=off,offset=none,loffset=3cm,roffset > =3cm] > > \starttext > > \startplacefigure[location={force,none}] > \startcombination[nx=1,ny=2,align={last,hz,hanging},style=\itx] > % first image > \startcontent > > %\simplealignedbox{11cm}{middle}{\externalfigure[cow][width=5cm]} > \CombinationBox{\externalfigure[cow][width=5cm]} > \stopcontent > \startcaption > \input{ward} > \stopcaption > % second image > \startcontent > > %\simplealignedbox{11cm}{middle}{\externalfigure[cow][width=5cm]} > \CombinationBox{\externalfigure[cow][width=5cm]} > \stopcontent > \startcaption > \input{ward} > \stopcaption > \stopcombination > \stopplacefigure > > \stoptext Thanks a lot, it is much simpler! I also like that \start \stop structure which makes the code more clear. Just for future reference: CombinationBox extends the current image width with the fixed value. When different image widths are used in your document, the caption width varies as well. To keep the consistency within the document I've chosen that simplealignedbox instead. Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________