BibTeX, biblatex and biberURL not appearing with Bibtex

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

URL not appearing with Bibtex

Post by Stefan Kottwitz »

Hi Colin,
Colin93 wrote:My problem is that when I add \usepackage{biblatex} in my preamble, I get these error messages :

! LaTeX Error: Command \bibhang already defined.
! LaTeX Error: Command \NAT@parse already defined.
! LaTeX Error: Command \citename already defined.
! Package biblatex Error: Incompatible package 'natbib'.
...
that's because you loaded natbib which is for BibTeX. With biblatex, don't load it, but either use the biblatex syntax (\autocite, or \parencite instead of \citep) or turn on the natbib compatibility option (but remove \usepackage[]{natbib} in any case):

Code: Select all

\usepackage[natbib=true}{biblatex}
Stefan
LaTeX.org admin

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: URL not appearing with Bibtex

Post by Colin93 »

Thankyou Stefan_K
I'll try with your package
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: URL not appearing with Bibtex

Post by Colin93 »

Hi I still get errors when I add your package and remove natbib... My Latex code dpes not seem to understand \citep either...

Adding your package adds 2 blank pages before my first page :(
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

URL not appearing with Bibtex

Post by Johannes_B »

You have to delete all the auxiliary files as well.

And don't use \citep, use \autocite.

Please post an updated minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

URL not appearing with Bibtex

Post by Colin93 »

Hi Johannes_B

I believe now I have deleted all the auxiliary files. And almost correctly using Biblatex (as I have only one error message). However now my bibliography section's not appearing at all :|

Here's an updated version of my codes :

Code: Select all

[code]\documentclass[a4paper,12pt]{book}

\usepackage{graphicx}
\usepackage{subfigure}

\usepackage{longtable}
\usepackage{amsfonts,amsthm,amssymb}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{color}
\usepackage{geometry}

\usepackage{lscape}
\usepackage{stmaryrd}

\usepackage[utf8]{inputenc}
\usepackage[hyperindex]{hyperref}

\usepackage{lettrine}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\usepackage{fourier}
\usepackage{url}

\usepackage{gensymb}
\usepackage{enumerate}
\usepackage{nicefrac}

  \usepackage[
    backend=biber,
    style=alphabetic,
  ]{biblatex}
 
 \addbibresource{bibliography.bib}
 
%\usepackage{biblatex}
%\usepackage{enumitem}
%\usepackage{amssymb}
%\usepackage{wrapfig}
%\usepackage[]{natbib}


\usepackage{nomencl,etoolbox,siunitx,ragged2e}



\pagestyle{fancy}

\renewcommand{\chaptermark}[1]%
                       {\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]%
                       {\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\bfseries\thepage}]%
      {\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]%
      {\fancyplain{}{\bfseries\thepage}}
\cfoot{}%
\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{plain}\cleardoublepage}}

\usepackage{listings} 
\usepackage{color} 
\definecolor{mygreen}{rgb}{0,0.6,0} 
\definecolor{myred}{rgb}{0.45,0.0,0} 
\definecolor{mygray}{rgb}{0.2,0.2,0.2}
\definecolor{mywhite}{rgb}{0.8,0.8,0.8}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\definecolor{myblue}{rgb}{0.0,0.0,0.48}
\definecolor{myorange}{rgb}{1.0,0.93,0.87}

\lstdefinestyle{CFcode} {
 commentstyle=\color{myblue}, % comment style 
 deletekeywords={this}, % if you want to delete keywords from the given 
 frame=double, % adds a frame around the code 
 language=C++, % the language of the code 
 morekeywords={*,MathFunctions},
  keywords=[2]{for,if,else},
  keywords=[3]{CFuint,CFreal,RealVector,RealMatrix},
}

\lstdefinestyle{CFcase} {
 commentstyle=\color{myblue}, % comment style 
 deletekeywords={this}, % if you want to delete keywords from the given 
 frame=none, % adds a frame around the code 
 language=bash, % the language of the code 
 deletekeywords={true,false} 
}

\lstdefinestyle{terminal} {
 backgroundcolor=\color{mywhite},
 frame=none, % adds a frame around the code 
 language=sh, % the language of the code 
 numbers = none 
}

