From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86223 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 07:35:14 +0100 Message-ID: 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 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391841330 28175 80.91.229.3 (8 Feb 2014 06:35:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 06:35:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 08 07:35:39 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 1WC1Vq-000897-SX for gctc-ntg-context-518@m.gmane.org; Sat, 08 Feb 2014 07:35:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 05607101F6; Sat, 8 Feb 2014 07:35:38 +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 KrhkEEuwf0oz; Sat, 8 Feb 2014 07:35:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B07D9101EB; Sat, 8 Feb 2014 07:35:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20A98101EB for ; Sat, 8 Feb 2014 07:35: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 3Mh+RKixWyAG for ; Sat, 8 Feb 2014 07:35:32 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 5DEF8101E1 for ; Sat, 8 Feb 2014 07:35:22 +0100 (CET) Original-Received: from mail-bk0-x22c.google.com (mail-bk0-x22c.google.com [IPv6:2a00:1450:4008:c01::22c]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s186ZKJ8029907 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 8 Feb 2014 07:35:20 +0100 Original-Received: by mail-bk0-f44.google.com with SMTP id mz12so1304477bkb.31 for ; Fri, 07 Feb 2014 22:35:21 -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=haoRv2t3tqulLCShcoqOslmnvUyaFdeBiNvoS1pi+Xo=; b=gybz1poPEviFdYIMLp7FathCho5Kkdj/JygRG893nrZwZZgEMUMBq9iVEsjQffxiOU 5xxQuueWA7B9KoXCSvHEJpKPFJn/h+eEh1hXjpcKcolvfJKzS4NDQV6MMRnDo0J3g2iy o7qu3TPYL5O8kgtPclxPH1mPNIWG324sdqJ/HVozctL24pCp3FNfvf6d+Cl2ylj76Udg QSztdMXm96jeKAzuyJbim9J1KQ8zHw9Da4bauY7NKM7tJkuhIxL+a89OC/cvgf40sOTB RKD9utqw4ReCeBfLgfRCUYTbSrUWrRnXvfEZ0agRJlcQsv56qTq0pIx/bWiAjXxQn6Ch m9vw== X-Received: by 10.204.197.203 with SMTP id el11mr10524668bkb.24.1391841321358; Fri, 07 Feb 2014 22:35:21 -0800 (PST) Original-Received: from keima.localdomain (x2f21ec3.dyn.telefonica.de. [2.242.30.195]) by mx.google.com with ESMTPSA id dg4sm6042744bkc.10.2014.02.07.22.35.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 22:35:17 -0800 (PST) In-Reply-To: <52f56744.c8310f0a.7ef8.ffffb680SMTPIN_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::22c; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LnGzkN5 - 1bb0ace7fe5f - 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:86223 Archived-At: Am 08.02.2014 um 00:07 schrieb Jan Tosovsky : > This is the improved example. The only remaining issue is an one empty line > between the image and the label when \startnarrower command is used. > > Please compare two pages w/o this option set: > > > %\definefontfamily[palatino][rm][Palatino Linotype][features={default, > quality}] > %\setupbodyfont[palatino] > \setupnarrower[middle=-2.8cm] > > \starttext > test > \startplacefigure[location=page, number=no, title={}] > \setupcombinations[align={last, hz, hanging}] > {\startcombination[1*2] > {\externalfigure[cow]} {\startnarrower {\itx \input{tufte}} > \stopnarrower} > {\externalfigure[cow]} {\startnarrower {\itx \input{lorem}} > \stopnarrower} > \stopcombination} > \stopplacefigure > > \startplacefigure[location=page, number=no, title={}] > \setupcombinations[align={last, hz, hanging}] > {\startcombination[1*2] > {\externalfigure[cow]} {\itx \input{ward}} > {\externalfigure[cow]} {\itx \input{ward}} > \stopcombination} > \stopplacefigure > > \stoptext > > 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 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 ___________________________________________________________________________________