BibTeX, biblatex and biber ⇒ BibTex is writing additional line, how to get rid of it
BibTex is writing additional line, how to get rid of it
I'm writing my thesis. Bibtex is perfectly generating the bibliography but there is additional line at the end of reference section. Does anyone have the same problem? Thanks in advance.
[8] J.N. Tsitsiklis and B. Van Roy. Regression methods for pricing complex
american-style options. IEEE Transactions and Neural Networks, 12(4):694
703, 2002.
[1, 2, 3, 4, 5, 6, 7, 8]
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
BibTex is writing additional line, how to get rid of it
Code: Select all
%% LyX 1.6.7 created this file.
\documentclass[american]{paper}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{esint}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\makeatother
\usepackage{babel}
\begin{document}
\bibliographystyle{plain}
\bibliography{Project}
\cite{ben07,ben09,Black73,broadie04,fries07,longstaff01,Lopez10,tsitsiklis02}
\end{document}
BibTex is writing additional line, how to get rid of it
What is the additional line? Do you mean the:
"[1, 2, 3, 4, 5, 6, 7, 8]" part?
That is the expected behavior of the \cite command.
Normally, however, the cite command is used in the body of the document, e.g.:
Code: Select all
According to some studies (see, e.g.,
\cite{smith09,jones10}), the chicken came
first. According to others (see, e.g.,
\cite{black08,white99}), the egg came first.
It's very strange therefore to use \cite commands after rather than before, the bibliography.
If you want an entry to appear in the bibliography but without being cited in the body of the document, then use the \nocite command. In your case, you could probably use:
Code: Select all
%% LyX 1.6.7 created this file.
\documentclass[american]{paper}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{esint}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\makeatother
\usepackage{babel}
\begin{document}
\nocite{ben07,ben09,Black73,broadie04,fries07,longstaff01,Lopez10,tsitsiklis02}%
\bibliographystyle{plain}%
\bibliography{Project}
\end{document}
Re: BibTex is writing additional line, how to get rid of it
I've learned much from this.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
BibTex is writing additional line, how to get rid of it
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10