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

2015-05-20 Thread Hannes Riebl
On 05/20/2015 05:21 PM, luigi scarso wrote: Is it possible to have and see an example ? Of course! Not sure if this mailing list allows attachments, so I uploaded my code: https://www.dropbox.com/s/bp1s9fubha4ml0m/notes.zip?dl=0 Just extract the archive, run make.pl and have a look at outp

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

2015-05-20 Thread luigi scarso
On Wed, May 20, 2015 at 5:14 PM, Hannes Riebl wrote: > On 05/08/2015 01:14 PM, Hannes Riebl wrote: > >> That's good! Is there an option to use spaces instead of new lines >> between the notes? And how about dropping irrelevant notes? Just to >> provide some more information: We use margin notes t

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

2015-05-20 Thread Hannes Riebl
On 05/08/2015 01:14 PM, Hannes Riebl wrote: That's good! Is there an option to use spaces instead of new lines between the notes? And how about dropping irrelevant notes? Just to provide some more information: We use margin notes to mark text omissions. However, these notes should only appear for

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

2015-05-08 Thread Hannes Riebl
On 05/08/2015 12:41 PM, Wolfgang Schuster wrote: You can use the “stack=yes” setting for \margindata to avoid overlapping texts. That's good! Is there an option to use spaces instead of new lines between the notes? And how about dropping irrelevant notes? Just to provide some more information

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

2015-05-08 Thread Wolfgang Schuster
> Am 08.05.2015 um 12:36 schrieb Hannes Riebl : > > On 05/08/2015 12:17 PM, Wolfgang Schuster wrote: > >> Why don’t you use ConTeXt’s \margindata command to place your margin texts? > > > Dear Wolfgang, > > thank you for writing back! I cannot use \margindata because it creates > overlapping

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

2015-05-08 Thread Hannes Riebl
On 05/08/2015 12:17 PM, Wolfgang Schuster wrote: Why don’t you use ConTeXt’s \margindata command to place your margin texts? Dear Wolfgang, thank you for writing back! I cannot use \margindata because it creates overlapping notes. Instead, I use Lua to concatenate the notes in one line and

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

2015-05-08 Thread Wolfgang Schuster
> Am 08.05.2015 um 11:35 schrieb Hannes Riebl : > > 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_

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

2015-05-08 Thread Hannes Riebl
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