Natbib: maximum number of authors in bibliography - latex

I am using natbib to set up the bibliography in a latex document.
I would like citations to appear in the text as:
Author 1 et al., 2022
In the bibliography, I would like the citation to appear with a maximum of three authors. For example:
Author 1, Author 2, Author 3, et al. 2022, journal, page, number
I am currently using:
\usepackage[]{natbib}
...
...
\bibliographystyle{plainnat}
\bibliography{literatur}
which writes the citation as I want, but writes all the authors in the bibliography.
Is there a simple way to have max three authors in the bibliography with natbib?
Or possible alternatives with bibtex?

Here an alternative using biblatex (make sure to compile with biber instead of bibtex)
\documentclass{article}
\usepackage[style=authoryear,minbibnames=3,natbib=true]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{murray}
\printbibliography
\end{document}

Related

Latex Figures side-by-side in AR document class

I am currently working on formatting an article for publication in Annual Reviews journal. They provide the class file that suppose to make the process easier.
The file could be downloaded here: https://www.annualreviews.org/pb-assets/Authors%20Assets/AR-Style1-1653591280420.zip
Here is the MRE:
\documentclass{ar-1col-S2O}
\usepackage[caption=false]{subfig}
% Document starts
\begin{document}
%Example of a Figure
\section{ELEMENTS\ OF\ THE\ MANUSCRIPT}
\subsection{Figures}Figures should be cited in the main text in chronological order. This is dummy text with a citation to the first figure (\textbf{Figure \ref{fig:sub_a}}). Citations to \textbf{Figure \ref{fig:sub}} (and other figures) will be bold.
\begin{figure}
\subfloat[Figure A]{\includegraphics[width=0.4\textwidth]{example-image-a}\label{fig:sub_a}}\quad
\subfloat[Figure A]{\includegraphics[width=0.4\textwidth]{example-image-b}\label{fig:sub_b}}
\caption{Combined figure}\label{fig:sub}
\end{figure}
\end{document}
Which gives me this:
And I need it to look like this (side-by-side with bold panel marker in the corner):
Any help or suggestions are welcome. Thank you.
\documentclass{ar-1col-S2O}
\usepackage[caption=false]{subfig}
% Document starts
\begin{document}
%Example of a Figure
\section{ELEMENTS\ OF\ THE\ MANUSCRIPT}
\subsection{Figures}Figures should be cited in the main text in chronological order. This is dummy text with a citation to the first figure (\textbf{Figure \ref{fig:sub_a}}). Citations to \textbf{Figure \ref{fig:sub}} (and other figures) will be bold.
\begin{figure}
\begin{minipage}{.4\textwidth}
\subfloat[Figure A]{\includegraphics[width=\textwidth]{example-image-a}\label{fig:sub_a}}
\end{minipage}
\hfill
\begin{minipage}{.4\textwidth}
\subfloat[Figure A]{\includegraphics[width=\textwidth]{example-image-b}\label{fig:sub_b}}
\end{minipage}
\caption{Combined figure}\label{fig:sub}
\end{figure}
\end{document}

Use Biblatex to get an overview of the keywords from my sources

Hi I'm using LaTeX to write a literature review and BibLaTeX to print my sources and bibliography.
I would like to get an overview of all the keywords used in the articles I have gathered so far.
Since I have them all in a .bib file I figured that there probably is some easy way to get all the keywords from there that utilises BibLaTeX and the BibTeX-format of the file with the info.
From what I can gather BibLaTeX has the support for using keywords to sort the bibliography, or include/exclude certain sources based on keywords, but I can't find if or how I can print other information from the .bib than the full source. I've found \printfield in the documentation but it's not recognised when I use it in my document, even though the \textcite and the \printbibliography works fine so I'm guessing I'm using it wrong. Here's how I've tried to use it:
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{sample.bib}
\title{Test}
\author{Me}
\begin{document}
\maketitle
\section*{Citation examples}
\parencite{Smith:2012qr}.
\printfield{keywords}
\printbibliography
\end{document}
I hope my question is clear enough.
Thank you.
Based on this question https://tex.stackexchange.com/questions/332292/listing-indexing-and-linking-keywords-in-biblatex you could use one of the packages for index creation, e.g. imakeidx:
\documentclass{article}
\begin{filecontents*}[overwrite]{\jobname.bib}
#article{Padial2010,
title={The Integrative Future Of Taxonomy},
author={Padial, J.M. and Miralles, A. and la Riva, I.D. and Vences, M.},
journal={Frontiers in Zoology},
year={2010},
volume={7},
number={16},
pages={1--14},
note={Cited by 4},
abstract={Text},
publisher={Some Publishing},
doi={10.1186/1742-9994-7-16},
issn={1742-9994},
file={./2004_Jensen_Homecoming.pdf},
keywords={biology, taxonomy},
}
#article{Padissal2010,
title={The Integrative Future Of Taxonomy},
author={Padial, J.M. and Miralles, A. and la Riva, I.D. and Vences, M.},
journal={Frontiers in Zoology},
year={2010},
volume={7},
number={16},
pages={1--14},
note={Cited by 4},
abstract={Text},
publisher={Some Publishing},
doi={10.1186/1742-9994-7-16},
issn={1742-9994},
file={./2004_Jensen_Homecoming.pdf},
keywords={math, taxonomy},
}
\end{filecontents*}
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\usepackage{imakeidx}
\makeindex[name=keywords, title=List of Keywords]
\DeclareIndexFieldFormat{keywords}{\forcsvfield{\index[keywords]}{keywords}}
\AtEveryBibitem{\indexfield{keywords}}
\begin{document}
\nocite{*}
\printbibliography
\printindex[keywords]
\end{document}

