How can I prevent the items in the bibliography from being automatically moved approximatively 1 cm to the right?
If I use \bibitem[label]{...}
they are nicely aligned with the rest of the text, but if I just use \bibitem{...}
, so that they get automatically numbered (which is what I want) they are moved to the right, like I explained above.
Example:
I want the automatic numbering of the first lines, but the indentation behavior of the last.
The Code that creates the above output:
% Created with LyX
\documentclass[english]{article}
\usepackage[OT1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage[unicode=true,
bookmarks=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\usepackage{breakurl}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{enumitem} % customizable list environments
\newlength{\lyxlabelwidth} % auxiliary length
\makeatother
\begin{document}
\begin{thebibliography}{References}
\bibitem{key-1} these lines are what happens when I only use \textbackslash{}bibitem\{....\}
\bibitem{key-2} these lines are what happens when I only use \textbackslash{}bibitem\{....\}
\bibitem[bla]{key-3} these lines are what happens when I use \textbackslash{}bibitem{[}bla{]}\{....\}
\bibitem[blabla]{key-4} these lines are what happens when I use \textbackslash{}bibitem{[}blabla{]}\{.... \}\end{thebibliography}
\end{document}`
Best Answer
The argument of the
bibliography
environment is not the title of the bibliography section (as you seem to think from your code) but a string that represents the largest label in your list. Typically this will be9
if you have < 10 references and99
if you have less than 100 references but more than 9.