[NTG-context] Store images and text in the right margin

Fabrice Couvreur fabrice1.couvreur at gmail.com
Thu Jul 2 17:20:07 CEST 2020

Hello everyone and in particular to Wolfgang who has already provided me
with the solution below. I will have to write a Mathematics book for my
students and the remarks and graphics should be in the right margin. I got
the code written by Wolfgang and tried to include the graphics in it. The
result is not as expected because the graphic overflows on the text.
The course will be written in A4 format with an 11 pts font.
Thanks for your help.




\setupmargindata [marginfigure][command=\vbox,align=middle]

\defineuserdata [margintext] [alternative=margintext]

\defineuserdataalternative [margintext] [renderingsetup=userdata:margintext]

\startsetups [userdata:margintext]
    {{\bf Remarque — }\getinlineuserdata}

 \input ward
\startchapter[title=First chapter]
\dorecurse{2}{\input knuth}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200702/446f471c/attachment.htm>

More information about the ntg-context mailing list