From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106118 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: margintext and floats in the margin Date: Sun, 26 Jan 2020 11:10:47 +0100 Message-ID: <1FD08013-CEB2-4685-B870-7E05861EF6C3@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="===============7396112010602104474==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="32437"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 26 11:11:18 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivesv-0008Pz-T4 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 26 Jan 2020 11:11:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 93ADE1650F8; Sun, 26 Jan 2020 11:10:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yyJJEZ_CoX5p; Sun, 26 Jan 2020 11:10:53 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 76D951650E4; Sun, 26 Jan 2020 11:10:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3D9F21650D2 for ; Sun, 26 Jan 2020 11:10:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YJAbtUmuSL2H for ; Sun, 26 Jan 2020 11:10:51 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.50; helo=mail-wr1-f50.google.com; envelope-from=otared@gmail.com; receiver= Original-Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A025216504D for ; Sun, 26 Jan 2020 11:10:51 +0100 (CET) Original-Received: by mail-wr1-f50.google.com with SMTP id y17so7368189wrh.5 for ; Sun, 26 Jan 2020 02:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=a30F0FNFE028/Cw7f4cesop3XmtiO9dOyOteJoROtHc=; b=gydi5zE3H4aeoRGHa4WPAcl6jNuyvZrdwAPKqZU2PNZtn5MG71WzkCdEeop+a5rStl JJj0mo8lvYOUg6KOzXKzGmeoQLFJ0lkC4vmpcoGc5K71ND/AvwCgKHNRW96piarPEdUo fy/vlNa2yRPXQziDNdaO/0DtfvIxOx3EW2QamekPyzkeJqJxMVNjmsWT/rvYpoDigf06 08gItgqHLLHjJmVyW7E4X38LhoaClEK9Br/cfq7Hso2dDtj/yqt8QocK6zrpliHviZex JV+sUu5JUMvTlDaRNZfwwqeSXI5RHteVVwHuETIa5zd1ZZqVwVLl1v9aQp9+z8lDNinS PY+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=a30F0FNFE028/Cw7f4cesop3XmtiO9dOyOteJoROtHc=; b=UKCitnEIpaCXNyVRi+nXp9tWVbWxBjaTu/Sj8Q8EXMzKZo7fOs7a6XscKrBgN0Nx5a 8wU0mi1K3aOZjJ7YUYm0LaeRebSfFDoPwdiAgi+Duh3/FwGTXEr3OFLsKET3Jg+XWrCU VeNkgUif5XdhW6pOW56Aeu3UTp7L0X0ORBUGeEF+zF+cxureMYgFlwWmFvudlZxiNSTW HhlRbQKhRK1Il4DwlthtQIYuXwH2GGum8aGa+HaP2dETh5ZVLmlM4pYhd0eJQZi7kd8A 0shRvdn8ZyhjIVBobrEdo623mTV0he/4R4/kUygUgOuBxR47epxsFD+IWdraHVmRLrs0 Hp1A== X-Gm-Message-State: APjAAAWXkyCbdkljcBlkOvdVJ3opudCT7Zrr4KHjyo0EqA4Xhs6Onk3V dEa63TviJi3wWBZmDsGbuTibZxPX X-Google-Smtp-Source: APXvYqxlQtshVNfFG53Ppeuy8JTUyJnWQYGTHVsRnuPdgK2iBQWyEG3WqTBDW2lyeE/0XREjCHrr8w== X-Received: by 2002:a5d:4d8d:: with SMTP id b13mr14575729wru.6.1580033450799; Sun, 26 Jan 2020 02:10:50 -0800 (PST) Original-Received: from ?IPv6:2a01:e34:ec02:4760:c472:6a84:fd05:afe9? ([2a01:e34:ec02:4760:c472:6a84:fd05:afe9]) by smtp.gmail.com with ESMTPSA id m3sm15095023wrs.53.2020.01.26.02.10.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jan 2020 02:10:50 -0800 (PST) X-Mailer: Apple Mail (2.3445.104.11) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:106118 Archived-At: --===============7396112010602104474== Content-Type: multipart/alternative; boundary="Apple-Mail=_7D714C4A-265E-46F4-90CC-FB251EBBE0B9" --Apple-Mail=_7D714C4A-265E-46F4-90CC-FB251EBBE0B9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Is it possible to put some short notes in the margin, together with a = float? Below is an example, which puts the float on top of the text in the = margin. The option =C2=AB stack=3Dyes =C2=BB works fine for the margintext when = there is no float, but it does not seems to be an option which puts the = figure and margintext in a sort of stack. Thanks for any advice: Otared K. % begin margintext-float.tex \setuppapersize[A4][A4] \setuplayout[ width=3D120mm, leftmargin=3D25mm,rightmargin=3D50mm] =09 \setupmargindata[margintext] [align=3Draggedright, stack=3Dyes, location=3Douter, style=3D{\rm}] \showframe \startbuffer[sine] numeric u ; u =3D 5mm ; draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u=20 withcolor transparent(1,.5,darkblue)=20 withpen pencircle scaled 2pt ; \stopbuffer \starttext This is some text.\margintext{This is a remark in the margin.} This is some more text.\margintext{This text is also in the margin.} \startplacefigure[location=3Doutermargin,number=3Dno] \scale[width=3D\rightmarginwidth]{\processMPbuffer[sine]} \stopplacefigure \stoptext % end margintext-float.tex --Apple-Mail=_7D714C4A-265E-46F4-90CC-FB251EBBE0B9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Is it = possible to put some short notes in the margin, together with a = float?
Below is an example, which puts the float on = top of the text in the margin.
The option =C2=AB= stack=3Dyes =C2=BB works fine for the margintext when there is no = float, but it does not seems to be an option which puts the figure and = margintext in a sort of stack.

Thanks for any advice: Otared = K.

% begin = margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
width=3D120mm,
= leftmargin=3D25mm,rightmargin=3D50mm]


\setupmargindata[margintext]
= [align=3Draggedright,
stack=3Dyes,
= location=3Douter,
= style=3D{\rm}]

\showframe
\startbuffer[sine]
numeric u = ; u =3D 5mm ;
= draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled = u 
withcolor = transparent(1,.5,darkblue) 
withpen pencircle scaled 2pt = ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the = margin.}
This is some more text.\margintext{This text is also in the = margin.}
\startplacefigure[location=3Doutermargin,number=3Dno]
\scale[width=3D\rightmarginwidth]{\processMPbuffer[sine]}
=
\stopplacefigure

\stoptext
% end margintext-float.tex

= --Apple-Mail=_7D714C4A-265E-46F4-90CC-FB251EBBE0B9-- --===============7396112010602104474== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7396112010602104474==--