BibTeX, biblatex and biberBibTex is writing additional line, how to get rid of it

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
anicole
Posts: 3
Joined: Fri Nov 05, 2010 8:15 pm

BibTex is writing additional line, how to get rid of it

Post by anicole »

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]

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

BibTex is writing additional line, how to get rid of it

Post by frabjous »

Please provide a minimal working example.
anicole
Posts: 3
Joined: Fri Nov 05, 2010 8:15 pm

BibTex is writing additional line, how to get rid of it

Post by anicole »

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}
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

BibTex is writing additional line, how to get rid of it

Post by frabjous »

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.:

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.
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:

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}
anicole
Posts: 3
Joined: Fri Nov 05, 2010 8:15 pm

Re: BibTex is writing additional line, how to get rid of it

Post by anicole »

Thanks a million. It really works~
I've learned much from this.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

BibTex is writing additional line, how to get rid of it

Post by localghost »

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
Post Reply