Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sorting bibliography according to order of citation appearance...

481 views
Skip to first unread message

Werner Grundlingh

unread,
Apr 10, 2008, 1:21:09 AM4/10/08
to
Hi all,

Does there exist a bibliography style (from any package) that would
sort your list of references according to the order in which they were
cited in your document? As far as I know, bibliography packages deal
with sorting/manipulating the bibliography based on the contents of
the bibliography only, and not your main document contents, correct?
Hence, it would almost seem logical to have a citation package do this
kind of sorting...

Of course, typesetting your bibliography in the order you cite the
references is one option (... and therefore using the unsrt
bibliography style), but what about the cases where you build your
document, and therefore also your bibliography, non-sequentially?

Any ideas on this matter would be gratefully appreciated,
Werner

Rainer Schnaack

unread,
Apr 10, 2008, 4:02:33 PM4/10/08
to
On Apr 10, 7:21 am, Werner Grundlingh <wgrundli...@gmail.com> wrote:
> Hi all,
>
> Does there exist a bibliography style (from any package) that would
> sort your list of references according to the order in which they were
> cited in your document?
> (..)
Isn't that exactly, what the unsrt styles are all about?

\begin{filecontents}{foo.bib}
@misc{bar,
title={first entry in bib file}
}

@misc{foo,
title={second entry in bib file}
}
\end{filecontents}
\documentclass{article}
\begin{document}
\cite{foo}
\cite{bar}
\bibliographystyle{unsrt}
\bibliography{foo}
\end{document}

shows the second bib entry as the first entry in the references---in
the order of \cite's, just as you wanted.

Regards
Rainer

Werner Grundlingh

unread,
Apr 10, 2008, 5:49:04 PM4/10/08
to

Rainer,

Because I am not familiar with the different bibliography styles, I
just had no idea what style would cause what. Thanks for this
information - it is really helpful.

Werner

tge...@gmail.com

unread,
Apr 11, 2008, 4:34:38 AM4/11/08
to
Hello Rainer,

On Apr 10, 10:02 pm, Rainer Schnaack <r...@esko.com> wrote:

> Isn't that exactly, what the unsrt styles are all about?

Would this be compatible with the \citet and \citep commands
associated with the natbib package?

PLoS has a bst file (PLoS.bst) on their website that sorts (or rather
does not sort) the bibliogrpahy butit does not recognise the \cite and
\citep commands.

Thanks

Tyrone

Joseph Wright

unread,
Apr 11, 2008, 5:03:40 AM4/11/08
to
On Apr 11, 9:34 am, "tgen...@gmail.com" <tgen...@gmail.com> wrote:
> Hello Rainer,
>
> On Apr 10, 10:02 pm, Rainer Schnaack <r...@esko.com> wrote:
>
> > Isn't that exactly, what the unsrt styles are all about?
>
> Would this be compatible with the \citet and \citep commands
> associated with the natbib package?
>

There is an unsrtnat.bst file for this purpose.

Joseph Wright

tge...@gmail.com

unread,
Apr 11, 2008, 9:46:50 AM4/11/08
to
On Apr 11, 11:03 am, Joseph Wright <joseph.wri...@morningstar2.co.uk>
wrote:

> There is an unsrtnat.bst file for this purpose.

Thanks Joseph. I feel so stupid... the answer has been there all the
time.

Thanks

Tyrone

0 new messages