From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84171 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: captions in float combinations Date: Sun, 8 Sep 2013 15:56:25 -0400 (EDT) Message-ID: References: <96971F8A-CC8B-4E23-9210-9C206DDADB33@gmail.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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378670193 11589 80.91.229.3 (8 Sep 2013 19:56:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Sep 2013 19:56:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 08 21:56:37 2013 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 1VIl65-0003Fv-Qp for gctc-ntg-context-518@m.gmane.org; Sun, 08 Sep 2013 21:56:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0445A10204; Sun, 8 Sep 2013 21:54:58 +0200 (CEST) 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 R4gDVbHx6WJR; Sun, 8 Sep 2013 21:54:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 12A45101FC; Sun, 8 Sep 2013 21:54:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0199A101FC for ; Sun, 8 Sep 2013 21:54:54 +0200 (CEST) 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 rKNLkRZ7--qo for ; Sun, 8 Sep 2013 21:54:52 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id B2005101E0 for ; Sun, 8 Sep 2013 21:54:52 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r88JuSVZ029194 for ; Sun, 8 Sep 2013 21:56:30 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 522CD66A.A9E5B.17969 ; Authuser adityam; 8 Sep 2013 15:56:26 EDT In-Reply-To: <96971F8A-CC8B-4E23-9210-9C206DDADB33@gmail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VKmHUsMi - 10cbe554aa6c - 20130908 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:84171 Archived-At: On Sun, 8 Sep 2013, Robert Blackstone wrote: > > On 8 sep. 2013, at 17:01, Marco Patzer >> >> On 2013?09?08 Robert Blackstone wrote: >> >>> In my project I have all figure captions located above the figure. >>> How can I move also these subcaptions to the top, to a position >>> just below the main caption? >> >> As far as I can see, this is not supported by the combination >> mechanism because the captions in combinations are not implemented >> using the float captions mechanism. >> >> What you can do instead, is using a float caption and a float >> combination, which will respect the global caption setups. >> >> \useMPlibrary [dum] >> >> \definefloat >> [combinationfloat] >> [combinationfloats] >> [figure] >> >> \setupcaption >> [combinationfloat] >> [number=no] >> >> \setupcaptions >> %% [location=bottom] >> [location=top] >> >> \starttext >> \startplacefigure [title=Foobar] >> \startfloatcombination [2*2] >> \startplacecombinationfloat [title=alpha] \externalfigure \stopplacecombinationfloat >> \startplacecombinationfloat [title=beta] \externalfigure \stopplacecombinationfloat >> \startplacecombinationfloat [title=gamma] \externalfigure \stopplacecombinationfloat >> \startplacecombinationfloat [title=delta] \externalfigure \stopplacecombinationfloat >> \stopfloatcombination >> \stopplacefigure >> \stoptext >> >> Marco > > Hi Marco, > > Thanks for your solution. It took me a while to harmonize your new float with my other floats in my document setups. These are all placed on the left side of the page and that caused yor float to move almost off the page. > So I added: > > \setupfloat[combinationfloat][location=middle,spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] > > and now it works beautifully. > > There is, however, another complication which makes that unfortunately I cannot use your solution "out of the box" in all situations. > The paired figures in my particular project are often of different size, in particular of different height, (but small enough to be placed side by side). > The author wants not only the figure captions at the top, but also the figures themselves. > I did not mention this complication because, a) I had found a hack to place both figures at the top, and b) I had not expected that the solution for the problem I posted would be a new type of float instead of a new type of combination. > > So now the captions are at the top but the figures are not. (Law of Conservation of Misery) You can try playing around with the location parameter of \externalfigure. For example: \useMPlibrary [dum] \definefloat [combinationfloat] [combinationfloats] [figure] \setupcaption [combinationfloat] [number=no] \setupcaptions %% [location=bottom] [location=top] \starttext filler text \input ward \startplacefigure [title=Foobar] \startfloatcombination [4*1] \startplacecombinationfloat [title=alpha] \externalfigure[dummy][width=1cm, height=2cm, location=top] \stopplacecombinationfloat \startplacecombinationfloat [title=beta] \externalfigure[dummy][width=1cm, height=3cm, location=top] \stopplacecombinationfloat \startplacecombinationfloat [title=gamma] \externalfigure[dummy][width=1cm, height=4cm, location=top] \stopplacecombinationfloat \startplacecombinationfloat [title=delta] \externalfigure[dummy][width=1cm, height=5cm, location=top] \stopplacecombinationfloat \stopfloatcombination \stopplacefigure More text \input knuth \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________