With the latest (2025-08-13) I get an error from the following: \setupinteraction [state=stop] \definelabel[Qi] [text={\hbox to \dimexpr +15pt\relax{}}, alternative=inright, way=bytext, headstyle=small, before=,after=, ] \starttexdefinition tolerant protected unexpanded startBlockQuotation \begingroup \Qi \vskip -2\lineheight\relax % \blank[-2*line] \stoptexdefinition \starttexdefinition stopBlockQuotation \endgroup \stoptexdefinition \starttexdefinition tolerant protected unexpanded startExtract \begingroup \grabbufferdata[Extract] [startExtract] [stopExtract] \stoptexdefinition \starttexdefinition stopExtract \blank[back,line] \inlinebuffer[Extract] \endgroup \blank[line] \stoptexdefinition \starttext \startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation \samplefile klein\startendnote[] \samplefile klein\par \startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation \stopendnote \samplefile klein \par \placenotes[endnote] \stoptext The error can be eliminated by changing interaction to stop, but I want interaction. The vskip is needed here because blank does not do the job, as you can test in the example. Is this a side effect of the new tagging changes? (A workaround that uses blank would be welcome.) -- Rik
Sorry, the initial condition to show the error is \setupinteraction[state=start] .
On August 13, 2025 7:01:41 PM EDT, Rik Kabel
With the latest (2025-08-13) I get an error from the following:
\setupinteraction [state=stop]
\definelabel[Qi] [text={\hbox to \dimexpr +15pt\relax{}}, alternative=inright, way=bytext, headstyle=small, before=,after=, ]
\starttexdefinition tolerant protected unexpanded startBlockQuotation \begingroup \Qi \vskip -2\lineheight\relax % \blank[-2*line] \stoptexdefinition
\starttexdefinition stopBlockQuotation \endgroup \stoptexdefinition
\starttexdefinition tolerant protected unexpanded startExtract \begingroup \grabbufferdata[Extract] [startExtract] [stopExtract] \stoptexdefinition
\starttexdefinition stopExtract \blank[back,line] \inlinebuffer[Extract] \endgroup \blank[line] \stoptexdefinition
\starttext
\startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation
\samplefile klein\startendnote[] \samplefile klein\par \startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation \stopendnote
\samplefile klein \par
\placenotes[endnote] \stoptext
The error can be eliminated by changing interaction to stop, but I want interaction.
The vskip is needed here because blank does not do the job, as you can test in the example.
Is this a side effect of the new tagging changes?
(A workaround that uses blank would be welcome.)
-- Rik
On 8/14/2025 1:01 AM, Rik Kabel wrote:
With the latest (2025-08-13) I get an error from the following:
\setupinteraction [state=stop]
\definelabel[Qi] [text={\hbox to \dimexpr +15pt\relax{}}, alternative=inright, way=bytext, headstyle=small, before=,after=, ]
\starttexdefinition tolerant protected unexpanded startBlockQuotation \begingroup \Qi \vskip -2\lineheight\relax % \blank[-2*line] \stoptexdefinition
\starttexdefinition stopBlockQuotation \endgroup \stoptexdefinition
\starttexdefinition tolerant protected unexpanded startExtract \begingroup \grabbufferdata[Extract] [startExtract] [stopExtract] \stoptexdefinition
\starttexdefinition stopExtract \blank[back,line] \inlinebuffer[Extract] \endgroup \blank[line] \stoptexdefinition
\starttext
\startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation
\samplefile klein\startendnote[] \samplefile klein\par \startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation \stopendnote
\samplefile klein \par
\placenotes[endnote] \stoptext
The error can be eliminated by changing interaction to stop, but I want interaction.
The vskip is needed here because blank does not do the job, as you can test in the example.
Is this a side effect of the new tagging changes?
(A workaround that uses blank would be welcome.)
in supp-box.mkxl line 2792 you can try to replace \hbox by \vpack \setbox\b_syst_boxes\vpack{\expand\everypreroll#1}% (i'm not sure about side effects on other usage) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 2025-08-14 02:56, Hans Hagen via ntg-context wrote:
On 8/14/2025 1:01 AM, Rik Kabel wrote:
With the latest (2025-08-13) I get an error from the following:
\setupinteraction [state=stop]
\definelabel[Qi] [text={\hbox to \dimexpr +15pt\relax{}}, alternative=inright, way=bytext, headstyle=small, before=,after=, ]
\starttexdefinition tolerant protected unexpanded startBlockQuotation \begingroup \Qi \vskip -2\lineheight\relax % \blank[-2*line] \stoptexdefinition
\starttexdefinition stopBlockQuotation \endgroup \stoptexdefinition
\starttexdefinition tolerant protected unexpanded startExtract \begingroup \grabbufferdata[Extract] [startExtract] [stopExtract] \stoptexdefinition
\starttexdefinition stopExtract \blank[back,line] \inlinebuffer[Extract] \endgroup \blank[line] \stoptexdefinition
\starttext
\startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation
\samplefile klein\startendnote[] \samplefile klein\par \startBlockQuotation \startExtract \samplefile klein \par \stopExtract \stopBlockQuotation \stopendnote
\samplefile klein \par
\placenotes[endnote] \stoptext
The error can be eliminated by changing interaction to stop, but I want interaction.
The vskip is needed here because blank does not do the job, as you can test in the example.
Is this a side effect of the new tagging changes?
(A workaround that uses blank would be welcome.)
in supp-box.mkxl line 2792 you can try to replace \hbox by \vpack
\setbox\b_syst_boxes\vpack{\expand\everypreroll#1}%
(i'm not sure about side effects on other usage)
First, thank you for the quick fix. That indeed does the job for this document. I am interested to know why the problem occurred only with interaction active. I also am wary of using \vskip (given the warning in the wiki) and would like to know if there is some variant of \blank that will do the job, or some other work-around in my example that would make it unnecessary. -- Rik
On 2025-08-14 16:22, Rik Kabel wrote:
On 2025-08-14 02:56, Hans Hagen via ntg-context wrote:
in supp-box.mkxl line 2792 you can try to replace \hbox by \vpack
\setbox\b_syst_boxes\vpack{\expand\everypreroll#1}%
(i'm not sure about side effects on other usage)
First, thank you for the quick fix. That indeed does the job for this document.
I am interested to know why the problem occurred only with interaction active.
I also am wary of using \vskip (given the warning in the wiki) and would like to know if there is some variant of \blank that will do the job, or some other work-around in my example that would make it unnecessary.
And I was took quick to say it is good. It compiles, but there are significant differences in labels between interaction start and stop. I will try to create a good demonstration tomorrow. -- Rik
On 8/15/2025 2:55 AM, Rik Kabel wrote:
On 2025-08-14 16:22, Rik Kabel wrote:
On 2025-08-14 02:56, Hans Hagen via ntg-context wrote:
in supp-box.mkxl line 2792 you can try to replace \hbox by \vpack
\setbox\b_syst_boxes\vpack{\expand\everypreroll#1}%
(i'm not sure about side effects on other usage)
First, thank you for the quick fix. That indeed does the job for this document.
I am interested to know why the problem occurred only with interaction active.
I also am wary of using \vskip (given the warning in the wiki) and would like to know if there is some variant of \blank that will do the job, or some other work-around in my example that would make it unnecessary.
it has to do with an (experimental) option where we try to intercept out-of-order material (like footnotes) inorder to make sure that they are less interfering in tagged pdf (we try to predict and act on possible side effects) ... to boring to explain in detail in that perspective we also noted that nested notes could be a issue so there was a fix for that but maybe it has other side effects
And I was took quick to say it is good. It compiles, but there are significant differences in labels between interaction start and stop.
I will try to create a good demonstration tomorrow.
ok Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 2025-08-15 02:40, Hans Hagen via ntg-context wrote:
it has to do with an (experimental) option where we try to intercept out-of-order material (like footnotes) inorder to make sure that they are less interfering in tagged pdf (we try to predict and act on possible side effects) ... to boring to explain in detail
in that perspective we also noted that nested notes could be a issue so there was a fix for that but maybe it has other side effects
Ahh! That is just what is happening here. New MWE: \setupinteraction [state=start] \setupnotation[endnote][numbercommand=] \definelabel[Qi][text={\hbox to 15pt}, alternative=inright] \startbuffer[fn] \Qi \stopbuffer \starttext \Qi Between here\par aaa\endnote{xxx\getbuffer[fn]}\Qi and here \placenotes[endnote] \stoptext -- Rik
On 2025-08-15 13:35, Rik Kabel wrote:
On 2025-08-15 02:40, Hans Hagen via ntg-context wrote:
it has to do with an (experimental) option where we try to intercept out-of-order material (like footnotes) inorder to make sure that they are less interfering in tagged pdf (we try to predict and act on possible side effects) ... to boring to explain in detail
in that perspective we also noted that nested notes could be a issue so there was a fix for that but maybe it has other side effects
This is still a problem. Here is a new example, perhaps it will shed more light on the problem. \setupinteraction [state=start] \setuptagging [state=start] \setuppapersize [A6] \setupnote [endnote] [location=text] \definelabel[Q] \startbuffer[fn:1] \Q\ should be 3, then 4, then 5 \stopbuffer \starttext \contextversion \\ \Q something\endnote{\getbuffer[fn:1]} something\endnote{\getbuffer[fn:1]} something\endnote{\getbuffer[fn:1]} \Q \ should be label 2 \placenotes[endnote] \stoptext -- Rik
participants (2)
-
Hans Hagen -
Rik Kabel