On 10/11/2025 11:04 PM, Matthias Weber wrote:
Dear All,
I am sorry to bring up tagging again. \startfiguretext ..
\stopfiguretext is causing trouble.
The MWE below passes VeraPDF with \dorecurse{3} but not \dorecurse{2}
\setupbackend[format=pdf/ua-2]
\setuptagging
[state=start,
preset=basic,
level=2,
option=interaction]
\setupexternalfigures[location=default]
\starttext
\dorecurse{3}
{
\startfiguretext
[right]
[]
{}
{\externalfigure[cow.pdf]
[width=.3\textwidth,
alternativetext={A Cow}]}
\input tufte
\stopfiguretext
}
\stoptext
And if you use only two \startfiguretext’s,
the next \startsection will cause VeraPDF to throw a fit, too.
Vera is ominous and useless as ever:
*Rule* *Status*
*Specification: ISO 32005:2023, Clause: Table 5. StructTreeRoot-Aside,
Test number: 1*
StructTreeRoot shall not contain <Aside> *Failed*
1 occurrences Show <file:///private/var/folders/n_/
llyvrh957hvgp0lgrx5twqnc0000gn/T/veraPDF-
tempHTMLReport5833202410029255256.html#>
Specification: ISO 14289-2:2024, Clause: 8.2.5.2, Test number: 1
<https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFUA-
Part-2-rules#rule-8252-1>
The structure tree root shall contain a single Document structure
element as its only child, as specified in ISO 32000-2:2020, Annex L and
ISO/TS 32005 *Failed*
1 occurrences
and in the second case with a section:
*Rule* *Status*
Specification: ISO 14289-2:2024, Clause: 8.2.5.2, Test number: 1
<https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFUA-
Part-2-rules#rule-8252-1>
The structure tree root shall contain a single Document structure
element as its only child, as specified in ISO 32000-2:2020, Annex L and
ISO/TS 32005 *Failed*
1 occurrences Show <file:///private/var/folders/n_/
llyvrh957hvgp0lgrx5twqnc0000gn/T/veraPDF-
tempHTMLReport7762463842260619002.html#>
*Specification: ISO 32005:2023, Clause: Table 5. StructTreeRoot-Sect,
Test number: 1*
StructTreeRoot shall not contain <Sect> *Failed*
1 occurrences
That’s just fyi, I can work around this.
If someone has experience with combining smallish figures and text in
ConTeXt that avoids \startfiguretext and has time to send a simple example,
I would be delighted to play with it.
line 1880 in strc-flt.mklx
\box\floatbox
% \dostoptagged % left-over
\blank[\rootfloatparameter\c!spaceafter]%
btw, there would be a message on the console wrt structure at the end of
your run in case there is something bad (could be a missing \stop... or
ommision in tabulate or ...)
wrt: > Vera is ominous and useless as ever:
indeed so that is why we wrapped it
mtxrun --script pdf --check foo.pdf
is what we use instead and it might be less annoying because we filter
some (and we can extend it with more features if needed)
there's also --structure which avoids the test
(anyway tagging can be turned off till the last moment so gain some
performance; i might add a mode some day, but so far i never tagged)
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________