0% found this document useful (0 votes)
180 views1 page

Citing - Natbib Sorting and Citation Order by Appearance - TeX - LaTeX Stack Exchange

The document discusses how to change citation order in LaTeX using the natbib package, specifically to sort citations by their order of appearance rather than alphabetically. The user is seeking guidance on achieving this with a custom bibliography style, as their current citations are sorted by author name. It suggests using the 'unsrtnat' style to order the bibliography by citation order.

Uploaded by

hayeg2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views1 page

Citing - Natbib Sorting and Citation Order by Appearance - TeX - LaTeX Stack Exchange

The document discusses how to change citation order in LaTeX using the natbib package, specifically to sort citations by their order of appearance rather than alphabetically. The user is seeking guidance on achieving this with a custom bibliography style, as their current citations are sorted by author name. It suggests using the 'unsrtnat' style to order the bibliography by citation order.

Uploaded by

hayeg2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

citing - Natbib sorting and citation order by appearance - TeX - LaTeX... https://tex.stackexchange.com/questions/61877/natbib-sorting-and-cita...

_
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

Natbib sorting and citation order by appearance

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.

E.g.: (John et al., 2002; Frank et al., 2005; Matthew, 2008)

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?

Thank you in advance for your time and help.

{citing} {natbib}

asked Jul 1 '12 at 21:37


James
136 1 2 3

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

You might also like