latex3 / tagpdf

Tagging support code for LaTeX
59 stars 7 forks source link

Postscript error with basic test input and dvilualatex[-dev] + dvips + ps2pdf #96

Closed agrahn closed 5 months ago

agrahn commented 6 months ago

PS generated with dvilualatex or divlualatex-dev and dvips leads to this error upon ps2pdf:

error: /undefined in BMC
Operand stack:   --nostringval--   Artifact
...

No error, on the other hand, with latex+dvips.

Test input:

\DocumentMetadata{ testphase=phase-III }
\documentclass{article}
\usepackage[T1]{fontenc}

\begin{document}
  test
\end{document}
agrahn commented 6 months ago

The pdfmark syntax requires BMC, EMC and relatives with a leading slash (PS name objects):

[ tag /BMC pdfmark

In the dvilualatex+dvips generated PS, the slash is missing and they are seen as PS operators. But they are not defined. Hence the error.

u-fischer commented 5 months ago

This has been fixed.