From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80352 Path: news.gmane.org!not-for-mail From: Devendra Ghate Newsgroups: gmane.comp.tex.context Subject: Figure captions in margin Date: Sun, 20 Jan 2013 20:44:35 +0530 Message-ID: <50FC09DB.40207@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1181001652==" X-Trace: ger.gmane.org 1358694896 12151 80.91.229.3 (20 Jan 2013 15:14:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 15:14:56 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 16:15:15 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 1Twwc1-0006y7-0o for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 16:15:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4505101F2; Sun, 20 Jan 2013 16:14:51 +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 oTviOroGuaew; Sun, 20 Jan 2013 16:14:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D8E66101E5; Sun, 20 Jan 2013 16:14:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E6E7101E5 for ; Sun, 20 Jan 2013 16:14:48 +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 fqHh0FtkoHPd for ; Sun, 20 Jan 2013 16:14:47 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id A7C79101E2 for ; Sun, 20 Jan 2013 16:14:47 +0100 (CET) Original-Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KFEjR0015317 for ; Sun, 20 Jan 2013 16:14:46 +0100 Original-Received: by mail-pa0-f45.google.com with SMTP id bg2so2926395pad.18 for ; Sun, 20 Jan 2013 07:14:45 -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 :content-type; bh=6+ikDRsIaOJBDC7MtFK9TCP+4XniprW/tIwu5hffCOQ=; b=JU2dZyuN45uiZFlK2WU/NEbVpKTfSUmnELQx2lPJK6tHYxoTSFICtaRsFczggXjPFh X3FWEZzeLx7YLjDADNJnBTgkdt6mt4Ijqvi6hUXDUeK6Phnj9DRVS3y7ldKo2xwv3Czv iZmlDzBiKhAXiBJq+yq9GXtCZqLhUaBS/sxScT5Io39/ed9EW6H6o9kc+x7+yZAACMtV Lq30SNlotR5T9BfoKacC9RvhSYnoWzUVT35pKSSjYC1wOK+BSWF93US5ape3uA+he5UN y3JCuZcDVsC6PMjsEJh4YouNBM0gsxBIywDe3fGBJ4kbbrJGChKHCeyRtFtAwNx8rusx G8/A== X-Received: by 10.68.220.6 with SMTP id ps6mr22555042pbc.80.1358694885349; Sun, 20 Jan 2013 07:14:45 -0800 (PST) Original-Received: from [61.11.102.153] ([61.11.102.153]) by mx.google.com with ESMTPS id jo6sm6900200pbb.5.2013.01.20.07.14.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jan 2013 07:14:44 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.45; 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: 0TIOfeKDB - 94286942fb16 - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80352 Archived-At: This is a multi-part message in MIME format. --===============1181001652== Content-Type: multipart/alternative; boundary="------------090706060705070209010903" This is a multi-part message in MIME format. --------------090706060705070209010903 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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*. I have tried spacebefore=\vskip but it doesn't seem to do anything. Another option was to use default caption location (below the figure) and add \hspace before figure placement. None of these work as I am not able to make spacebefore do anything. *MWE* \setuplayout[width=5cm, height=13cm,rightmargin=5cm] \setupexternalfigures[option=empty] \setupfloat[figure][location=inner] % \setupcaption [figure] [width=5cm, location={rightmargin,low}, spacebefore=big] %\setupcaption %[figure] %[width=5cm] \starttext \showframe \placefigure{A small but important caption.}{\externalfigure[cow][width=10cm]} \stoptext --------------090706060705070209010903 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. I have tried spacebefore=\vskip but it doesn't seem to do anything. Another option was to use default caption location (below the figure) and add \hspace before figure placement.
None of these work as I am not able to make spacebefore do anything.

MWE

\setuplayout[width=5cm, height=13cm,rightmargin=5cm]

\setupexternalfigures[option=empty]
\setupfloat[figure][location=inner]
%
\setupcaption
  [figure]
   [width=5cm,
    location={rightmargin,low},
    spacebefore=big]

%\setupcaption
  %[figure]
  %[width=5cm]

\starttext
  \showframe
  \placefigure{A small but important
  caption.}{\externalfigure[cow][width=10cm]}
\stoptext

--------------090706060705070209010903-- --===============1181001652== 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 ___________________________________________________________________________________ --===============1181001652==--