GeneralBibliography order

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
T303
Posts: 2
Joined: Fri Oct 18, 2013 8:46 am

Bibliography order

Post by T303 »

I am trying to get a bibliography with the plain "thebibliography".
I tried different bibliographystyles styles but they all produce the same result. In the text the references are cited as [1] where the number refers to the position of the reference in the list as i put them. But I would like to have the numbers in the correct order as they appear in the text.

For the following example i got always
"blablablablubb [2] and also blubbluubbbla [1]"
not matter what style i used. How can I get the references ordered as they appear in the text?

Code: Select all

\documentclass[a4paper,12pt]{scrreprt} 
\usepackage{lingmacros}
\usepackage{tree-dvips}
\usepackage{graphicx}
\usepackage{bbm}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{braket}
\usepackage{ifthen}				
\usepackage{sidecap}
\usepackage{hyperref}			
%\bibliographystyle{alpha}
%\bibliographystyle{ieeetr}
\bibliographystyle{abstract}
\begin{document}
	blablablablubb \cite{Daub} and also blubbluubbbla \cite{NR}
	\begin{thebibliography}{99}
		\bibitem{NR}
			A. Randomname 
			\emph{A Great Book}
			Unlimited Edition,
			Universal University Press, 2020
	  \bibitem{Daub}
			X.Y. Lophon
			\emph{An even greater book}
			ABC Prints, 2020		 
	\end{thebibliography}
\end{document}
ps: i didnt put the post in the bibtex folder, as i would like to solve it without using bibtex (if possible). If this was wrong I apologize ;)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Bibliography order

Post by kaiserkarl13 »

You're not using BibTeX in your example. To do so, use \bibliography{file} where file.bib exists and is somewhere BibTeX can find it. Delete your \thebibliography environment; BibTeX generates that for you.

The reason your entries were in the order you wrote them in the bibliography is because that's the order in which they actually occur in the bibliography---which is what you told LaTeX to do. The point of using BibTeX is to generate the entries in the bibliography FOR you, so they're in the right order.
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Bibliography order

Post by hugovdberg »

kaiserkarl13 wrote:You're not using BibTeX in your example. To do so, use \bibliography{file} where file.bib exists and is somewhere BibTeX can find it. Delete your \thebibliography environment; BibTeX generates that for you.

The reason your entries were in the order you wrote them in the bibliography is because that's the order in which they actually occur in the bibliography---which is what you told LaTeX to do. The point of using BibTeX is to generate the entries in the bibliography FOR you, so they're in the right order.
That being said, if you specifically don't want to use BiBTeX (although I wouldn't know why), the answer is implicitly given by karl: enter the references in the \thebibliography in the same order as in the text. Good luck keeping track of all that ;)
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
Post Reply