Menu

#89 Newest \DocumentMetadata overwrites \@startsection

KOMA-Script 4
open
Marei
14 hours ago
2025-08-10
cookie170
No

up-to-date texlive, with the new luatex dev version, this mwe throws warnings:

\DocumentMetadata{lang=de, pdfversion=1.7, pdfstandard=A-2b}
\documentclass{scrartcl}

\usepackage{fontspec, blindtext}

\begin{document}
\blinddocument
\end{document}
% Local Variables:
% TeX-engine: Lua-dev
% End:

Warnings like:

LaTeX2e <2025-11-01> pre-release-1 (develop 2025-8-10 branch)
L3 programming layer <2025-07-20>
...
Class scrartcl Warning: \@startsection' has been changed. (scrartcl) scrartcl needs it's own definition of\@startsection'
(scrartcl) to provide extended features for the optional argument
(scrartcl) of \section' etc. (scrartcl) Generally it defines\@startsection' completely new
(scrartcl) to achieve this. Because of the unexpected definition
(scrartcl) an alternative approach will be used.
(scrartcl) If this fails and if there isn't a new release of
(scrartcl) KOMA-Script that fixes the problem, please
(scrartcl) send a report to the KOMA-Script author.
(scrartcl) Note, that this alternative approach does not
(scrartcl) execute the elements of do-hooks:
(scrartcl) - heading/postinit', (scrartcl) -heading/branch/star',
(scrartcl) - heading/branch/nostar', (scrartcl) and does always userunin=bysign' and
(scrartcl) `afterindent=bysign'.

Class scrartcl Warning: Unexpected definition of \@sect!
(scrartcl) Please send information about this to
(scrartcl) the KOMA-Script maintainer!
(scrartcl) Maybe LaTeX will be broken by the redefinition
(scrartcl) of \@sect on input line 3549.

Class scrartcl Warning: Unexpected definition of \@ssect!
(scrartcl) Please send information about this to
(scrartcl) the KOMA-Script maintainer!
(scrartcl) Maybe LaTeX will be broken by the redefinition
(scrartcl) of \@ssect on input line 3745.

Class scrartcl Warning: Unexpected definition of \@xsect!
(scrartcl) Please send information about this to
(scrartcl) the KOMA-Script maintainer!
(scrartcl) Maybe LaTeX will be broken by the redefinition
(scrartcl) of \@xsect on input line 3826.

Removing the first line solves the issue.

Discussion

  • Markus Kohm

    Markus Kohm - 2025-08-12
    • labels: --> feature request
     
  • Markus Kohm

    Markus Kohm - 2025-08-12

    Thank you for the report. But I cannot promise to change it until the next Milestone. Support for all \DocumentMetadata features is currently delayed and classified as new features.

     
  • Markus Kohm

    Markus Kohm - 14 hours ago
    • labels: feature request --> feature request, tagging
    • assigned_to: Marei
    • Milestone: KOMA-Script 3.46 --> KOMA-Script 4
     
  • Markus Kohm

    Markus Kohm - 14 hours ago

    pdfstandard=A-2b activates tagging and as explained here this is currently not supported with KOMA-Script. Therefore I've changed the Milestone.

     
  • Markus Kohm

    Markus Kohm - 14 hours ago
    • labels: feature request, tagging --> feature request, tagged PDF
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.