[NTG-context] r2l alignment and linenumbering conflict?

Wolfgang Schuster schuster.wolfgang at gmail.com
Sat Aug 1 20:47:20 CEST 2015


> talazem at fastmail.fm <mailto:talazem at fastmail.fm>
> 1. August 2015 17:37
> Sorry to pester, but this problem is barring me from moving my book 
> project into ConTeXt this weekend.
>
> The use of linenumbers seems to throw off the R2L mechanism. Example 
> of the problem attached.
>

The culprit is the function "boxed.stage_two" in page.lua which output 
each text line in the line numbering
environment in left to right mode. When you have justified lines 
everything is fine but when you have a ragged
line (e.g. the last line in a paragraph) ConTeXt aligns the context with 
the left margin.

\starttext \showframe

\startalignment[righttoleft,flushleft]

     \input ward

     \blank

     \startlinenumbering
     \input ward
     \stoplinenumbering

\stopalignment

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150801/f7d1e25c/attachment.html>


More information about the ntg-context mailing list