From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106153 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jan Willem Flamma Newsgroups: gmane.comp.tex.context Subject: Re: margintext and floats in the margin Date: Fri, 31 Jan 2020 09:39:05 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/mixed; boundary="===============1131639299645416753==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="52609"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 31 09:39:25 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 1ixRpk-000Dbu-JV for gctc-ntg-context-518@m.gmane-mx.org; Fri, 31 Jan 2020 09:39:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 495EF165058; Fri, 31 Jan 2020 09:39:10 +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 Ddu1vwFKDJI4; Fri, 31 Jan 2020 09:39:09 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 66BD21650EB; Fri, 31 Jan 2020 09:39:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F1191650EA for ; Fri, 31 Jan 2020 09:39:08 +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 agx8y91uuNKn for ; Fri, 31 Jan 2020 09:39:07 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.49; helo=mail-wr1-f49.google.com; envelope-from=register12c@gmail.com; receiver= Original-Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 B56D1164F99 for ; Fri, 31 Jan 2020 09:39:07 +0100 (CET) Original-Received: by mail-wr1-f49.google.com with SMTP id m16so7555662wrx.11 for ; Fri, 31 Jan 2020 00:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=c/GL+UqT++ehRlt9vK5D6t+57v036+JO7hrcTfHcXMU=; b=vQPkAnqmDjXPr0nRxMlxCSbeSes9VOfIn9n7HqkGTyyGXXhh3VWt1A/g9v963rAyFN HIN9AO0OjUXyI20htED7tGmdfgktuZR9h5iqUFIkm5FEOtTQWz8gN5ficrc4eINQfOkH jgysJZBXk5oVSw4g3SBy8+IVduFA7wmp3scA1LvBJvkYI5/4tNmsbOoEeQTNBuSETm3u mzrm44kdeTSZuCjssDZlLlR+3o9Hg3l0TJEHLXnOcUqrwfes9kMlvGneK51PX5VoP2MQ LKyPInC6pmwWMQL22sxADVC+4jS2mG079j3ohxhHfnH5A6DZ+IDFaaeBYOx7ZqVeP581 ASig== 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:date:references:to :in-reply-to:message-id; bh=c/GL+UqT++ehRlt9vK5D6t+57v036+JO7hrcTfHcXMU=; b=Sv1pAF7Q84ZLrGs+v+Wob+V66uvFat3PT5w7n4zYHOXIxYfd2F59rQPHR4wQGUEpFc bRY88WBfz9yyazVFcCTF4IL9mGBIWZq/v2SEAoJLk6qeLG0G4rnK+7Hpit0/b7K3+z47 5eb02fpuCOvLESgtnJafCmcJ95Ky7roAxilN5d51B/7H5gYvWqlItltPUJ/YVQJyQTnA zZqMaSy+3p4WqnioZ4ZEc2bef5VJuBKX8xSXUDWNsTv2xv5rWhMreKWwuuHM7yncv6ea s0s6CdVsmOMw5pI2qnydRAJpRsr+zS3HWoVmQrH4cMu2x6OocLSufhgyGUjxylxW4skg PMHg== X-Gm-Message-State: APjAAAXsRAGGOTeXMxtyBuKS1lpFFoW8lHNDu2wzMjTEQYvsXNmT19Fc fegJkqqNUWOoDPtxGI82qfWjNyX3 X-Google-Smtp-Source: APXvYqzWFuyTiqktb/5xQYWzJPOlU8IpSG/FtkmQDd7pRfG7mqkUUUDbkrwoLnqi31PxBxC+yC1G5Q== X-Received: by 2002:adf:806c:: with SMTP id 99mr10261490wrk.328.1580459947028; Fri, 31 Jan 2020 00:39:07 -0800 (PST) Original-Received: from ?IPv6:2001:984:3852:1:d11d:1305:968b:c504? ([2001:984:3852:1:d11d:1305:968b:c504]) by smtp.gmail.com with ESMTPSA id d14sm11488894wru.9.2020.01.31.00.39.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jan 2020 00:39:06 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3445.9.1) 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:106153 Archived-At: --===============1131639299645416753== Content-Type: multipart/alternative; boundary="Apple-Mail=_146DE587-0DE3-4B4F-81A1-E88BF601088C" --Apple-Mail=_146DE587-0DE3-4B4F-81A1-E88BF601088C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Otared, Please have a look at: https://www.mail-archive.com/ntg-context@ntg.nl/msg63579.html = Kind regards, Jan Willem Flamma > On 29 Jan 2020, at 09:30, Otared Kavian wrote: >=20 > Hi, >=20 > 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. >=20 > Thanks for any advice: Otared K. >=20 > % 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}] >=20 > \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 >=20 > \starttext >=20 > 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 >=20 > \stoptext > % end margintext-float.tex >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_146DE587-0DE3-4B4F-81A1-E88BF601088C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Otared,

Please have = a look at:





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

_____________________________________________= ______________________________________
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://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_146DE587-0DE3-4B4F-81A1-E88BF601088C-- --===============1131639299645416753== 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== --===============1131639299645416753==--