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

Weird errors when there are two misc bib entries from the same author #530

Open
Pusnow opened this issue Apr 29, 2024 · 4 comments
Open

Comments

@Pusnow
Copy link

Pusnow commented Apr 29, 2024

I have encountered weird errors when there are two misc bib entries from the same author.
It seems a bug in ACM-Reference-Format.bst file.

main.tex:

\documentclass[sigplan]{acmart}
\begin{document}
\cite{aa,bb} % --> citing only aa (\cite{aa}) does not make an error
\bibliographystyle{ACM-Reference-Format} % --> changing to plain does not make an error
\bibliography{main}
\end{document}

main.bib:

@misc{aa,
title = {aa},
author = {aa},
note = "\url{https://aa.org}"
}
@misc{bb,
title = {bb},
author = {aa},
note = "\url{https://bb.org}"
}

Error message:

! Missing = inserted for \ifnum.
<to be read again> 
                   n
l.3 \cite{aa,bb}
                
I was expecting to see `<', `=', or `>'. Didn't.

! Missing number, treated as zero.
<to be read again> 
                   n
l.3 \cite{aa,bb}
                
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing = inserted for \ifnum.
<to be read again> 
                   n
l.3 \cite{aa,bb}
                
I was expecting to see `<', `=', or `>'. Didn't.

! Missing number, treated as zero.
<to be read again> 
                   n
l.3 \cite{aa,bb}

...
@mofanv
Copy link

mofanv commented Jun 8, 2024

seems issue here. Very weird

@akosthekiss
Copy link

I am experiencing a similar issue with @online entries. Not specifying the year field seems to be a trigger. In that case, the bibliography style fills in [n.\,d.] at several places (functions format.year, output.year.check, calc.basic.label, and calc.label), which seems to make things fragile somewhere (my guess is somewhere around the labels, but that is not validated). If I manually specify year = {[n.\,d.]}, in the entries, the error is gone.

@Bulgy404
Copy link

Hey, I changed my references import from BibLateX to BibTex - that fixed the issue. I am using the Overleaf Premium function where you can directly import your references from Zotero. Maybe that helps.

@EugenioMoro
Copy link

I have had the same issue. I could resolve by adding the missing year = {[n.\,d.]}, as @akosthekiss suggested

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

5 participants