Citing - Natbib Sorting and Citation Order by Appearance - TeX - LaTeX Stack Exchange
Citing - Natbib Sorting and Citation Order by Appearance - TeX - LaTeX Stack Exchange
_
TeX - LaTeX Stack Exchange is a Here's how it works:
question and answer site for users
of TeX, LaTeX, ConTeXt, and related
typesetting systems. Join them; it
only takes a minute:
The best answers are
Anybody can Anybody can voted up and rise to the
ask a question answer top
I've started writing my thesis using LaTeX (as recommended by the school) and as a complete novice at it, I've been stuck trying
to figure out how to change the citation by order of appearance.
I'm using the natbib package and a custom bibliography style that I found on the net, with my referencing going by the author-
year (John et al., 2005) style as opposed to numeric [1,3]. I have done some searching but most of my results come up with
people using the numeric system and being a complete beginner at this, I have yet to tinker around with something that works.
The citation I have currently looks like this: (Frank et al., 2005; John et al., 2002; Matthew, 2008)
I would like to sort it by year or turn off sorting so it will show up in the order I type it in the document.
The citing and bibliography itself are perfect, I'm only concerned with the citation order being unsorted (or sorted by appearance
in the document), as currently it is sorting everything alphabetically by name. So my question is, how would one achieve sorting
the references in the citation by appearance (or turning off alphabetical sorting) using natbib and a customized bibliostyle? And if
that is not possible, could someone point me in the right direction on obtaining a similar effect?
{citing} {natbib}
3 Answers
The unsrtnat style orders the bibliography by citation order. Similar to the example
from LaTeX/BibTex not arranging citations by order of appearance:
\documentclass{article}
\usepackage[semicolon]{natbib}
\begin{filecontents}{\jobname.bib}
@book{foo,
author = {Foo},
year = {2002},
title = {Title of Foo},
}
@book{bar,
author = {Bar},
year = {2005},
title = {Title of Bar},
}
@book{baz,
author = {Baz},
year = {2008},
title = {Title of Baz},
}
\end{filecontents}
1 of 1 1/26/2018, 7:04 PM