\lstset{
 backgroundcolor=\color{myorange},
 basicstyle=\footnotesize\ttfamily,
 breakatwhitespace=false, 
 breaklines=true, 
 captionpos=b, % sets the caption-position to bottom 
 commentstyle=\color{myblue}, % comment style 
 deletekeywords={this}, % if you want to delete keywords from the given language 
 escapeinside={\%*}{*)}, % if you want to add LaTeX within your code 
 extendedchars=true, 
 frame=double, % adds a frame around the code 
 keepspaces=true, 
 keywordstyle=\color{mygreen}, % keyword style 
 keywordstyle=[2]\color{orange},
 keywordstyle=[3]\color{red},
 language=C++, % the language of the code 
 morekeywords={*,MathFunctions},
  keywords=[2]{for,if,else},
  keywords=[3]{CFuint,CFreal,RealVector,RealMatrix},
 numbers=left,
 numbersep=5pt, % how far the line-numbers are from the code 
 numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers 
 rulecolor=\color{black}, 
 showspaces=false, 
 showstringspaces=false, % underline spaces within strings only 
 showtabs=false, % show tabs within strings adding particular underscores 
 stepnumber=1,
 stringstyle=\color{myred}, % string literal style 
 tabsize=2, % sets default tabsize to 2 spaces 
 title=\lstname 
}

\usepackage{eso-pic}
 
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\blap}[1]{\vbox to 0pt{#1\vss}}
\newcommand\AtUpperLeftCorner[3]{%
\put(\LenToUnit{#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{#3}}%

}
\newcommand\AtUpperRightCorner[3]{%
\put(\LenToUnit{\dimexpr\paperwidth-#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{\llap{#3}}}%
}
\vspace{-5.00cm}
\title{\small{a} \\\vspace{0.5cm}\LARGE{ a}}
\author{By \textsc{a} \\ Paris,  March -- August 2016} 
\date{\today}
\makeatletter

\makenomenclature


\begin{document}

\begin{titlepage}
    \AddToShipoutPicture{%
      \AtUpperLeftCorner{1.5cm}{2cm}{\includegraphics[scale=0.1]{FIGURES/appa/logo_onera.jpg}}
      \AtUpperRightCorner{1.5cm}{1.5cm}{\includegraphics[scale=0.14]{FIGURES/appa/logo_upmc.png}}
      
    }
 
    \begin{center}
        \vspace*{0.7cm}
        \textsc{\@title}
        \HRule
        \vspace*{0.5cm}
        \large{\@author} 
    \end{center}
 
    \vspace*{-0.3cm}

\vfill


\begin{flushleft}
Supervisor : \textsc{a}\\
a \\
a \\
a
\end{flushleft}




\end{titlepage}
\ClearShipoutPicture
 
%\clearemptydoublepage

\pagenumbering{roman} \setcounter{tocdepth}{2}

\addcontentsline{toc}{chapter}{\numberline{}Acknowledgment}
\include{acknowledgements} %\clearemptydoublepage

%\addcontentsline{toc}{chapter}{\numberline{}Dedication}
%\include{} \clearemptydoublepage

\addcontentsline{toc}{chapter}{\numberline{}Abstract}
\include{abstract} %\clearemptydoublepage

\lhead[\fancyplain{}{\bfseries \thepage}]%
      {\fancyplain{}{\bfseries Table of contents}}
\rhead[\fancyplain{}{\bfseries Table of contents}]%
      {\fancyplain{}{\bfseries \thepage}}
\cfoot{}%
\tableofcontents
%\clearemptydoublepage

\addcontentsline{toc}{chapter}{\numberline{}List of Figures} \listoffigures %\clearemptydoublepage
\addcontentsline{toc}{chapter}{\numberline{}List of Tables} \listoftables %\clearemptydoublepage
%\addcontentsline{toc}{chapter}{\numberline{}List of Symbols}
%\include{listofsymbols} %\clearemptydoublepage
\printnomenclature

\pagenumbering{arabic}

%\include{ch1}
%\clearemptydoublepage
%\include{ch2}
%\clearemptydoublepage
%\include{ch3}
%\clearemptydoublepage
%\include{ch4}
%\clearemptydoublepage
%\include{ch5}


\section*{Bibliography}
%\bibliographystyle{unsrt}
%\bibliographystyle{plainnat}
%\bibliographystyle{apalike}
%\bibliographystyle{acm}
%\bibliographystyle{unsrt}
%\bibliography{bibliography.bib} 
  \printbibliography
\end{document}
[/code]

And here's my bibliography.bib file :

Code: Select all

% This file was created with JabRef 2.10.
% Encoding: UTF-8


@Article{9,
  Title                    = {Accuracy of the actuator disc-RANS approach for predicting the performance and wake of tidal turbines},
  Author                   = {\textsc{Batten, William MJ and Harrison, ME and Bahaj, AS}},
  Year                     = {2013},
  Number                   = {1985},
  Pages                    = {20120293},
  Url                      = {http://rsta.royalsocietypublishing.org/content/371/1985/20120293.short},
  Volume                   = {371},

  File                     = {:/home/nsamarak/Bureau/docs_drone/actuator_disk3.pdf:PDF},
  Journal                  = {Philosophical Transactions of the Royal Society of London A: Mathematical, Physical and Engineering Sciences},
  Publisher                = {The Royal Society}
}

@Book{11,
  Title                    = {Hover and wind-tunnel testing of shrouded rotors for improved micro air vehicle design},
  Author                   = {\textsc{Jason L PEREIRA}},
  Year                     = {2008},
  Publisher                = {ProQuest}
}

@Unpublished{7,
  Title                    = {Experimantal Data of the Explodrone},
  Author                   = {\textsc{Luis L\'{O}PEZ DE VEGA}},
  Year                     = {2015},
  Note                     = {Excell document with measured the forces induced by the blades and simulations via Fluent and StarCCM$+$ with various turbulence models},

  File                     = {:/home/nsamarak/Bureau/docs_drone/Results.xls},
  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}

@Mastersthesis{8,
  Title                    = {Nozzle Flow Control Using Vortex Genrators},
  Author                   = {\textsc{Luis L\'{O}PEZ DE VEGA}},
  Year                     = {2015},

  File                     = {:/home/nsamarak/Bureau/docs_drone/S3Report_LOPEZDEVEGA.pdf},
  Owner                    = {nsamarak},
  School                   = {ISAE-SUPA\'{E}RO},
  Timestamp                = {2016.05.27}
}

@Mastersthesis{6,
  Title                    = {Aerodynamic Inveistigation of Shrouded Propellers},
  Author                   = {\textsc{Thomas BERTHELON}},
  Year                     = {2015},

  File                     = {:/home/nsamarak/Bureau/docs_drone/MainVF1.pdf},
  Owner                    = {nsamarak},
  School                   = {ISAE-SUPA\'{E}RO and ONERA},
  Timestamp                = {2016.05.27}
}

@Online{10,
  Title                    = {ANSYS ICEM CFD},
  Author                   = {ANSYS},
  Url                      = {http://resource.ansys.com/Products/Other+Products/ANSYS+ICEM+CFD},
  Year                     = {2016},
  Month                    = {May},
  Note                     = {ICEM CFD description},

  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}

@Online{5,
  Title                    = {Theorie de Froude relative aux on propeller propulsion or traction},
  Author                   = {M - mecaflux Helicie},
  Url                      = {http://www.heliciel.com/en/helice/calcul-helice-aile/Theorie%20de%20Froude%20relative%20aux%20helices%20de%20traction%20ou%20propulsion.htm},
  Year                     = {2016},
  Month                    = {May},
  Note                     = {Detailed Froude's theorem},

  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}

@Online{3,
  Title                    = {DMFN – Mécanique des fluides numérique - Cassiopée},
  Author                   = {ONERA - THE FRENCH AEROSPACE LAB},
  Url                      = {http://www.onera.fr/fr/dmfn/cassiopee},
  Year                     = {2016},
  Month                    = {May},
  Note                     = {Cassiopée tools description},

  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}

@Online{4,
  Title                    = {elsA - a CFD Software Package for Compressible Flows around Complex Various geometries},
  Author                   = {ONERA - THE FRENCH AEROSPACE LAB},
  Url                      = {http://elsa.onera.fr/elsA/software/pressoft.html},
  Year                     = {2016},
  Month                    = {May},
  Note                     = {Description of elsA},

  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}

@Online{2,
  Title                    = {Overset grids},
  Author                   = {CFD Online},
  Url                      = {http://www.cfd-online.com/Wiki/Overset_grids},
  Year                     = {2016},
  Month                    = {May},
  Note                     = {Description of Chimera method},

  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}

@Online{1,
  Title                    = {Théorie de Froude},
  Author                   = {Wikipédia},
  Url                      = {https://fr.wikipedia.org/wiki/Th%C3%A9orie_de_Froude},
  Year                     = {2016},
  Month                    = {May},
  Note                     = {Froude's theomrem description},

  Owner                    = {nsamarak},
  Timestamp                = {2016.05.27}
}
My error message is :
Process started

This is BibTeX, Version 0.99d (TeX Live 2010) The top-level auxiliary file: myreport.aux A level-1 auxiliary file: acknowledgements.aux A level-1 auxiliary file: abstract.aux A level-1 auxiliary file: ch1.aux A level-1 auxiliary file: ch2.aux A level-1 auxiliary file: ch3.aux I found no \citation commands---while reading file myreport.aux I found no \bibdata command---while reading file myreport.aux I found no \bibstyle command---while reading file myreport.aux (There were 3 error messages)

Process exited with error(s)
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

URL not appearing with Bibtex

Post by Johannes_B »

You explicitely told biblatex to set up everything for the modern bibliography processor biber, but you are using the almost 30 year old processor BibTeX.
Please follow the link to learn how to use biber.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: URL not appearing with Bibtex

Post by Colin93 »

It worked ! Thankyou so much !
Post Reply