From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80368 Path: news.gmane.org!not-for-mail From: Devendra Ghate Newsgroups: gmane.comp.tex.context Subject: Re: Figure captions in margin Date: Mon, 21 Jan 2013 13:19:13 +0530 Message-ID: <50FCF2F9.1000006@gmail.com> References: <50FC09DB.40207@gmail.com> <20130120160157.GO29592@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0583221253==" X-Trace: ger.gmane.org 1358754569 20662 80.91.229.3 (21 Jan 2013 07:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 07:49:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 21 08:49:48 2013 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 1TxC8W-0000cC-Cl for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jan 2013 08:49:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04D4A101E9; Mon, 21 Jan 2013 08:49:27 +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 jiDKHUWh1OZ2; Mon, 21 Jan 2013 08:49:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 542E3101E5; Mon, 21 Jan 2013 08:49:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0F3E101E5 for ; Mon, 21 Jan 2013 08:49:23 +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 SlnX6UISpwUT for ; Mon, 21 Jan 2013 08:49:22 +0100 (CET) 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 691B7101E2 for ; Mon, 21 Jan 2013 08:49:22 +0100 (CET) Original-Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0L7nIWd007041 for ; Mon, 21 Jan 2013 08:49:19 +0100 Original-Received: by mail-pa0-f48.google.com with SMTP id fa1so3272439pad.7 for ; Sun, 20 Jan 2013 23:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type; bh=KKQK2yfcETspaxt/oUdGpNLmHKStFsL+fh2uGzUWnts=; b=csJwE0u1cMbw49jaEVSNC4f5XQk7QCaXZRTqgHFSzLasmQgWCTvlVoP8+eH73AV0uD YDsBK0OhW7VhrCH5rsqQqR9dGIAvfgjCZt4aCQBy6/xSE08erTvoeSJn+U2y5ESPTgDz IvuBsNp02wSm0kox5TQFtyq+5zSwPNm2AMUfCtiTmTb4n6F11q/G7y6wn5Fg2jj9g1Mk XYHVzVkujsE9VHOD32JxVyAwFmL4jaan8GK/tyJaPRwadhe6RhophvF/yulFx2+fUpiQ T0bEP2gkveVeBwpXuvv9+b2he+motPxpEHRgQfEdK8XeYHkF2CD9JFwVNDG3uB6JT9qj 8tlA== X-Received: by 10.68.191.5 with SMTP id gu5mr27647681pbc.145.1358754558227; Sun, 20 Jan 2013 23:49:18 -0800 (PST) Original-Received: from [61.11.102.153] ([61.11.102.153]) by mx.google.com with ESMTPS id hc4sm8221611pbc.30.2013.01.20.23.49.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jan 2013 23:49:17 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 In-Reply-To: <20130120160157.GO29592@homerow> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.48; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIOvNjvO - 92495e4c85f9 - 20130121 (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.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:80368 Archived-At: This is a multi-part message in MIME format. --===============0583221253== Content-Type: multipart/alternative; boundary="------------070602050603010503000608" This is a multi-part message in MIME format. --------------070602050603010503000608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello Marco, Your code goes well beyond what I was looking for. As I am working on a deadline right now, I am just going to use the frame trick to place the caption for wide figures. However, expect to hear from me in future regarding this code. Regards, Devendra On 01/20/2013 09:31 PM, Marco Patzer wrote: > On 2013--01--20 Devendra Ghate wrote: > >> I am using a layout with wide right margin. For floats that are >> \textwidth wide, I can place captions in the margin >> using**\setupcaption[location=rightmargin,high/low]. >> >> However, for figures that are >> (*\textwidth+\marginwidth+\margindistance*) wide, I would like to >> *place the caption in the margin below the figure*. > For a recent project I had the similar requirements. I did not find > a proper solution. I attached an example of the code I used. > However, it has several issues: > > 1) Margin floats and texts overlay and need manual adjustment. > 2) The baseline of the float description does not match the baseline > of the main text (fixed using manual trial and error). I used an > ugly hack (toffset=7.5ex) to align the description vertically. > 3) The \startplacesmartfigure is not very robust. My notes say "Do > not indent \startplacesmartfigure". I don't recall what the exact > issue was. > 4) Probably many more that I haven't discovered, yet. > > Feel free to suggest fixes for the mentioned issues. > > 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 > ___________________________________________________________________________________ --------------070602050603010503000608 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello Marco,

Your code goes well beyond what I was looking for.

As I am working on a deadline right now, I am just going to use the frame trick to place the caption for wide figures.

However, expect to hear from me in future regarding this code.

Regards,
Devendra


On 01/20/2013 09:31 PM, Marco Patzer wrote:
On 2013–01–20 Devendra Ghate wrote:

I am using a layout with wide right margin. For floats that are
\textwidth wide, I can place captions in the margin
using**\setupcaption[location=rightmargin,high/low].

However, for figures that are
(*\textwidth+\marginwidth+\margindistance*) wide, I would like to
*place the caption in the margin below the figure*.
For a recent project I had the similar requirements. I did not find
a proper solution. I attached an example of the code I used.
However, it has several issues:

1) Margin floats and texts overlay and need manual adjustment.
2) The baseline of the float description does not match the baseline
   of the main text (fixed using  manual trial and error). I used an
   ugly hack (toffset=7.5ex) to align the description vertically.
3) The \startplacesmartfigure is not very robust. My notes say “Do
   not indent \startplacesmartfigure”. I don't recall what the exact
   issue was.
4) Probably many more that I haven't discovered, yet.

Feel free to suggest fixes for the mentioned issues.

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
___________________________________________________________________________________

--------------070602050603010503000608-- --===============0583221253== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0583221253==--