Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile with quantumarticle.cls #1356

Open
araujoms opened this issue May 1, 2024 · 5 comments
Open

Can't compile with quantumarticle.cls #1356

araujoms opened this issue May 1, 2024 · 5 comments

Comments

@araujoms
Copy link

araujoms commented May 1, 2024

If I try to compile with the document class quantumarticle, which is the default class for the journal Quantum, I get the cryptic error

! Package biblatex Error: Patching \addtocontents failed.

This is a regression, as it used to work in TeXLive 2020. I upgraded to TeXLive 2023 (together with the arXiv), and now it doesn't.

MWE:

\documentclass[a4paper]{quantumarticle}
\pdfoutput=1
\usepackage{hyperref}
\usepackage{biblatex}

\begin{document}
\title{title}
\maketitle
\end{document}
moewew added a commit that referenced this issue May 2, 2024
@moewew
Copy link
Collaborator

moewew commented May 2, 2024

Should hopefully be fixed in ac2456c.

The class loads bits of RevTeX and thus has a non-standard definition of \addtocontents that we cannot patch. The fix adds code to deal also with RevTeX's definition of \addtocontents.

@araujoms
Copy link
Author

araujoms commented May 2, 2024

This specific problem was fixed, but another appeared: the numbering of references doesn't work (with the style phys), they all get the number 0. I tried with both the bibtex and biber backends.

@moewew
Copy link
Collaborator

moewew commented May 2, 2024

Hmmm, ... fascinating. Somehow ltxgrid and biblatex clash so that the .aux file is closed before we can write all our data to that file. I'll see if I can isolate the problem more precisely.

@cgogolin
Copy link

Am an one of the developers of quantumarticle. Thanks for looking into this! Is there anything we could do on our end to make resolving this easier?

@moewew
Copy link
Collaborator

moewew commented Jul 15, 2024

@cgogolin Thanks for getting in touch. I'm not sure there is any immediate relief you could offer (because I assume you need ltxgrid and can't just drop it). But if you want to, you can help us figure out why ltxgrid prematurely closes the .aux for biblatex.

I haven't looked at this in the last weeks, but when I investigated the issue after the initial report it seemed pretty tricky. So I don't think I can promise any progress in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants