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,
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 hangind
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 th
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 (tot
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
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 lines
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 f
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.
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
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 if i
> copy my entire C
10 matches
Mail list logo