Hi,
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]
BibTeX, biblatex and biber ⇒ BibTex is writing additional line, how to get rid of it
NEW: TikZ book now 40% off at Amazon.com for a short time.

BibTex is writing additional line, how to get rid of it
Hope this would help.
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
A minimal working example would also have included a minimal .bib file.
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.:
There the cite commands would become [1, 2] and [3, 4] or whatever in the body of the text.
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:
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
Thanks a million. It really works~
I've learned much from this.
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
Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules. Please keep that in mind for the future so that further reminders will not be necessary.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10