I want my bibliography list order to follow the order of the citation. That is, the citations should not have the bibitem
order, whereas the bibitem
's must follow the citations order. For instance, if I cite a book in my first page of my thesis, it should be the first item in the bibliography, and second cite must be in the second in the bibliography.
For example:
\documentclass{scrbook}
\usepackage{lipsum,biblatex}
\begin{document}
\lipsum[1]
\cite{key2}
\lipsum[1]
\cite{key1}
\begin{thebibliography}{9}
\bibitem This has to be my second reference in my list.
\bibitem This has to be my first reference in my list.
\end{thebibliography}
\end{document}
Feel free to edit this question. May be I am not conveying these things in a proper English.
Best Answer
Using
biblatex
is a very good idea but then you have to use abib
file.The advantage is double:
biblatex
gives you a lot of parameters to define the layout of the bibliography and thebib
file can be used for more than one LaTeX document.You gave no concret examples for your book so have a look to this MWE (package
filecontents
is only used to include a examplebib
file in the mwe code; please notice that I usedbiber
):With the option
sorting=none
the resulting bibliography follows your cites as you can see here:Now only with changing the
biblatex
optionsorting=nyt
the resulting bibliography is sorted by the author names.See here:
The order of the bib entrys in the bib file do not change the results.
Just a remark: You saw the character
ö
in my example bib file? That's the reason I used utf-8 encoding (line 35 of MWE). Then you should usebiber
, which can handle utf8 encoding.