-
Notifications
You must be signed in to change notification settings - Fork 164
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
incorrect citation output with biblatex and bibtex8 backend #1231
Comments
Same issue for me for the same setup. As for a title being printed instead of authors, that's a known behavior (see sec. 2.3.2):
For some reason, the https://github.com/plk/biblatex/blob/v3.17/tex/latex/biblatex/cbx/authoryear.cbx#L10-L18 Comparing the |
@xymaxim: Thank you for confirming the bug and for the investigation. Can you elaborate on how that workaround with |
@KonradHoeffner Here is below an example of the new \documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=bibtex8,hyperref=true,maxcitenames=2]{biblatex}
\usepackage{hyperref}
\usepackage{citeall}
\addbibresource{\jobname.bib}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\renewcommand*{\finalnamedelim}{\addspace\&\space}
\DeclareNameFormat{only-family}{%
\usebibmacro{name:family}{\namepartfamily}{}{}{}
\usebibmacro{name:andothers}}
\newbibmacro*{authororeditor}{%
{\ifnameundef{author}
{\printnames[only-family]{editor}}
{\printnames[only-family]{author}}}}
\DeclareCiteCommand{\mycite}[\mkbibparens]
{\usebibmacro{prenote}}%
{\printtext[bibhyperref]{%
\usebibmacro{authororeditor}%
\setunit{\nameyeardelim}%
\printfield{year}}}
{\multicitedelim}%
{\usebibmacro{postnote}}
\begin{document}
\citeall[\mycite]
\printbibliography
\end{document} Given the sample BibTeX items: \usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{one-author,
title = {Article Title},
author = {First, A.},
journal = {Journal Title},
year = {2024},
}
@article{two-authors,
title = {Article Title},
author = {First, A. and Second, B.},
journal = {Journal Title},
year = {2024},
}
@article{three-authors,
title = {Article Title},
author = {First, A. and Second, B and Third, C.},
journal = {Journal Title},
year = {2024},
}
@book{only-editor,
title = {Book Title},
editor = {Editor, A.},
publisher = {Publisher},
year = 2024
}
\end{filecontents} It outputs:
Not the cleanest solution and doesn't cover all cases, but I hope it may give you an idea to adapt as per your need. |
When I compile the following document with pdflatex v3.141592653-2.6-1.40.26 and bibtex or
latexmk -pdf
v4.83 using texlive 2024.2-3, the citation gets correctly written asLastname and Anotherlastname 2024
.However when I use tectonic v0.15.0-2 instead (default pacman Arch Linux package "tectonic"), I get the incorrect output
“Article Title” 2024
.The text was updated successfully, but these errors were encountered: