Generalproblem with bibtex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
venexiano
Posts: 5
Joined: Thu Jan 22, 2009 6:32 pm

problem with bibtex

Post by venexiano »

Hi to everybody. I'm writing my Phd thesis in Latex and I'm having great trouble with the references.
I'm using natbib, loading a external file having the bibTex characteristics. I have two main problems:

1) I don't understand the reason but the titles of the journals are underlined. I tried in all the ways and
i read a lot of stuff online but I didnt find a solution.
2) The pagination of the references is totally wrong, there are more then one overfulls.

Do you have any suggestion please?
I write you below just a few lines of my thesis (plus all the settings of course) so you want you can compile it and see the reference problem.(in attachment you can find the bibtex file with the references. You have to rename it mybib.bib, since I wasnt able to upload with the .bib extension)
Thanks so much
Alberto

Code: Select all

     \documentclass[a4paper,12pt]{book}

\textwidth  410pt         
\textheight 580pt         
\baselineskip   14.5pt    
\topskip    12pt           
\oddsidemargin  20pt      
\evensidemargin 10pt      
\topmargin  -3pt          
\headheight 19pt          
\headsep    39pt          
%\footheight 12pt        
\linespread{1.3}

%\hyphenation{non-con-ser-va-ti-ve}
\usepackage[english]{babel}

\usepackage[numbers]{natbib}
%\biboptions{round,sort}    % sort ti fa le citazioni multiple in ordine alfabetico.
\bibpunct{(}{)}{;}{a}{,}{;}    
%bibpunct arguments:
%1)the opening bracket symbol, default = ( 
%2)the closing bracket symbol, default = ) 
%3)the punctuation between multiple citations, default = ; 
%4)the letter `n' for numerical style, or `s' for numerical superscript style, any other letter for author-year, default = author-year; 
%5)the punctuation that comes between the author names and the year 
%6)the punctuation that comes between years or numbers when common author lists are suppressed (default = ,); 
%The optional argument: is the character preceding a post-note, default is a comma plus space. In redefining this character, one must include a space if one is wanted. 



\usepackage{epsfig}
\usepackage{amsmath,amsfonts,amssymb}
%\usepackage[final]{graphicx}
\usepackage{graphicx}
\usepackage{amssymb}
 \usepackage{ulem}


%\usepackage[latin1]{inputenc}     

%--------------------------------------------------------------------------------
% Inizio documento
%--------------------------------------------------------------------------------

\begin{document}

%-----------------------------------------------------------------------
%-------------------------------CAPITOLO INTRODUTTIVO------------------------------
%-----------------------------------------------------------------------

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\mbox{ }
 \vspace{0,5cm}
\markboth{Introduction}{Introduction}

The second approach relies on a full coupling of the governing equations within each time step \citep[see for example][and others]{Lyn1987, Holly1990, Lai1991, Correia1992, Saiedi1997, Kassem1998, Cao2002, Cao2004, Caleffi2007}.
In particular, \citet{Saiedi1997} and \citet {Cao2002} compared the numerical stability of coupled and decoupled models and they found out that the coupled model is more stable, especially in the case of rapid variation of bottom elevation. Moreover \citet{Cao2002} and \citet {Correia1992} pointed out that coupled solutions should then be used for the study of long term evolutions of natural rivers. \citet{Sieben1997,Sieben1999} showed that in a range close near critical conditions \citet{Lai1991,LevyPuppo1999,titarevtoro}



\addcontentsline{toc}{chapter}{References}


\bibliography{mybib}{}
%\bibliographystyle{abbrv}
%\bibliographystyle{abbrvnat}
\bibliographystyle{plainnat}
%




\section*{Acknowledgements}
The first author thanks \textit{Cariverona} for financial support under the project \\ \textit{MODITE}.
%
\end{document}



Attachments
mybib.txt
(117.75 KiB) Downloaded 253 times

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: problem with bibtex

Post by josephwright »

A few things here:
1) Please try to make a minimal example (cut out everything not needed to show the problem). Often this leads you to the issue yourself. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

2) You don't need \begin{bibliography} or \end{bibliography} in your .bib file

3) You've surrounded a lot of the fields in your database in extra braces. This is usually not a good idea unless you are protecting things like capital letters. I'd suggest reading "Tame the BeaST": http://www.ctan.org/get/info/bibtex/tam ... ttb_en.pdf

4) Your underlining is caused by the ulem package, which makes \emph underline.

5) Don't load epsfig: graphicx alone will do.

6) Consider using geometry to set your margins, and look at titlesec for altering your headings, rather than doing all of the hacks you have in your example.
Joseph Wright
venexiano
Posts: 5
Joined: Thu Jan 22, 2009 6:32 pm

problem with bibtex

Post by venexiano »

Thanks so much for your answers. Very useful.And I read the links you gave me. You are right the problem is the \ulem package. But i have still 2 problems:

1) do you have any idea of how can i solve the "ulem" problem? since I use the double underscore \uline{\uline{ in the equations if i don't use the ulem package all my equations are wrong. I add below a piece of thesis having equations so u can see the problem. Do you have idea how to solve this incompatibility between ulem and bibtex? I need the double underline in my equations for consistency with an article.

2) About the double braces: you are right. The problem is that i download almost all the bibtex references from http://www.isiknowledge.com. I don't know why they give the bibtex file with the journal name in upper case and with a lot of extra braces. And the problem is that when i compile the journal title is in upper case. But I tried to eliminate the extra brackets in the journal field but it is still in upper case! (I compiled three times to be sure). So it's not clear to me in the "tame the beast" when it writes that it is not case sensitive at level zero (i.e. one brace). How can have the journal title in lower case? please don't tell me that i have to rewrite all the .bbl file...

thanks so much
Alberto

Code: Select all


   \documentclass[a4paper,12pt]{book}

\textwidth  410pt         
\textheight 580pt         
\baselineskip   14.5pt    
\topskip    12pt           
\oddsidemargin  20pt      
\evensidemargin 10pt      
\topmargin  -3pt          
\headheight 19pt          
\headsep    39pt          
%\footheight 12pt        
\linespread{1.3}

%\hyphenation{non-con-ser-va-ti-ve}
\usepackage[english]{babel}

\usepackage[numbers]{natbib}
%\biboptions{round,sort}    % sort ti fa le citazioni multiple in ordine alfabetico.
\bibpunct{(}{)}{;}{a}{,}{;}    
%bibpunct arguments:
%1)the opening bracket symbol, default = ( 
%2)the closing bracket symbol, default = ) 
%3)the punctuation between multiple citations, default = ; 
%4)the letter `n' for numerical style, or `s' for numerical superscript style, any other letter for author-year, default = author-year; 
%5)the punctuation that comes between the author names and the year 
%6)the punctuation that comes between years or numbers when common author lists are suppressed (default = ,); 
%The optional argument: is the character preceding a post-note, default is a comma plus space. In redefining this character, one must include a space if one is wanted. 



\usepackage{epsfig}
\usepackage{amsmath,amsfonts,amssymb}
%\usepackage[final]{graphicx}
\usepackage{graphicx}
\usepackage{amssymb}
 \usepackage{ulem}


%\usepackage[latin1]{inputenc}     

%--------------------------------------------------------------------------------
% Inizio documento
%--------------------------------------------------------------------------------

\begin{document}

%-----------------------------------------------------------------------
%-------------------------------CAPITOLO INTRODUTTIVO------------------------------
%-----------------------------------------------------------------------

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\mbox{ }
 \vspace{0,5cm}
\markboth{Introduction}{Introduction}

The second approach relies on a full coupling of the governing equations within each time step \citep[see for example][and others]{Lyn1987, Holly1990, Lai1991, Correia1992, Saiedi1997, Kassem1998, Cao2002, Cao2004, Caleffi2007}.
In particular, \citet{Saiedi1997} and \citet {Cao2002} compared the numerical stability of coupled and decoupled models and they found out that the coupled model is more stable, especially in the case of rapid variation of bottom elevation. Moreover \citet{Cao2002} and \citet {Correia1992} pointed out that coupled solutions should then be used for the study of long term evolutions of natural rivers. \citet{Sieben1997,Sieben1999} showed that in a range close near critical conditions \citet{Lai1991,LevyPuppo1999,titarevtoro}
 
\begin{equation}\label{eqn.flux.lw.modMULTI} 
\uline{\uline{\mathbf{F}}}^{LW'}_{j+\frac{1}{2}} = \frac{ V_j^+  \uline{\uline{\mathbf{F}}}(\mathbf {Q}_j^n)   + V_j^- \uline{\uline{\mathbf{F}}}(\mathbf {Q}_i^n) } {V_j^- + V_j^-}  - \frac{1}{2} \frac{\Delta t}{\Delta x} \widehat{\mathbf{A}}_{j+\frac{1}{2}} \left( \uline{\uline{\mathbf{F}}}(\mathbf{Q}_{j}^n)  - \uline{\uline{\mathbf{F}}}(\mathbf{Q}_{i}^n)  \right).  
\end{equation}


\addcontentsline{toc}{chapter}{References}


\bibliography{mybib}{}
%\bibliographystyle{abbrv}
%\bibliographystyle{abbrvnat}
\bibliographystyle{plainnat}
%







\end{document}




venexiano
Posts: 5
Joined: Thu Jan 22, 2009 6:32 pm

Re: problem with bibtex

Post by venexiano »

does anybody know how to solve these problems?I'm still searching a solution.
Thanks so much
Alberto
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problem with bibtex

Post by localghost »

venexiano wrote:does anybody know how to solve these problems?I'm still searching a solution. […]
First you have to clean up your code according to points 5) and 6) that Joseph mentioned. After that build a minimal working example (MWE) as requested that reproduces the undesired behaviour.


