From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69224 Path: news.gmane.org!not-for-mail From: Christoph Redecker Newsgroups: gmane.comp.tex.context Subject: Re: Placing figures flush right and captions in the margin Date: Thu, 16 Jun 2011 11:28:43 +0200 Message-ID: <4DF9CCCB.5060606@tu-harburg.de> References: <4DF61B57.6050708@tu-harburg.de> <4DF7784B.3010603@tu-harburg.de> <4DF86AAD.1020204@wxs.nl> <4E89B9D4-BEB1-43FE-9A94-9A2EE725443C@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1308216537 32200 80.91.229.12 (16 Jun 2011 09:28:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2011 09:28:57 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 16 11:28:52 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QX8se-0001zu-1v for gctc-ntg-context-518@m.gmane.org; Thu, 16 Jun 2011 11:28:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 07A57CADD3; Thu, 16 Jun 2011 11:28:51 +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 dubqwsz-IiMC; Thu, 16 Jun 2011 11:28:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B640CADCB; Thu, 16 Jun 2011 11:28:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27DF6CADCB for ; Thu, 16 Jun 2011 11:28:46 +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 OIQ8DGTHqjjp for ; Thu, 16 Jun 2011 11:28:44 +0200 (CEST) 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 1DDFCCADC6 for ; Thu, 16 Jun 2011 11:28:44 +0200 (CEST) Original-Received: from smtp3.rz.tu-harburg.de (smtp3.rz.tu-harburg.de [134.28.202.138]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5G9SgSB010471 for ; Thu, 16 Jun 2011 11:28:43 +0200 Original-Received: from mail.tu-harburg.de (mail.tu-harburg.de [134.28.202.179]) by smtp3.rz.tu-harburg.de (8.13.8/8.13.8) with ESMTP id p5G9SfmM014073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 16 Jun 2011 11:28:42 +0200 Original-Received: from [192.168.2.146] (f054113110.adsl.alicedsl.de [78.54.113.110]) (user=ttcr mech=PLAIN bits=0) by mail.tu-harburg.de (8.13.8/8.13.8) with ESMTP id p5G9Sfrv024967 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 16 Jun 2011 11:28:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tu-harburg.de; s=x2011-24; t=1308216521; bh=umAEtCqRk5B8eM00yyOk3if4Tx1xGpkFkFNVaABjayI=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=BtyBhjA8KXjEJYjgjNKeCO4dOAp6YuDi7AOz+XhPXbuTBA7arJCRZ4MIjhHwhxyzZ fZdIk0ynD4Jfl4XKHpfZvJyOs0zZ5NUlNcqmIeca9SioriQZCA44DMIRcBaPUYqW7x alVqltwt7aL07IITVucRyIZqbpB3+YAR1garp0SU= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 In-Reply-To: <4E89B9D4-BEB1-43FE-9A94-9A2EE725443C@googlemail.com> X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Scanned-By: TUHH Rechenzentrum content checker on 134.28.202.138 X-Scanned-By: TUHH Rechenzentrum content checker on 134.28.202.179 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.28.202.138; country=DE; region=04; city=Hamburg; latitude=53.5500; longitude=10.0000; http://maps.google.com/maps?q=53.5500,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEUxsG7F - 91013bf64381 - 20110616 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:69224 Archived-At: On 15.06.2011 15:15, Wolfgang Schuster wrote: > > Am 15.06.2011 um 10:17 schrieb Hans Hagen: > >> Did you check the details.pdf manualal? > > This won=92t help because it=92s ConTeXt=92s fault. > > This is a quick fix for strc-flt.mkiv but the leftmargin etc. keys are > then ignored when the caption is placed in the margin. > > %\def\locatefloatbox > % {\alignstrutmode\zerocount > % \shiftalignedline > % {\floatparameter\c!leftmargin }{\floatparameter\c!rightmargin}% > % {\floatparameter\c!innermargin}{\floatparameter\c!outermargin}% > % \alignedline{\floatparameter\c!location}\v!middle} > > \def\locatefloatbox > {\alignstrutmode\zerocount > \doifnotcommon{\floatcaptionparameter\c!location}{\v!outermargin,\v!i= nnermargin,\v!leftmargin,\v!rightmargin} > {\shiftalignedline > {\floatparameter\c!leftmargin }{\floatparameter\c!rightmargin}% > {\floatparameter\c!innermargin}{\floatparameter\c!outermargin}}% > \alignedline{\floatparameter\c!location}\v!middle} Your solution doesn't seems to work, I still don't see a caption = anywhere when using location=3Drightmargin. When I inserted your fix I = stumbled upon the fact that there is \def\locatebcaptionbox below = \def\locatefloatbox. You provided a fix for \locatefloatbox, but = shouldn't it be for \locatecaptionbox? I have no clues about the = internals of ConTeXt, but I tried the following: \def\locatecaptionbox {\alignstrutmode\zerocount = \doifnotcommon{\floatcaptionparameter\c!location}{\v!outermargin,\v!innerma= rgin,\v!leftmargin,\v!rightmargin} {\shiftalignedline {\floatcaptionparameter\c!leftmargin = }{\floatcaptionparameter\c!rightmargin}% = {\floatcaptionparameter\c!innermargin}{\floatcaptionparameter\c!outermargin= }}% \alignedline{\floatparameter\c!location}\v!middle} Note that I just translated your fix to \locatecaptionbox. At least it = didn't throw an error! > > The reason why the caption disappears is that you put it > in \everyrightofalignedline and the content is replaced with > the rightmargin skip in the \shiftalignedline command. > > Wolfgang My attempt at understanding that explanation: The caption is placed to = the right of aligned line (because it is supposed to got into the = margin?), and for all things that are placed that way, = \everyrightofalignedline is called. And that macro replaces the caption = with a skip, but should instead skip across the margin skip and then = place the caption? Regards Christoph ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________