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

Stray comma in @misc bibliography entries #97

Closed
GCE-Galotta opened this issue Jun 10, 2022 · 6 comments
Closed

Stray comma in @misc bibliography entries #97

GCE-Galotta opened this issue Jun 10, 2022 · 6 comments

Comments

@GCE-Galotta
Copy link

Citing a @misc reference causes a stray comma before the title in the bibliography. E.g. this reference

@misc{https://doi.org/10.48550/arxiv.1912.07756,
  doi = {10.48550/ARXIV.1912.07756},
  note = {\url{https://arxiv.org/abs/1912.07756} [2022-04-01]},
  url = {https://arxiv.org/abs/1912.07756},
  author = {Nanni, Loris and Maguolo, Gianluca and Paci, Michelangelo},
  title = {Data augmentation approaches for improving animal audio classification},
  keywords = {Machine Learning (cs.LG), Sound (cs.SD), Audio and Speech Processing (eess.AS), Machine Learning (stat.ML), FOS: Computer and information sciences, FOS: Computer and information sciences, FOS: Electrical engineering, electronic engineering, information engineering, FOS: Electrical engineering, electronic engineering, information engineering},
  publisher = {arXiv},
  year = {2019},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

generates this result with a comma before "Data augmentation..."

[NMP19] Nanni, Loris; Maguolo, Gianluca; Paci, Michelangelo: , Data augmentation approaches for improving animal audio classification, 2019. https://arxiv.org/abs/1912.07756 [2022-04-01].

@sieversMartin
Copy link
Member

Thanks for the report. I can not reproduce the problem using an up-to-date TeX Live version. Are you using biblatex-lni?
Could you please provide a minimal working example?

@GCE-Galotta
Copy link
Author

GCE-Galotta commented Jun 10, 2022

https://www.overleaf.com/9487574534nvndbtwgsvng

I used the lni-author-template and just added a bibliography.bib.

lni-author-template.tex

% !TeX encoding = UTF-8
% !TeX program = pdflatex
% !BIB program = bibtex

%%% Um einen Artikel auf deutsch zu schreiben, genügt es die Klasse ohne
%%% Parameter zu laden.
\documentclass[]{lni}
%%% To write an article in English, please use the option ``english'' in order
%%% to get the correct hyphenation patterns and terms.
%%% \documentclass[english]{class}
%%
\begin{document}
%%% Mehrere Autoren werden durch \and voneinander getrennt.
%%% Die Fußnote enthält die Adresse sowie eine E-Mail-Adresse.
%%% Das optionale Argument (sofern angegeben) wird für die Kopfzeile verwendet.
\title[Ein Kurztitel]{Ein sehr langer Titel über mehrere Zeilen mit sehr vielen
Worten und noch mehr Buchstaben}
%%%\subtitle{Untertitel / Subtitle} % if needed
\author[Vorname1 Nachname1 \and Firstname2 Lastname2]
{Vorname1 Nachname1\footnote{Universität, Abteilung, Straße, Postleitzahl Ort,
Land \email{emailaddress@author1}} \and
Firstname2 Lastname2\footnote{University, Department, Address, Country
\email{emailaddress@author2}}}
\startpage{11} % Beginn der Seitenzählung für diesen Beitrag / Start page
\editor{Herausgeber et al.} % Names of Editors
\booktitle{Name-der-Konferenz} % Name of book title
\yearofpublication{2017}
%%%\lnidoi{18.18420/provided-by-editor-02} % if known
\maketitle

\begin{abstract}
This is a brief overview of the paper, which should be 70 to 150 words long and
include the most relevant points. This has to be a single paragraph.
\end{abstract}
\begin{keywords}
Schlagwort1 \and Schlagwort2 %Keyword1 \and Keyword2
\end{keywords}
%%% Beginn des Artikeltexts
\section{Überschrift/Heading}

\cite{https://doi.org/10.48550/arxiv.1912.07756}

%%% Angabe der .bib-Datei (ohne Endung) / State .bib file (for BibTeX usage)
\bibliography{bibliography}

\end{document}

my bibliography.bib

@misc{https://doi.org/10.48550/arxiv.1912.07756,
  doi = {10.48550/ARXIV.1912.07756},
  note = {\url{https://arxiv.org/abs/1912.07756} [2022-04-01]},
  url = {https://arxiv.org/abs/1912.07756},
  author = {Nanni, Loris and Maguolo, Gianluca and Paci, Michelangelo},
  title = {Data augmentation approaches for improving animal audio classification},
  keywords = {Machine Learning (cs.LG), Sound (cs.SD), Audio and Speech Processing (eess.AS), Machine Learning (stat.ML), FOS: Computer and information sciences, FOS: Computer and information sciences, FOS: Electrical engineering, electronic engineering, information engineering, FOS: Electrical engineering, electronic engineering, information engineering},
  publisher = {arXiv},
  year = {2019},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

@sieversMartin
Copy link
Member

Okay, a BibTeX problem then. I'll check. In general it may be a good idea to switch to biblatex-lni which is supported with the biblatex option. Check the documentation for more details.

@GCE-Galotta
Copy link
Author

Yes, this is only in bibtex, not biblatex. If it is recommended to use biblatex, shouldn't it be the default setting? Sorry, I'm not that deep into the subject of bib(la)tex.

@sieversMartin
Copy link
Member

Well, that class has some history :-) Therefore we haven't switched to biblatex as the default yet.

Regarding your issue, I think I found a solution.

sieversMartin added a commit that referenced this issue Jun 10, 2022
@GCE-Galotta
Copy link
Author

Yes, that fixes it. Thank you! Will use biblatex from now on, however.

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

2 participants