I am using the natbib bibtex package with the [authoryear,compress] options and the bibliographystyle apalike. Is it possible to modify the natbib package options so that in-text citations are ordered according to the publication year?
The same question has already been asked here: Year-wise citation in text with apalike bibliography style
The accepted answer is only a workaround if your bibtex-keys in your \citep{} command are already in the correct order (you just avoid the sort&compress option), though. But if you want them ordered automatically according to the publication year (without manually providing the correct sorting in the \citep{} command, this answer does not solve the issue.
Is there a solution to this? The answer here (last paragraph) sounds a little bit as if this is not possible (?): https://tex.stackexchange.com/a/62411/112395
To give a worked example:
\documentclass[12pt,a4paper,hidelinks]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[authoryear,compress]{natbib} %Calls bibliography commands + Cite with author-year style (Harvard) instead of the numeric style. Let's just use compress instead of sort&compress: Note, however, that this means that the ordering of the in-text references follows the order you specified in the text (i. e., no automatical sorting is carried out!)
\begin{document}
%
\section*{References}
\label{sec:References}
\citep{Owen1876,
Berman1977,
Berman1987,
Berman1992,
Berman1993,
Berman1993_Seymouria,
Berman2003_Aspidosaurus,
Berman2004,
Berman2010_Fedexia,
Berman2011_Rotaryus,
Berman2014,
Berman2015}
\citep{Berman1977,
Berman1987,
Berman1992,
Berman1993,
Berman1993_Seymouria,
Berman2003_Aspidosaurus,
Berman2004,
Berman2010_Fedexia,
Berman2011_Rotaryus,
Berman2014,
Berman2015,
Owen1876}
\bibliographystyle{apalike}
\bibliography{myrefs}
\end{document}
with the following myref.bib file:
@Book{Owen1876,
title = {{Descriptive and illustrated catalogue of the Fossil Reptilia of South Africa in the collection of the British Museum}},
publisher = {British Museum (Natural History)},
year = {1876},
author = {Richard Owen},
address = {London, United Kingdom},
note = {88 pp.},
url = {http://gallica.bnf.fr/ark:/12148/bpt6k987042},
}
@Article{Berman1977,
author = {Berman, David S},
title = {{A new species of \textit{Dimetrodon} (Reptilia, Pelycosauria) from a non-deltaic facies in the Lower Permian of north-central New Mexico}},
journal = {Journal of Paleontology},
year = {1977},
volume = {51},
number = {1},
pages = {108--115},
}
@Article{Berman1987,
author = {David S. Berman and Robert R. Reisz and David A. Eberth},
title = {{\textit{Seymouria sanjuanensis} (Amphibia, Batrachosauria) from the Lower Permian Cutler Formation of north-central New {Mexico} and the occurrence of sexual dimorphism in that genus questioned}},
journal = {Canadian Journal of Earth Sciences},
year = {1987},
volume = {24},
number = {9},
pages = {1769--1784},
}
@Article{Berman1992,
author = {David S. Berman and Stuart S. Sumida and R. Eric Lombard},
title = {{Reinterpretation of the temporal and occipital regions in \textit{Diadectes} and the relationships of diadectomorphs}},
journal = {Journal of Paleontology},
year = {1992},
volume = {66},
number = {3},
pages = {481--499},
}
@InCollection{Berman1993,
author = {Berman, D. S.},
title = {{Lower Permian vertebrate localities of New Mexico and their assemblages}},
booktitle = {{Vertebrate Paleontology in New Mexico}},
publisher = {New Mexico Museum of Natural History},
year = {1993},
editor = {Spencer G. Lucas AND Jiri Zidek},
volume = {2},
pages = {11--21},
}
@Article{Berman1993_Seymouria,
author = {Berman, David S. and Martens, Thomas},
title = {{First occurrence of \textit{Seymouria} (Amphibia: Batrachosauria) in the Lower Permian Rotliegend of central Germany}},
journal = {Annals of Carnegie Museum},
year = {1993},
volume = {62},
number = {1},
pages = {63--79},
}
@Article{Berman2003_Aspidosaurus,
author = {Berman, David S. and Lucas, Spencer G.},
title = {{\textit{Aspidosaurus binasser} (Amphibia, Temnospondyli), a new species of Dissorophidae from the Lower Permian of Texas}},
journal = {Annals of Carnegie Museum},
year = {2003},
volume = {72},
number = {4},
pages = {241--262},
}
@Article{Berman2004,
author = {Berman, David S and Henrici, Amy C and Sumida, Stuart S and Martens, Thomas},
title = {{New materials of \textit{Dimetrodon teutonis} (Synapsida: Sphenacodontidae) from the Lower Permian of Germany}},
journal = {Annals of Carnegie Museum},
year = {2004},
volume = {73},
number = {2},
pages = {48--56},
}
@Article{Berman2010_Fedexia,
author = {David S Berman and Amy C. Henrici and David K. Brezinski and Albert D. Kollar},
title = {{A new trematopid amphibian (Temnospondyli: Dissorophoidea) from the Upper Pennsylvanian of Western Pennsylvania: earliest record of terrestrial vertebrates responding to a warmer, drier climate}},
journal = {Annals of Carnegie Museum},
year = {2010},
volume = {78},
number = {4},
pages = {289--318},
}
@Article{Berman2011_Rotaryus,
author = {David S Berman and Amy C. Henrici and Thomas Martens and Stuart S. Sumida and Jason S. Anderson},
title = {{\textit{Rotaryus gothae}, a new trematopid (Temnospondyli: Dissorophoidea) from the Lower Permian of central {Germany}}},
journal = {Annals of Carnegie Museum},
year = {2011},
volume = {80},
number = {1},
pages = {49--65},
}
@InCollection{Berman2014,
author = {Berman, David S and Henrici, Amy C. and Sumida, Stuart S. and Martens, Thomas and Pelletier, Valerie},
title = {{First European Record of a Varanodontine (Synapsida: Varanopidae): Member of a Unique Early Permian Upland Paleoecosystem, Tambach Basin, Central Germany}},
booktitle = {{Early Evolutionary History of the Synapsida}},
publisher = {Springer},
year = {2014},
editor = {Kammerer, Christian F. and Angielczyk, Kenneth D. and Fr{\"o}bisch, J{\"o}rg},
series = {Vertebrate Paleobiology and Paleoanthropology},
chapter = {5},
pages = {69--86},
address = {Dordrecht},
}
@InCollection{Berman2015,
author = {David S. Berman AND Amy C. Henrici AND Spencer G. Lucas},
title = {{Pennsylvanian-Permian Red Bed vertebrate localities of New Mexico an their assemblages}},
booktitle = {{Fossil Vertebrates in New Mexico}},
publisher = {New Mexico Museum of Natural History},
year = {2015},
editor = {Lucas, S. G. AND Sullivan, R. M.},
volume = {68},
pages = {65--76},
}
This will produce the following in-text citation:

As you can see, in the second citation the references are not in chronological order: the one from 1876 appears last instead of appearing first. Is there a way to change this (without having to manually go through all the \cite commands)?
Preferably I would like to see a solution using bibtex, not biblatex.

natbib'ssortoption sorts citations with multiple keys in the order they appear in the bibliography/list of references. So unless your bibliography is sorted by year first you can't easily get the order you want in the citations. (Since you mentionbiblatex, it would be possible there: https://tex.stackexchange.com/q/361031/35864, but can have very bad side-effects so that I would not recommend it even there.) – moewe Apr 11 '19 at 11:25natbib'ssortcommand sorts citations with multiple keys in the order they appear in the bibliography. In my case they are sorted alphabetically (well actually, it is a bit more complicated - I am using the custom BST you helped me with: https://tex.stackexchange.com/a/484079/112395; but I did not want to make my request more complicated/confusing so I omitted this). Is there no way to achieve the chronological ordering in bibtex usingnatbiband/or a modified version ofnatbib? You would think that other people faced the same problem before. – user6475 Apr 11 '19 at 11:58