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
\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
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
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
There is an unsrtnat.bst file for this purpose.
Joseph Wright
> 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