[NTG-context] Text in the margin

Fabrice Couvreur fabrice1.couvreur at gmail.com
Wed Apr 10 11:58:38 CEST 2019


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


Thank you.
Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190410/7f2861cd/attachment.html>


More information about the ntg-context mailing list