Best regards and welcome to the board
Thorsten¹
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: problem with bibtex

Post by josephwright »

Perhaps:

\let\myemph\emph
\usepackage{ulem}

...
\begin{document}
\let\emph\myemph
Joseph Wright
venexiano
Posts: 5
Joined: Thu Jan 22, 2009 6:32 pm

problem with bibtex

Post by venexiano »

Thanks joseph, i have tried your suggestion but it does not work. I have create the minimal example.

Code: Select all

\documentclass[a4paper,12pt]{book}

\textwidth  410pt         
\textheight 580pt         
\baselineskip   14.5pt    
\topskip    12pt           
\oddsidemargin  20pt      
\evensidemargin 10pt      
\topmargin  -3pt          
\headheight 19pt          
\headsep    39pt          
%\footheight 12pt        
\linespread{1.3}

 
\usepackage[english]{babel}

\usepackage[numbers]{natbib}
 
\bibpunct{(}{)}{;}{a}{,}{;}    
 \usepackage{ulem}  


\begin{document}


The second approach relies on a full coupling of the governing equations within each time step \citep[see for example][and others]{Lyn1987, Holly1990, Lai1991, Correia1992, Saiedi1997, Kassem1998, Cao2002, Cao2004, Caleffi2007}.
In particular, \citet{Saiedi1997} and \citet {Cao2002} compared the numerical stability of coupled and decoupled models and they found out that the coupled model is more stable, especially in the case of rapid variation of bottom elevation. Moreover \citet{Cao2002} and \citet {Correia1992} pointed out that coupled solutions should then be used for the study of long term evolutions of natural rivers. \citet{Sieben1997,Sieben1999} showed that in a range close near critical conditions \citet{Lai1991,LevyPuppo1999,titarevtoro}


\begin{equation} \label{eqn.force.modMULTI}
 \uline{\uline{{\bf F}}}^{FORCE\alpha'}_{j+\frac{1}{2}}=\frac{1}{2} \left(  \uline{\uline{\mathbf{F}}}^{LF}_{j+\frac{1}{2}} +   \uline{\uline{\mathbf{F}}}^{LW'}_{j+\frac{1}{2}} \right),
\end{equation}

 \begin{equation}\label{eqn.flux.lw.modMULTI} 
\uline{\uline{\mathbf{F}}}^{LW'}_{j+\frac{1}{2}} = \frac{ V_j^+  \uline{\uline{\mathbf{F}}}(\mathbf {Q}_j^n)   + V_j^- \uline{\uline{\mathbf{F}}}(\mathbf {Q}_i^n) } {V_j^- + V_j^-}  - \frac{1}{2} \frac{\Delta t}{\Delta x} \widehat{\mathbf{A}}_{j+\frac{1}{2}} \left( \uline{\uline{\mathbf{F}}}(\mathbf{Q}_{j}^n)  - \uline{\uline{\mathbf{F}}}(\mathbf{Q}_{i}^n)  \right).  
\end{equation}


\bibliography{mybib}{}
\bibliographystyle{plainnat}
%
\end{document}

there is just the necessary to call double underscore in a couple of equations and to call some references in some lines of text. No error no worning when compiling, just underfulls since the references are underscored and out of margin. If i comment {ulem} package the references are good but the equations obviously sucks. the problem is thay i have hundreds of equations with the double underscore and i need that to be consistent with the notations of previous theses.
Thanks so much
Alberto

ps: i didnt fulfil to point 6) of joseph just because i have never used the geometry package and my university gave me this preamble with these margins for the thesis and i'm afraid to do a mess if i change them.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

problem with bibtex

Post by gmedina »

Hi venexiano,

If you want to avoid the redefinition that the ulem package makes of the \emph command, you can load it with the normalem package option; i.e., you can load the package like this:

Code: Select all

\usepackage[normalem]{ulem}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
venexiano
Posts: 5
Joined: Thu Jan 22, 2009 6:32 pm

Re: problem with bibtex

Post by venexiano »

thanks a lot you are great!!!now it works perfectly!
alberto
helex
Posts: 1
Joined: Sat May 16, 2009 10:56 am

problem with bibtex

Post by helex »

Hello,

I had the same problem as venexiano and solution of gmedina

Code: Select all

\usepackage[normalem]{ulem}
helps me a lot in solving the problem.

Greetings from the new member Helex!
Post Reply