Fabrice Couvreur schrieb am 10.04.2019 um 11:58:
Hi,
Wolfgang suggested this to put text in the margin but since some
updates it does not work anymore :
\setuplayout
[width=12cm,
rightmargin=5cm]
\defineuserdata [margintext] [alternative=margintext]
\defineuserdataalternative [margintext]
[renderingsetup=userdata:margintext]
\startsetups [userdata:margintext]
\margindata
[inright]
[%style=\smallbodyfont,
style={\switchtobodyfont[9pt]},
width=\rightmarginwidth,
align={flushleft,broad}]
{{\bf Exemple — }\getinlineuserdata}
\stopsetups
\starttext
\startuserdata[margintext]
\input ward
\stopuserdata
\stoptext
Put text (\dontleavehmode works also because it starts a paragraph)
after \stopuserdata to flush the content of the margin block.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________