From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107933 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Store images and text in the right margin Date: Fri, 3 Jul 2020 08:40:22 +0200 Message-ID: References: <20200702190416.0720324f@homerow> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0596953166934853426==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24628"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 08:42:28 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 1jrFP0-0006Hk-Le for gctc-ntg-context-518@m.gmane-mx.org; Fri, 03 Jul 2020 08:42:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 56322185584; Fri, 3 Jul 2020 08:41:57 +0200 (CEST) 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 bvVHwE36js3d; Fri, 3 Jul 2020 08:41:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 51F2418556E; Fri, 3 Jul 2020 08:41:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4E3EC185556 for ; Fri, 3 Jul 2020 08:41:54 +0200 (CEST) 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 7byt1Xe4s1J8 for ; Fri, 3 Jul 2020 08:41:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.41; helo=mail-wm1-f41.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 519E9185283 for ; Fri, 3 Jul 2020 08:41:53 +0200 (CEST) Original-Received: by mail-wm1-f41.google.com with SMTP id o2so32641834wmh.2 for ; Thu, 02 Jul 2020 23:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TlPghVkr2u+5OBOY8Qbl70LUY39Xi7S4qq6BXt2WCA4=; b=WgwiA0+EiZcDm65NDm/kmpzlSDIdZmGbpPjPrAbkOdgAFM+pKlD1MWnikuHsqhZSHK lWTQudrcKiGNU7Ly3hY5WyuZzz7uNA0F3ey7If/iFnjnLLFt2hUSFtMy7SNiqVSzExQ7 8UO9pPCVolVFG8DZnwy+wMjEOnDKn4lO/iWreC9eLHiUEObYzXqOGLS1Nrrwikk7sy+m alILlt58lLLrhChMXduE0axkpSTvRfxThCLqCQAGmojnvUVPz9bvl/P01prXXqlf3Dyc tZ18zAQ6a2YYZOBIprpWMXsdYSQEHQdhZrJDvy7qVgSYaDyqHt6bS+7zAtkvSATaDOXZ Lpyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TlPghVkr2u+5OBOY8Qbl70LUY39Xi7S4qq6BXt2WCA4=; b=MsbG3JgKMaAxAyqNb5fFIYrQJ88gu7I3qRvsROY4Ezcr/7yKsX2ijzfhsiAiKu+OQr X1jha5EO7kiu/joAs64ah6Bf6PlV/6FSbM4RFdhiEwE1ScuIPbaVaFdhB2oYUllSr4qN tDzKlIN6daYCwlpBTora4x8TGz6hHkSr4L/xX9iRqdHa6D45ngM8HdSPE4eiZ3Lsj9l5 s/Q/I4cX/bAhytvEJRD9lZE4j2P6QYwlMlD6xLEDijp+h7RaD2Uo2eSkU3k/4NbS1Qf5 /S4s2wRzcJ++ZlfEtMr5BwlUdjXNit1s3VUu4iifycp+7N/VqugMbnBOJwBxDz9iO/AY Zozg== X-Gm-Message-State: AOAM532eezX4XmQu5l5sXssYpvRntULTYSCW+5kA01b8028PPQDeCDJu /JQH6YoLFUe0Bjz5+Jh6BSiAlFkLozzPvvQD4mClF4Vw X-Google-Smtp-Source: ABdhPJzbL2WHEixJnSiGYblp1L/0mFykClboptk4cFSRA2B4NXmuDr2EwiXwmTah9Ao85uPylXHaHaZOjEetP8JAbjU= X-Received: by 2002:a1c:b686:: with SMTP id g128mr36521006wmf.145.1593758512611; Thu, 02 Jul 2020 23:41:52 -0700 (PDT) In-Reply-To: <20200702190416.0720324f@homerow> 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:107933 Archived-At: --===============0596953166934853426== Content-Type: multipart/alternative; boundary="0000000000000084cd05a983d290" --0000000000000084cd05a983d290 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Marco, Thanks, it works but only for a comment and a picture. Indeed, if I add a comment and an image, the first image is placed on the second comment. Fabrice \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=3D\rightmarginwidth,location=3Dh= igh]} \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=3D\rightmarginwidth,location=3Dh= igh]} \startchapter[title=3DFirst chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext Le jeu. 2 juil. 2020 =C3=A0 19:04, Marco Patzer a =C3= =A9crit : > On Thu, 2 Jul 2020 17:20:07 +0200 > Fabrice Couvreur wrote: > > Try: > > > \useMPlibrary[dum] > > > > \setuppapersize[A4] > > > > \setuplayout > > [width=3D12cm, > > rightmargin=3D5cm] > > > > \definemargindata[marginfigure][inright] > > \setupmargindata [marginfigure][command=3D\vbox,align=3Dmiddle] > > \setupmargindata [marginfigure][command=3D\vbox,align=3Dmiddle,stack=3Dye= s] > > > \startsetups [userdata:margintext] > > \margindata > > [inright] > > [%style=3D\smallbodyfont, > > style=3D{\switchtobodyfont[9pt]}, > > width=3D\rightmarginwidth, > > stack=3Dyes, > > > align=3D{flushleft,broad}] > > {{\bf Remarque =E2=80=94 }\getinlineuserdata} > > \stopsetups > > > \marginfigure{\externalfigure[dummy][width=3D\rightmarginwidth]} > > > \marginfigure{\externalfigure[dummy][width=3D\rightmarginwidth,location= =3Dhigh]} > > Marco > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --0000000000000084cd05a983d290 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Marco,
Thanks, it works but only for a comment and a pictur= e. Indeed, if I add a comment and an image, the fir= st image is placed on the second comment.
Fabric= e