Changing citation language in latex

I am trying to include citations APA style in my latex document which is written in dutch. However, the citations appear as
author e.a. (year)
instead of
author et al. (year)
The first is probably some translation, but in dutch is is very common to still use et al. How do I change the citations in text to et al.?
\documentclass[dutch]{article}
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage{csquotes}
\usepackage[style=apa, backend=bibtex]{biblatex}
\addbibresource{Refrences.bib}
\begin{document}
\begin{otherlanguage}{dutch}
Dit is een test. \cite{Schleigh2015}. \cite{Slater2015}
\bibliography{bibliography}
\printbibliography
\end{otherlanguage}
\end{document}
output:
Dit is een test. Schleigh e.a., 2015. Slater e.a., 2015
Also, i just discoverd that apperently this apa style does not print an "&" when more than three authors are present. Instead in prints the word "and", which is not apa.
Author1, Author2 AND Author3
which should be:
Author1, Author2 & Author3
Luckily you use the biblatex package, this makes it easy to adjust the string:
\documentclass[dutch]{article}
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage{csquotes}
\usepackage[style=apa, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\DefineBibliographyStrings{dutch}{
andothers = {et\addabbrvspace al\adddot},
andmore = {et\addabbrvspace al\adddot},
}
\begin{document}
Dit is een test. \cite{aksin}.
\printbibliography
\end{document}
Some other comments about your code:
apa styles requires the biber backend. With your attempt to use it with biblatex, you should have gotten an error messages telling you that. Please do not ignore error messages
your are mixing syntaxes from two different bibliography tools. \addbibresource{...} and \printbibliography are correct syntax for biblatex. \bibliography{bibliography} is not.
with \usepackage[dutch]{babel} you already changed the main language of your document to dutch, \begin{otherlanguage}{dutch}...\end{otherlanguage} is not necessary

LaTEX: changing the format of citation in References to list authors' last name first

It seems the format in the Reference section is a little off! Can you please show me how to format the citation to list authors' last name first?
Thanks all.
Here is the current form in the Reference section:
C. B. Grimmond, A. Isard, and J. Belding. Development and evaluation of
continuously weighing mini-lysimeters. Agricultural and Forest Meteorology,
62(3-4):205{218, 1992.
I use BibDesk to organize the citation database. Here is what I am using in the TeXstudio:
\documentclass[]{article}
\usepackage[pdftex]{graphicx}
\usepackage[round]{natbib}
\begin{document}
\bibliographystyle{plainnat}
\bibliography{/Users/me/Citation/citation}
\end{document}
You can try to change the Bibtex Bibliography style to 'acm' or 'apalike'
\bibliographystyle{stylename}
\bibliography{bibfile}
Read more about other styles: https://www.sharelatex.com/learn/Bibtex_bibliography_styles

Add journal name to biblatex references, journal names not showing up

I'm using biblatex in a beamer presentation so that I can use the \footcite command. The problem is that bibliography styles handling in biblatex don't look quite straighforward and none of the default styles will actually work for me since they do not show Journal references.
I'm looking for something similar as .bst files for Bibtex, since I can have JPC and PRL, PR bibliography styles. I surfed the internet and this stackexchange but couldn't find a proper solution. Could somebody provide me a working example with a style which shows: Authors, Year, Journal?
Best regards
The following code (authoryear style) does not show journal. Alphabetic, numeric etc only produces blank references.
MWE:
\documentclass[8pt mathserif]{beamer}
\usepackage{beamerthemesplit}
\usepackage{latexsym}
\usepackage{eurosym}
\usepackage[english]{babel}
\usepackage{ae,aecompl}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[style=authoryear]{biblatex}
\addbibresource{library.bib}
\usetheme{Madrid}
\title[]{Title}
\author[]{author}
\institute{MSE # NTU\\
The Zhao Research Group\\
}
\date[]{Thursday 31, July 2014}
\begin{document}
\section{Review of interesting phenomenology}
\begin{frame}[allowframebreaks noframenumbering]{Polaron Transformation}
\begin{itemize}
\item The original theory was developed by Munn-Silbey{\tiny \footcite{Silbey1980}\footcite{Munn1985}\footcite{Munn1985a}} and further refined by Zhao et al. \footcite{JCP1994OntheMunn}\footcite{Chen2011}
\end{itemize}
\end{frame}
\end{document}
And the library.bib file only contains entries such as the one referenced:
#article{Silbey1980,
author = {Silbey, R. and Munn, R. W.},
doi = {10.1063/1.439425},
file = {:Users/Caco/Documents/Mendeley Desktop/General theory of electronic transport in molecular crystals. I. Local linear electron–phonon coupling R. Silbey and R. W. Munn.pdf:pdf},
issn = {00219606},
journal = {The Journal of Chemical Physics},
number = {4},
pages = {2763},
title = {{General theory of electronic transport in molecular crystals. I. Local linear electron–phonon coupling}},
url = {http://scitation.aip.org/content/aip/journal/jcp/72/4/10.1063/1.439425},
volume = {72},
year = {1980}
}

Resources