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

Both first and last author names appear in references regardless of bibliography style #523

Open
stsievert opened this issue Aug 22, 2019 · 3 comments
Labels

Comments

@stsievert
Copy link

\bibliographystyle{abbrvnat} has only shows the author's first initial and last name: https://www.overleaf.com/learn/latex/Natbib_bibliography_styles

However, even if I select this bibliography style, both author names are always shown.

Here's a minimal working example:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage[square, numbers]{natbib}
\bibliographystyle{abbrvnat}

\begin{document}
Here are some hyperparameter optimization papers:
\cite{li2016hyperband}.

\cite{sievert2019better}


\bibliography{refs}{}
\bibliographystyle{plain}

\end{document}
# refs.bib
@InProceedings{ sievert2019better,
  author    = { {S}cott {S}ievert and {T}om {A}ugspurger and {M}atthew {R}ocklin },
  title     = { {B}etter and faster hyperparameter optimization with {D}ask },
  booktitle = { {P}roceedings of the 18th {P}ython in {S}cience {C}onference },
  pages     = { 118 - 125 },
  year      = { 2019 },
  editor    = { {C}hris {C}alloway and {D}avid {L}ippa and {D}illon {N}iederhut and {D}avid {S}hupe },
  doi       = { 10.25080/Majora-7ddc1dd1-011 }
}

@article{li2016hyperband,
  title={Hyperband: A novel bandit-based approach to hyperparameter optimization},
  author={Li, Lisha and Jamieson, Kevin and DeSalvo, Giulia and Rostamizadeh, Afshin and Talwalkar, Ameet},
  journal={arXiv preprint arXiv:1603.06560},
  year={2016}
}

Output:
Screen Shot 2019-08-22 at 2 19 20 PM

@stsievert
Copy link
Author

The references also look significantly different when [square, numbers] isn't passed to natbib:
Screen Shot 2019-08-22 at 2 25 05 PM

@stsievert
Copy link
Author

The braces in the Bibtex file are causing this.

If I change the refs.bib file to remove the braces in the author field, I get the correct output:
Screen Shot 2019-08-22 at 2 26 27 PM

The changes I made were in refs.bib and are

-  author    = { {S}cott {S}ievert and {T}om {A}ugspurger and {M}atthew {R}ocklin },
+  author    = { Scott Sievert and Tom Augspurger and Matthew Rocklin },

@deniederhut
Copy link
Member

🤔

I'm guessing from the commit history that bibtex was messing with the capitalization of people's names, but this was a bit before my time. @stefanv do remember the context around 8e6a996?

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

No branches or pull requests

2 participants