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=\rightmarginwidth,location=high]}
\startuserdata[margintext]
\input ward
\stopuserdata
\marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]}
\startchapter[title=First chapter]
\dorecurse{2}{\input knuth}
\stopchapter
\stoptext
Le jeu. 2 juil. 2020 à 19:04, Marco Patzer
On Thu, 2 Jul 2020 17:20:07 +0200 Fabrice Couvreur
wrote: Try:
\useMPlibrary[dum]
\setuppapersize[A4]
\setuplayout [width=12cm, rightmargin=5cm]
\definemargindata[marginfigure][inright] \setupmargindata [marginfigure][command=\vbox,align=middle]
\setupmargindata [marginfigure][command=\vbox,align=middle,stack=yes]
\startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth,
stack=yes,
align={flushleft,broad}] {{\bf Remarque — }\getinlineuserdata} \stopsetups
\marginfigure{\externalfigure[dummy][width=\rightmarginwidth]}
\marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]}
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
___________________________________________________________________________________