Hi Pablo,

thanks for your response. 
in the meantime I digged a bit deeper. 
The documentation  about \insertonlycount says:
When a page was wrapped up and there are {\em only} inserts left, this variable
hold the number of inserts. In \CONTEXT\ we use this property to issue an insert
boundary that then triggers (via a callback) resetting some constraints with
respect to note placement. It's one of the more specialized features.

In the mwe there are for sure no inserts left. 
Therefore \insertonlycount = 0 --> correct!

However, in this case the page counters are not decremented in 
\strc_pagenumbers_decrement_counters
This macro is appended to \everygoodbye. So in case of no insertions only left  
\lastpage is always 1 to high. 

There is another position where \insertonlycount is used (page-one.mkxl). Here 
the \vsize is adapted in case of  \insertonlycount != 0. 

I guess in src_pag.mkxl the \ifcase shall be switched. so only in case of no 
insertions are left the page number will be decremented, in case of only 
insertions are left, the page number is not decremented.

For me a workaround on user level seems to work (in case I have no insertions 
only left), without modifications in the core code:
\def\insertonlycount{1} % force branch in \strc_pagenumbers_decrement_counters 
--> \everygoodbye
\pageinsertonlyfactor=0 % don't adjust \vsize

Maybe it helps to analyze in more detail 
Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to