TransWikia.com

Sorting references with given bibliographystyle

TeX - LaTeX Asked by Dietmar Haba on June 15, 2021

I am writing a scientific article and plan to submit it to a Springer journal. Unfortunately, Springer’s LaTeX support is not very satisfying. You are forced to use Springer’s LaTeX class svjour3 as well as one of their bibliography styles (both can be downloaded here).

Currently I am struggeling with the sorting in the bibliography as I want to sort by appearance, hence the first citation in the article should be cited with [1]. This works well with the bibliographystyle unsrtnat, but doesn’t work with spmpsci, which I must use for the journal. Here is a MWE:

documentclass{article}
usepackage[numbers,sort&compress]{natbib}

begin{document}
This citation~cite{Smith2009} should be named emph{1}, while this one here~cite{Fisher2013} should be numbered emph{2}. How can we resort by appearance?

bibliographystyle{spmpsci}
bibliography{references}

end{document}

With the bibliography file references.bib:

@article{Fisher2013,
author = {Michael Fisher},
journal = {Fisher journal},
pages = {1--10},
title = {The one title},
volume = {12},
number = {12},
year = {2013}
}

@article{Smith2009,
author = {John Smith},
journal = {Smith journal},
pages = {11--20},
title = {The other title},
volume = {13},
number = {1},
year = {2009}
}

Thanks in advance.

2 Answers

I was asking Springer's support and they answered that I shall ignore the problem and they will manage to sort the references correctly upon acceptance.

Answered by Dietmar Haba on June 15, 2021

Go to this file:

spmpsci.bst

Search for SORT (Case sensitive search)

There should be one instance with "SORT" (all caps). Currently, it's in line 1463. Delete this line or comment it out. Clear cache. Recompile. Voila...

Answered by AtanuCSE on June 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP