From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76311 Path: news.gmane.org!not-for-mail From: Andy Thomas Newsgroups: gmane.comp.tex.context Subject: Re: stack marginals: text and figures Date: Tue, 22 May 2012 09:46:18 +0200 Message-ID: <5CDE7BC5-318A-416A-87AA-EC4B61DA1B61@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/mixed; boundary="===============0483486695==" X-Trace: dough.gmane.org 1337672775 11976 80.91.229.3 (22 May 2012 07:46:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 May 2012 07:46:15 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 22 09:46:14 2012 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 1SWjnJ-0004yC-7J for gctc-ntg-context-518@m.gmane.org; Tue, 22 May 2012 09:46:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 78F11101DD; Tue, 22 May 2012 09:46:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZjaEX2h0G48Y; Tue, 22 May 2012 09:46:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89450101E0; Tue, 22 May 2012 09:46:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 890F0101E0 for ; Tue, 22 May 2012 09:46:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id foPC5-6LrOb3 for ; Tue, 22 May 2012 09:46:05 +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 75096101DD for ; Tue, 22 May 2012 09:46:05 +0200 (CEST) Original-Received: from mout.web.de (mout.web.de [212.227.15.4]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4M7k4Lt001747 for ; Tue, 22 May 2012 09:46:04 +0200 Original-Received: from nat-inside-192-168-39-223.uni-hamburg.de.local ([195.37.234.90]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0M3Slc-1SFCyS0E6K-00r1P1; Tue, 22 May 2012 09:46:04 +0200 X-Mailer: Apple Mail (2.1257) X-Provags-ID: V02:K0:lo6aiLjopt2aHGws+zmBHWaHJP7p/q7f6O3LKffusd7 VMZQbKYFSVt6/HdFONZ57cd31tPKypfLyPImlh16qVgvgUhK+w kl5dAb0acT0wZXQ0rk9XUv5O+MEO/nvCvTOY5ktVBLkPh0D/B1 rDGZAIqF01PVDaff/NeOIwW6hXG5FPCoxCwfU1l2FUI4ZyH7du Qd/T1+L/AkinBBJidPWoA== X-Bayes-Prob: 0.1278 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.15.4; country=DE; region=02; city=Munich; latitude=48.1500; longitude=11.5833; http://maps.google.com/maps?q=48.1500,11.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VHcTK43b - 6d1323cb9c1c - 20120522 (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.13 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:76311 Archived-At: --===============0483486695== Content-Type: multipart/alternative; boundary="Apple-Mail=_6A3E0CE3-CD97-4BAF-884F-EC1D7C41A11C" --Apple-Mail=_6A3E0CE3-CD97-4BAF-884F-EC1D7C41A11C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 > > I made a small example to show the behavior:=20 > >=20 > > [=85]=20 > >=20 > > This is a sentence.\margintext{This is a note in the margin.} = Another=20 > > sentence.\margintext{Another note.} = \placefigure[margin][fig:one]{This is a=20 > > small figure.}{\externalfigure[test][width=3D100pt]}=20 > > \placefigure[margin][fig:two]{This is another small=20 > > figure.}{\externalfigure[test][width=3D100pt]} \stoptext=20 > >=20 > > I also tried to do things such as \margintext{\placefigure...}}, but = had no=20 > > success.=20 >=20 > Why not? The following works here:=20 >=20 > This is a sentence.=20 > \margintext{This is a note in the margin.}=20 > Another sentence.=20 > \margintext{Another note.}=20 > \margintext=20 > {\placefigure[here][fig:one]=20 > {This is a small figure.}=20 > {\externalfigure[test][width=3D100pt]}}=20 > \margintext=20 > {\placefigure[here][fig:two]=20 > {This is another small figure.}=20 > {\externalfigure[test][width=3D100pt]}}=20 >=20 >=20 > Marco=20 \margintext{\placefigure[here]=85} does indeed work. I cannot even = reproduce why I was not able to do it, but I assume I tried = \margintext{\placefigure[margin]=85} which does not make much sense...=20= > > Dear ConTeXt group,=20 > >=20 > > I am trying to stack text and figures in the margin. After getting = some help, I am able to setup the text just fine, the notes do not = overlap. I am also able to stack figures, they also do not overlap. But = figures and text does not 'know of each other'. They do overlap.=20 > >=20 > > I made a small example to show the behavior:=20 > >=20 > > [=85]=20 > >=20 > > \definemargindata [margintext]=20 > > [=20 > > location=3Douter,=20 > > width=3D100pt,=20 > > align=3Dflushouter,=20 > > stack=3Dcontinue, % or yes=20 > > ]=20 >=20 > Use \setupmargindata to change the values of a existing command. In = this example it doesn=92t matter but that=92s not always the case.=20 >=20 > Wolfgang=20 I also changed \definemargindata to \setumargindata. Andy= --Apple-Mail=_6A3E0CE3-CD97-4BAF-884F-EC1D7C41A11C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
> I made a small example to show the = behavior: 

> [=85] 

> = This is a sentence.\margintext{This is a note in the margin.} = Another 
> sentence.\margintext{Another note.} = \placefigure[margin][fig:one]{This is a 
> small = figure.}{\externalfigure[test][width=3D100pt]} 
> = \placefigure[margin][fig:two]{This is another small 
> = figure.}{\externalfigure[test][width=3D100pt]} = \stoptext 

> I also tried to do things such as = \margintext{\placefigure...}}, but had no 
> = success. 


Why not? The = following works here: 
This is a sentence. \margintext{This is a note in the margin.}
Another sentence. \margintext{Another note.} \margintext {\placefigure[here][fig:one]
{This is a small figure.} {\externalfigure[test][width=3D100pt]}}
\margintext {\placefigure[here][fig:two]
{This is another small figure.}
{\externalfigure[test][width=3D100pt]}}


Marco
> Dear ConTeXt group, 

> I = am trying to stack text and figures in the margin. After getting some = help, I am able to setup the text just fine, the notes do not overlap. I = am also able to stack figures, they also do not overlap. But figures and = text does not 'know of each other'. They do = overlap. 

> I made a small example to show the = behavior: 

> [=85] 

> = \definemargindata [margintext] 
> [ 
> = location=3Douter, 
> width=3D100pt, 
> = align=3Dflushouter, 
> stack=3Dcontinue, % or = yes 
> ]
 
Use \setupmargindata to change the values of a existing = command. In this example it doesn=92t matter but that=92s not always the = case.