latex3 / pdfresources

LaTeX PDF resource management
LaTeX Project Public License v1.3c
22 stars 5 forks source link

\DocumentMetadata interferes with package option parsing #47

Closed drs-p closed 7 months ago

drs-p commented 1 year ago

Dear all,

This code:

\DocumentMetadata{
}
\documentclass[a4paper]{article}
\DeclareSymbolFont{operators}{OT1}{cmr}{bx}{n}
\usepackage[no-math]{fontspec}
\begin{document}
\[
    2a + 3b = 4c
\]
\end{document}

fails on Lualatex: fontspec ignores the no-math option and instead resets the maths setup, so that the digits in the equation are printed in regular weight rather than bold. However:

Since this error only occurs on Luatex and only with pdfmanagement-testphase, I thought its cause might be in the fontspec-luatex-tmp-ltx.sty file; but the error persists even when I overwrite that file with the original fontspec-luatex.sty.

This is on Ubuntu 20.04 with an up-to-date TL 2022.

Best regards, Marc

u-fischer commented 1 year ago

hm, yes, it is a bug. And the reason is the file substituation with fontspec-luatex-tmp-ltx, not the content but the substituation itself breaks the options. I will correct that, as a workaround use \DocumentMetadata{debug={firstaidoff=fontspec}}.

u-fischer commented 7 months ago

this has been resolved in version 2023-03-09, 0.95x