From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86228 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Centering the last line in combination subcaptions Date: Sat, 8 Feb 2014 16:27:28 +0100 Message-ID: <5B51DA72-CD49-4520-A8BB-B7BC0CF938FD@gmail.com> References: <008201cf0356$ccebf400$66c3dc00$@tosovsky@email.cz> <016201cf244b$29d9f210$7d8dd630$@tosovsky@email.cz> <52f56744.c8310f0a.7ef8.ffffb680SMTPIN_ADDED_BROKEN@mx.google.com> <52f613a9.09240f0a.5c33.ffff9f93SMTPIN_ADDED_BROKEN@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391873264 14844 80.91.229.3 (8 Feb 2014 15:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 15:27:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 08 16:27:51 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 1WC9os-0005nN-UA for gctc-ntg-context-518@m.gmane.org; Sat, 08 Feb 2014 16:27:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15C23101F6; Sat, 8 Feb 2014 16:27:50 +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 k+ZZvCjGV0bW; Sat, 8 Feb 2014 16:27:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 42E8B101F2; Sat, 8 Feb 2014 16:27:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C77B7101F2 for ; Sat, 8 Feb 2014 16:27:46 +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 71mrZ8tHZgYN for ; Sat, 8 Feb 2014 16:27:45 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4E9E2101E1 for ; Sat, 8 Feb 2014 16:27:35 +0100 (CET) Original-Received: from mail-bk0-x235.google.com (mail-bk0-x235.google.com [IPv6:2a00:1450:4008:c01::235]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s18Ffc66021467 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 8 Feb 2014 16:41:38 +0100 Original-Received: by mail-bk0-f53.google.com with SMTP id my13so1371606bkb.40 for ; Sat, 08 Feb 2014 07:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=RikxeahOpwPlETpeh5sSNZ1f4lgvtJZLBm9XEPHv108=; b=f2bO8ZeM4ooJSHHoDWNPOxCinSbT9pEw3gu4ja+L55rCuSIr9oktnf2n2SUnkhy+Fj jXQ4Yy+BsA3sORsz8teHlAWYX14us05XyJCyYEEPvgR309MVsjHcmzUV3hAIROgvbWbu IPH9AjRcnOZ38iof6pvoCp6B3VnvmG3tn7XnbDzUOI98dAsePxq4K/3CFOZKovFcKjDd lSkuXq9gotjCX/5mMKV9TOx0lAv1LRdkbPI/gTMJL/x6mffHPr7oNe2CNSdKe7JbJGG6 tDhi6BYZ9mMFtIm3J4SQH+i7EogHpITg/rJzS4OAZO/NXaJv5WtX22ESdrbIxCGkJl+I yO2Q== X-Received: by 10.204.54.197 with SMTP id r5mr11524218bkg.27.1391873254636; Sat, 08 Feb 2014 07:27:34 -0800 (PST) Original-Received: from keima.localdomain (x2f21ec3.dyn.telefonica.de. [2.242.30.195]) by mx.google.com with ESMTPSA id s9sm7073180bkg.15.2014.02.08.07.27.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 07:27:31 -0800 (PST) In-Reply-To: <52f613a9.09240f0a.5c33.ffff9f93SMTPIN_ADDED_BROKEN@mx.google.com> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LnPFCnO - 21582801de71 - 20140208 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:86228 Archived-At: Am 08.02.2014 um 12:22 schrieb Jan Tosovsky : > 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. When you want a fixed width for \CombinationBox you have to change the definition to \defineframed[CombinationBox][frame=off,offset=none,width=11cm] Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________