TransWikia.com

How to sort multiple numeric-style citaton call-outs?

TeX - LaTeX Asked on February 8, 2021

I am new to Latex. I have finished writing my document. Now I am trying to sort the citations in the main document. Is there a command to do this automatically?

For example:

enter image description here

I want to have it like this:

Achsen auf [9, 10].

usepackage{natbib}
begin{document}
dcite{STA02}
....
Achsen aufcite{STA01, STA02}

bibliographystyle{elsarticle-num}
bibliography{references.bib}

end{document}

file refernces.bib

@misc{STA01,
  title={{Anteil der Lkw an der Transportleistung im Güterverkehr in Deutschland bis 2023}},
  HOWPUBLISHED = {url{https://de.statista.com/statistik/daten/studie/12195/umfrage/anteil-der-lkw-am-gueterverkehr-in-deutschland/}},
  url={https://de.statista.com/statistik/daten/studie/12195/umfrage/anteil-der-lkw-am-gueterverkehr-in-deutschland/},
  author = {Martin Kords},
  Year      = { 26.05.2020},
}

@misc{STA02,
  title={{Güterverkehr in Deutschland nach Verkehrszweigen 2019}},
  HOWPUBLISHED = {url{https://de.statista.com/statistik/daten/studie/75784/umfrage/gueterverkehr-in-deutschland-nach-verkehrszweigen/}},
  url={https://de.statista.com/statistik/daten/studie/75784/umfrage/gueterverkehr-in-deutschland-nach-verkehrszweigen/},
  author = {Martin Kords},
  Year      = { 03.09.2020},
}

One Answer

In order to get the numeric-style citation call-outs sorted, you need to load the natbib citation management package with the option sort&compress:

usepackage[sort&compress,<any other options>]{natbib}

Answered by Mico on February 8, 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