\starttext
\startuserdata[margintext]
=C2=A0\inp= ut ward
\stopuserdata
\marginfigure{\externalfigure[dummy][width=3D\r= ightmarginwidth,location=3Dhigh]}
\startuserdata[margintext]
=C2=A0\i= nput ward
\stopuserdata
\marginfigure{\externalfigure[dummy][width=3D= \rightmarginwidth,location=3Dhigh]}
\startchapter[title=3DFirst chapter]=
\dorecurse{2}{\input knuth}
\stopchapter
\stoptext
Le=C2=A0j= eu. 2 juil. 2020 =C3=A0=C2=A019:04, Marco Patzer <lists@homerow.info> a =C3=A9crit=C2=A0:
On Thu, 2 Jul 2020 17:20:07 = +0200
Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Try:

> \useMPlibrary[dum]
>
> \setuppapersize[A4]
>
> \setuplayout
>=C2=A0 =C2=A0[width=3D12cm,
>=C2=A0 =C2=A0 rightmargin=3D5cm]
>
> \definemargindata[marginfigure][inright]
> \setupmargindata [marginfigure][command=3D\vbox,align=3Dmiddle]

\setupmargindata [marginfigure][command=3D\vbox,align=3Dmiddle,stack=3Dyes]=

> \startsetups [userdata:margintext]
>=C2=A0 =C2=A0\margindata
>=C2=A0 =C2=A0 =C2=A0[inright]
>=C2=A0 =C2=A0 =C2=A0[%style=3D\smallbodyfont,
>=C2=A0 =C2=A0 =C2=A0 style=3D{\switchtobodyfont[9pt]},
>=C2=A0 =C2=A0 =C2=A0 width=3D\rightmarginwidth,

=C2=A0 stack=3Dyes,

>=C2=A0 =C2=A0 =C2=A0 align=3D{flushleft,broad}]
>=C2=A0 =C2=A0 =C2=A0{{\bf Remarque =E2=80=94 }\getinlineuserdata}
> \stopsetups

> \marginfigure{\externalfigure[dummy][width=3D\rightmarginwidth]}

\marginfigure{\externalfigure[dummy][width=3D\rightmarginwidth,location=3Dh= igh]}

Marco
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000000084cd05a983d290-- --===============0596953166934853426== 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== --===============0596953166934853426==--