[NTG-context] Placing margin notes on the left using Lua

Wolfgang Schuster schuster.wolfgang at gmail.com
Fri May 8 12:17:56 CEST 2015


> Am 08.05.2015 um 11:35 schrieb Hannes Riebl <hriebl at sub.uni-goettingen.de>:
> 
> Dear ConTeXt users,
> 
> I am typesetting a critical edition with margin notes. To place these, I am using the Lua code below. It is based on the code from the LuaTeX wiki (cf. http://wiki.luatex.org/index.php/Post_linebreak_filter#Margin_notes) and has the restrictions mentioned on this wiki page. For example, placing notes on the left of the text is not possible.

Why don’t you use ConTeXt’s \margindata command to place your margin texts?

\setuppagenumbering[alternative=doublesided]

\starttext

\dorecurse{20}
  {\margindata[inouter]{Knuth}
   %\margindata[inleft]{Knuth}
   \input knuth\par}

\stoptext

Wolfgang



More information about the ntg-context mailing list