From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106142 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: Wed, 29 Jan 2020 09:30:10 +0100 Message-ID: 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="===============1628676207120304400==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="82949"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 29 09:30:30 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 1iwik2-000LYq-8e for gctc-ntg-context-518@m.gmane-mx.org; Wed, 29 Jan 2020 09:30:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 641641651D6; Wed, 29 Jan 2020 09:30:16 +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 IzZSJuJh5_ZR; Wed, 29 Jan 2020 09:30:15 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 83FF6165204; Wed, 29 Jan 2020 09:30:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7B2991651A8 for ; Wed, 29 Jan 2020 09:30:14 +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 scKI9XF8oWTg for ; Wed, 29 Jan 2020 09:30:13 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.48; helo=mail-wr1-f48.google.com; envelope-from=otared@gmail.com; receiver= Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 53235164EA0 for ; Wed, 29 Jan 2020 09:30:13 +0100 (CET) Original-Received: by mail-wr1-f48.google.com with SMTP id g17so19087126wro.2 for ; Wed, 29 Jan 2020 00:30:13 -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=T3p4N1jjb/hU2j3GW+cj7HsL7tPZlWAR8AWhsaDeVaU=; b=LOPHIF2ehQPEc9v4b1mRX5hXznbGkI0QKg35gb3eQS2yVWOM8/25aNuFSnf3GpATHK wka+HSELuRljfxxM9O6uGu04QMCkv1X7eKK2ZE/sFguSMP1tPsLWnycnYsnLkUFAKBFW /sYJVFYYBpqaJZZI/tyiU9zk7MwxE3hzAPaNLeZ+Gkj7yWQsjialGCMyzUTksNv5ok7+ gQwBdc6+ThW4Ks++p1+DfQn5hTOylXIqSgkLjaLBDOcap/E/CU3LvdpOIdXCkQmlZkXL 3c9BW9nho6YW+oeC9qbtLAXu+9LWFokJ3puS2BZCoFAEaMZENhbXxPQEjEdbiPMdiRmK mYiw== 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=T3p4N1jjb/hU2j3GW+cj7HsL7tPZlWAR8AWhsaDeVaU=; b=PR7RARCTUnq0QRM8coNHPrO8fzBn9ipUwP0Jo98kwJH2f/vz3oNMeUdLINS/bRa/78 /lRuxzGgyUNl4rVbngE2mdTpzHX/JfC4a3xBl4IoznEFfSqfUgyDFLQIiMp+0+0iFkPT lrJEidx6l1Odg4hhMHXq6Z333YrPlNiSMf5ZY2hliYQY4Per+aPBuuv4P37awfwm6LV3 SEJ6Nb2H5NUpDOKasoolSOOEkrjkyn+t9PKytfmn2zMMpK2ckT6mApSn6Xh6NKKxylkz kGmQ/QDDVi1aMnkomKru1MU64xpxwqJrYUuEYgRDTV9740iD4TxY0nGrpCxjvd7+x/DU F3fQ== X-Gm-Message-State: APjAAAUE8gabw/OOs2m58ZOsGRjHB9SyIRguFqv3vAxoc8kg0L2D4UJ2 WkG3XECEmGmkfzCpJUuLjhAxhxyp X-Google-Smtp-Source: APXvYqwI0CutY3+pAWjTWBP9yWShzT7gWMNoGFx588yRhqhFIzj7quXko4/HVvl0KljfKpWCW+9ssA== X-Received: by 2002:a05:6000:1044:: with SMTP id c4mr36004530wrx.204.1580286612549; Wed, 29 Jan 2020 00:30:12 -0800 (PST) Original-Received: from ?IPv6:2a01:e34:ec02:4760:ac12:3a06:df13:5580? ([2a01:e34:ec02:4760:ac12:3a06:df13:5580]) by smtp.gmail.com with ESMTPSA id c9sm1891260wrq.44.2020.01.29.00.30.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jan 2020 00:30:11 -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:106142 Archived-At: --===============1628676207120304400== Content-Type: multipart/alternative; boundary="Apple-Mail=_AA015006-185E-4517-9B83-4AF9767F813C" --Apple-Mail=_AA015006-185E-4517-9B83-4AF9767F813C 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=_AA015006-185E-4517-9B83-4AF9767F813C 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=_AA015006-185E-4517-9B83-4AF9767F813C-- --===============1628676207120304400== 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== --===============1628676207120304400==--