jspitz / biblatex-publist

BibLaTeX bibliography support for publication lists
40 stars 4 forks source link

Undefined control sequence error with biblatex v3.16 and TeX Live 2021 #30

Closed wagoner47 closed 3 years ago

wagoner47 commented 3 years ago

I found out about this package and was really hoping to use it for my CV. However, I'm having an issue with getting it to compile. I have created a minimal working example below.

\documentclass{article}
%\usepackage{biblatex}
\usepackage[bibstyle=publist]{biblatex}
\plauthorname[Erika L.]{Wagoner}

\begin{filecontents}[overwrite]{\jobname.bib}
@ARTICLE{Wagoner2020,
       author = {{Wagoner}, Erika L. and {Rozo}, Eduardo and {Fang}, Xiao and {Crocce}, Mart{\'\i}n and {Elvin-Poole}, Jack and {Weaverdyck}, Noah and {(DES Collaboration)}},
        title = "{Linear systematics mitigation in galaxy clustering in the Dark Energy Survey Year 1 Data}",
      journal = MNRAS,
     keywords = {methods: data analysis, methods: statistical, galaxies: photometry, dark energy, cosmology: observations, Astrophysics - Cosmology and Nongalactic Astrophysics},
         year = 2021,
        month = may,
       volume = {503},
       number = {3},
        pages = {4349-4362},
          doi = {10.1093/mnras/stab717},
archivePrefix = {arXiv},
       eprint = {2009.10854},
 primaryClass = {astro-ph.CO},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2021MNRAS.503.4349W},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

When I try to typeset this example, I end up with the following error message (truncated to only include one copy of each statement in the message):

! Undefined control sequence.
\GenericError  ...
                                                    #4  \errhelp \@err@     ...
l.96     \endentry

! Undefined control sequence.
\GenericError  ...
                                                  \let \@err@               ...
l.96     \endentry

! Undefined control sequence.
\GenericError  ...
                                                  \@empty \def \MessageBreak...
l.96     \endentry

! Undefined control sequence.
\GenericError  ...
                                                     \endgroup
l.96     \endentry

If I instead use the default bibstyle (by uncommenting line 2 and commenting lines 3&4), it compiles as expected.

I'm using TexLive 2021 with biblatex v3.16 and publist.bbx v1.21.

jspitz commented 3 years ago

The issue comes from a wrong input of <í> in BibTeX. This should be Mart\'{i}n rather than Mart{\'\i}n (since the U+301 combining accent is not available in utf8 inputenc, see https://tex.stackexchange.com/q/329239). In normal biblatex this only compiles since this name is not parsed there (outside the maxnames scope).

Try this (I also cleaned up some other things in the notation):

\documentclass{article}
%\usepackage{biblatex}
\usepackage[bibstyle=publist, maxnames=100]{biblatex}
\plauthorname[Erika L.]{Wagoner}

\begin{filecontents}[overwrite]{\jobname.bib}
@ARTICLE{Wagoner2020,
    author = {Wagoner, Erika L. and Rozo, Eduardo and Fang, Xiao and Crocce, Mart\'{i}n and Elvin-Poole, Jack and Weaverdyck, Noah and {(DES Collaboration)}},
    title = {Linear systematics mitigation in galaxy clustering in the Dark Energy Survey Year 1 Data},
    journal = MNRAS,
    keywords = {methods: data analysis, methods: statistical, galaxies: photometry, dark energy, cosmology: observations, Astrophysics - Cosmology and Nongalactic Astrophysics},
    year = 2021,
    month = may,
    volume = {503},
    number = {3},
    pages = {4349-4362},
    doi = {10.1093/mnras/stab717},
    archivePrefix = {arXiv},
    eprint = {2009.10854},
    primaryClass = {astro-ph.CO},
    adsurl = {https://ui.adsabs.harvard.edu/abs/2021MNRAS.503.4349W},
    adsnote = {Provided by the SAO/NASA Astrophysics Data System},
    }
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
    \nocite{*}
    \printbibliography
\end{document}

grafik

wagoner47 commented 3 years ago

Thank you! I never even realized it was wrong since I copied it from ADS!