Re: [NTG-context] Broken Index Behavior?

2018-03-05 Thread luigi scarso
On Mon, Mar 5, 2018 at 10:30 PM, Brian Wedde wrote: > Thanks Luigi. I am getting the "correct" results on my local workstation as > well. However, when working on an installation on a Amazon Linux EC2 > instance, the index refuses to aggregate the results. This even happens

Re: [NTG-context] Broken Index Behavior?

2018-03-05 Thread Brian Wedde
Thanks Luigi. I am getting the "correct" results on my local workstation as well. However, when working on an installation on a Amazon Linux EC2 instance, the index refuses to aggregate the results. This even happens if i copy my entire ConTeXt directory to the Amazon Linux machine verbatim. I

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Hans Hagen
On 3/5/2018 4:33 PM, Joseph Canedo wrote: I see. So is it reliable to simply use lua function tex.getcount(‘realpageno’) in vertical mode to determine that page has changed ? Or do I need some other mechanism please ? If page has changed I agree that there is no need to deal with hangindent.

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Joseph Canedo
BTW, I could write a MWE for the case when \prevgraf aggregates number of lines for 2 paragraphs (sometimes). \starttext \dorecurse{15}{ One line par.\par\nobreak A\\ B\\ C\\ D\\ E\\ F\\ G\\ H\\ I\\ J\\ K\\ L \\M\\ N. \the\prevgraf } \stoptext In some cases when « One line par » appears at

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Joseph Canedo
I see. So is it reliable to simply use lua function tex.getcount(‘realpageno’) in vertical mode to determine that page has changed ? Or do I need some other mechanism please ? If page has changed I agree that there is no need to deal with hangindent. I use grid typesetting so normally all

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Hans Hagen
On 3/5/2018 3:51 PM, Joseph Canedo wrote: If I have a callback called just after paragraph has been split into lines, would not be enough to count the number of hboxes in the vbox the paragraph itself is contained ? Cannot say it’s ideal (easier to simply read tex.prevgraf for sure), but might

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Joseph Canedo
If I have a callback called just after paragraph has been split into lines, would not be enough to count the number of hboxes in the vbox the paragraph itself is contained ? Cannot say it’s ideal (easier to simply read tex.prevgraf for sure), but might be possible, unless I missed something

[NTG-context] ANNOUNCEMENT: Notepad++ for ConTeXt - Version 0.98

2018-03-05 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear ConTeXt gang, A continuing desideratum for ConTeXt is a user-friendly writing and editing environment, where the range of application of the category “user-friendly” includes especially non-experts in programming or software development. The lack of such an environment is one factor

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Hans Hagen
On 3/5/2018 9:43 AM, Joseph Canedo wrote: I see. I use prevgraf to get number of lines in most recent paragraph to compute eventually hangindent if there is a lettrine in paragraph (in case first paragraph has fewer lines than the lettrine itself, of course next paragraph needs to setup

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Joseph Canedo
I see. I use prevgraf to get number of lines in most recent paragraph to compute eventually hangindent if there is a lettrine in paragraph (in case first paragraph has fewer lines than the lettrine itself, of course next paragraph needs to setup hangindent properly). I guess as an alternative,