Featured Book

LaTeX Beginners Guide

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 3 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Bibliography sorted by Year

Add tags Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.

Bibliography sorted by Year

Postby nenu28 on Thu May 17th, 2012

Hello,

I am using BibTeX and I have more than 53 references to put into the bibliography. I have created a BibTeX file and I would like to sort those references by year of publications : 2012, 2011, 2010, ...

Is there any command which can do it ?

Thanks
nenu28
 
Posts: 28
Joined: Mon Jun 27th, 2011

Re: Bibliography sorted by Year

Postby nlct on Mon May 21st, 2012

I don't know if you need a particular style, but you can sort bibliography data using the databib package (part of the datatool bundle).
Code: Select all  •  Open in writeLaTeX
\documentclass{article}

\usepackage{databib}

\begin{document
}
% First argument is the name of new datatool database
% Second argument is list of .bib files
\DTLloadbbl{mybibdata}{acmtr}
% Sort database in order of year starting from most recent
\DTLsort{Year=descending}{mybibdata}
% Add citations
\nocite{*}

% Display bibliography
\DTLbibliography{mybibdata}
\end{document
}


Regards
Nicola Talbot
User avatar
nlct
 
Posts: 256
Joined: Thu Nov 6th, 2008


Return to BiBTeX

Who is online

Users browsing this forum: No registered users and 3 guests