latex3 / tagging-project

Issues related to the tagging project
https://latex3.github.io/tagging-project/
LaTeX Project Public License v1.3c
24 stars 7 forks source link

csquotes package incompatible with phase-II and phase-III #3

Open AlphaJack opened 1 year ago

AlphaJack commented 1 year ago

I am using TeX Live 2023 (packages updates are frozen to March 2023).

I cannot compile a document that loads csquotes if I set testphase=phase-II or testphase=phase-III in \DocumentMetadata{}

I am compiling the following MWE twice with lualatex --synctex=1 --interaction=nonstopmode --file-line-error csquotes.tex:

\DocumentMetadata{
 % does not work
 %testphase=phase-III,
 testphase=phase-II,
 % works
 %testphase=phase-I,
 pdfversion=2.0,
 pdfstandard=A-4
}

\documentclass[a4paper,10pt]{article}

\usepackage{csquotes}

\begin{document}

\section{First section}
Section text

\blockquote{Random sentence}

\end{document}

Output for phase-II:

This is LuaHBTeX, Version 1.17.0 (TeX Live 2023/Arch Linux) 
 restricted system commands enabled.
(./csquotes.tex
LaTeX2e <2022-11-01> patch level 1
 L3 programming layer <2023-02-22>
(/usr/share/texmf-dist/tex/latex/latex-lab/documentmetadata-support.ltx
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphas
e.sty (/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty)
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphas
e.ltx (/usr/share/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.sty))))
 (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-luatex.def)
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-lu
atex.def (/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/l3ref-tmp.sty
)) (/usr/share/texmf-dist/tex/latex/latex-lab/phase-II-latex-lab-testphase.ltx
(/usr/share/texmf-dist/tex/latex/latex-lab/latex-lab-testphase-new-or.sty
(/usr/share/texmf-dist/tex/latex/latex-lab/latex-lab-footnotes.ltx))
(/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf.sty
(/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def)
(/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty)))
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid
.sty) (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx
.sty
Patching header in \@outputpage
Patching footer in \@outputpage
)
No file csquotes.aux.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)<<sRGB.icc>>

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_6_prop already 
defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \__tag_struct_output_prop_6:n 
already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_kids_6_seq alre
ady defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_object___tag/struct/6_
int already
(LaTeX)        defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_backend_object___tag/s
truct/6_int
(LaTeX)        already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_7_prop already 
defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \__tag_struct_output_prop_7:n 
already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_kids_7_seq alre
ady defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_object___tag/struct/7_
int already
(LaTeX)        defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_backend_object___tag/s
truct/7_int
(LaTeX)        already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./csquotes.aux))
(see the transcript file for additional information)
 422 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 2 glyph, 5 attribute, 49 glue_spec
, 5 attribute_list, 1 write nodes
   avail lists: 1:1,2:106,3:54,4:6,5:23,6:6,7:170,9:32,11:8
</usr/share/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf></usr/sha
re/texmf-dist/fonts/opentype/public/lm/lmroman12-bold.otf>
Output written on csquotes.pdf (1 page, 24727 bytes).
SyncTeX written on csquotes.synctex.gz.
Transcript written on csquotes.log.

Output for phase-III:

This is LuaHBTeX, Version 1.17.0 (TeX Live 2023/Arch Linux) 
 restricted system commands enabled.
(./csquotes.tex
LaTeX2e <2022-11-01> patch level 1
 L3 programming layer <2023-02-22>
(/usr/share/texmf-dist/tex/latex/latex-lab/documentmetadata-support.ltx
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphas
e.sty (/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty)
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphas
e.ltx (/usr/share/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.sty))))
 (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-luatex.def)
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-lu
atex.def (/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/l3ref-tmp.sty
))
(/usr/share/texmf-dist/tex/latex-dev/latex-lab/phase-III-latex-lab-testphase.lt
x (/usr/share/texmf-dist/tex/latex/latex-lab/phase-II-latex-lab-testphase.ltx
(/usr/share/texmf-dist/tex/latex/latex-lab/latex-lab-testphase-new-or.sty
(/usr/share/texmf-dist/tex/latex/latex-lab/latex-lab-footnotes.ltx))
(/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf.sty
(/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def)
(/usr/share/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty)))
(/usr/share/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-block-taggin
g.sty (/usr/share/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty))
(/usr/share/texmf-dist/tex/latex-dev/latex-lab/latex-lab-kernel-changes.sty
(/usr/share/texmf-dist/tex/generic/pdftex/glyphtounicode.tex)
(/usr/share/texmf-dist/tex/latex-dev/latex-lab/glyphtounicode-cmex.tex)))
(/usr/share/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec-tagging.
sty)
(/usr/share/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-toc-tagging.
sty))
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid
.sty) (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/usr/share/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx
.sty
Patching header in \@outputpage
Patching footer in \@outputpage
)
No file csquotes.aux.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)<<sRGB.icc>>

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_7_prop already 
defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \__tag_struct_output_prop_7:n 
already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_kids_7_seq alre
ady defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_object___tag/struct/7_
int already
(LaTeX)        defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_backend_object___tag/s
truct/7_int
(LaTeX)        already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_8_prop already 
defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \__tag_struct_output_prop_8:n 
already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \g__tag_struct_kids_8_seq alre
ady defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_object___tag/struct/8_
int already
(LaTeX)        defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

./csquotes.tex:20: LaTeX Error: Control sequence \c__pdf_backend_object___tag/s
truct/8_int
(LaTeX)        already defined.

For immediate help type H <return>.
 ...                                              

l.20 \blockquote{Random sentence}

[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./csquotes.aux))
(see the transcript file for additional information)
 437 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 2 glyph, 5 attribute, 52 glue_spec
, 5 attribute_list, 1 write nodes
   avail lists: 1:1,2:122,3:58,4:6,5:89,6:6,7:172,9:36,11:8
</usr/share/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf></usr/sha
re/texmf-dist/fonts/opentype/public/lm/lmroman12-bold.otf>
Output written on csquotes.pdf (1 page, 25198 bytes).
SyncTeX written on csquotes.synctex.gz.
Transcript written on csquotes.log.
u-fischer commented 1 year ago

I'm sorry but there is no easy fix. This is a long term issue. csquotes measures the length of the quote and manipulates \par and this confuses the structure. So you will have to avoid the blockquote command for now.

AlphaJack commented 12 months ago

Thank you. As you said the problem is just with \blockquote, \textquote and the displayquote environment work fine.