[NTG-context] Text in the margin

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Wed Apr 10 23:04:25 CEST 2019


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190410/a346450c/attachment.html>


More information about the ntg-context mailing list