[NTG-context] Combine overlapping margin notes with separator

Henri Menke henrimenke at gmail.com
Thu Mar 29 06:34:19 CEST 2018


Bump!

On Mon, 2018-03-19 at 01:39 -0700, Benjamin Epstein wrote:
> Hello!
> 
> I am typesetting a text with line numbers in the margin and am interested in
> combining them if two should end up on the same line, dividing them with a
> comma or something like that.  With the code below, the first line of the
> output contains an overlapping "1" and "2" in the margin.  I would like the
> "1" and "2" not to be overlapping, nor to be stacked like
> \setupmargindata[stack=yes] would get me, but rather to automatically combine
> those that would overlap to get something like "1,2".
> 
> Current output: https://i.imgur.com/RaTQ1ZO.png
> Desired output: https://i.imgur.com/oWKigTX.png
> 
> Is there a reliable way to implement this?  Any help would be appreciated!
> 
> ***
> 
> \starttext
> 
> \inmargin{1}Now we are engaged in a great civil war.
> \inmargin{2}We are testing whether that nation or any nation so conceived 
> and so dedicated, can long endure.
> \inmargin{3}We are met on a great battle-field of that war.
> 
> \stoptext
> 
> ***
> 
> Thank you,
> Benjamin
> ______________________________________________________________________________
> _____
> If your question is of interest to others as well, please add an entry to the
> Wiki!
> 
> maillist : ntg-context at 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
> ______________________________________________________________________________
> _____


More information about the ntg-context mailing list