BibTeX, biblatex and biberURL not appearing with Bibtex

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

URL not appearing with Bibtex

Post by Colin93 »

Hi everyone

I need to include websites in my references ans I'm using Bibtex. As you can see I use the package "url" but the websites do not appear on my pdf. Could you help me ?

Here's my premable :

Code: Select all

\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{nomencl,etoolbox,siunitx,ragged2e}
And here are my references in my references section. This is a separate file :

Code: Select all

@Unpublished{5,
author = {M - mecaflux Heliciel},
title = {Theorie de Froude relative aux on propeller propulsion or traction},
OPTmonth = {May},
OPTyear = {2016},

OPTannote = {http://www.heliciel.com/en/helice/calcul-helice-aile/Theorie%20de%20Froude%20relative%20aux%20helices%20de%20traction%20ou%20propulsion.htm},
}

@misc{6,
  OPTauthor = {ONERA - THE FRENCH AEROSPACE LAB},
  OPTtitle = {elsA - a CFD Software Package for Compressible Flows around Complex Various geometries},
  OPThowpublished = "\url{http://elsa.onera.fr/elsA/software/pressoft.html}", 
  OPTnote = "[Online; accessed May 2016]"
}

@misc{7,
  OPTauthor = {ONERA - THE FRENCH AEROSPACE LAB},
  OPTtitle = {DMFN – Mécanique des fluides numérique - Cassiopée},
  OPThowpublished = "\url{http://www.onera.fr/fr/dmfn/cassiopee}",
  OPTnote = "[Online; accessed May 2016]"
}

@Misc{8,
OPTauthor = {ANSYS},
OPTtitle = {ANSYS ICEM CFD},
OPThowpublished = "\url{http://resource.ansys.com/Products/Other+Products/ANSYS+ICEM+CFD}",
OPTnote = "[Online; accessed May 2016]"
}
I've tried different ways to make the websites appear...

Recommended reading 2024:

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

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

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 »

Bibliographystyle? Most of the thousands of bibliographystyles for BibTeX do not support the inclusion of websites.

On the other hand, all styles for the modern biblatex support online entries and url-fields.
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 »

Hi Johannes_B

Yes I'm using Bibliographystyle...
So you're saying I should use Biblatex instead ? I didn't know this command... Thankyou !
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 »

My question was unclear. Which bibliographystyle are you using? Without knowing that, it is impossible to answer your question.

Yes, if you are not publishing in a journal, package biblatex is the way to go.
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 »

Errr I have these commands in my template...

Code: Select all

\bibliographystyle{plain}
\renewcommand{\bibname}{References}
\addcontentsline{toc}{chapter}{\numberline{}References}
\lhead[\fancyplain{}{\bfseries \thepage}]%
      {\fancyplain{}{\bfseries References}}
\rhead[\fancyplain{}{\bfseries References}]%
      {\fancyplain{}{\bfseries \thepage}}
\cfoot{}%
\bibliography{references}
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 »

Unless your plain.bst is not modified (which it shouldn't be) it shouldn't know any of the stuff starting with OPT. So it really isn't surprising that nothing is shown. Get rid of that OPT and just leave author, title, howpublished etc.
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'm now using this code :

Code: Select all

\section*{Bibliography}
\bibliographystyle{apalike}
\bibliography{bibliography.bib} 
I've uploaded the necessary packages in my preamble.

I'm using JabRef and I've the activated advanced Biblatex mode (as you have adviced someone earlier on http://tex.stackexchange.com/questions/ ... erence-man) so I can use @online. However the urls still do not appear on the pdf.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: URL not appearing with Bibtex

Post by Johannes_B »

Because you are not using biblatex, and if you do it clashes with the stuff at the end. You can't just say biblatex in jabref. Jabref is completely irrelevant here.

Please read some basic material on biblatex. Also, apa-citation and bibliography is completely different to a plain style. Since i don't know what you are trying to achive, i cannot even give a better advice.

Now, Weekend!
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

U're right. I need to provide you a better example of what I do...

Here's my main .tex code. Pls click on pdf Viewer as u'll have an error when u run this code. You can nevertheless see the pdf output.

Code: Select all

\documentclass[a4paper,12pt]{book}

%You can include all sorts of packages to get additional
%functionalities
\usepackage{graphicx}
\usepackage{subfigure}
%\usepackage[lofdepth,lotdepth]{subfig}
\usepackage{longtable}
\usepackage{amsfonts,amsthm,amssymb}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{color}
\usepackage{geometry}
%\usepackage{rotating}
\usepackage{lscape}
\usepackage{stmaryrd}
%\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\usepackage[hyperindex]{hyperref}

\usepackage{lettrine}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\usepackage{fourier}
\usepackage{url}
%\usepackage{hyperref}
\usepackage{gensymb}
\usepackage{enumerate}
\usepackage{nicefrac}

\usepackage{enumitem}
\usepackage{amssymb}
\usepackage{wrapfig}
\usepackage[]{natbib}

\usepackage{nomencl,etoolbox,siunitx,ragged2e}



%You can also define your own mathematics shorthands
\newcommand{\diff}{\mbox{\,d}}
\newcommand{\grad}{\mbox{$\nabla$}}
\newcommand{\divg}{\mbox{$\nabla\cdot\,$}}
\newcommand{\rot}{\mbox{$\nabla\times$}}
\newcommand{\pdiff}{\mbox{$\,\partial$}}

%Please do not mess-up with margins
%\setlength{\textwidth}{15.7cm}
%\setlength{\textheight}{22.3cm}
%\setlength{\topmargin}{0cm}
%\setlength{\oddsidemargin}{.22cm}
%\setlength{\marginparsep}{2mm}
%\setlength{\marginparwidth}{10mm}
%\setlength{\parindent}{0mm}
%\setlength{\parskip}{1.7mm}

%Finally, set fancy headers and footers - you need to make
%minor adjustments to this. But no need to understand all the
%details. Please don't change the style unless explicitly asked to.
\pagestyle{fancy}
%\addtolength{\headwidth}{\marginparsep}
%\addtolength{\headwidth}{\marginparwidth}
\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{Internship Report submitted in fulfilment for the requirement for the Degree of Master's in Fuid Mechanics : Aerodynamics and Aerocoustics at Université Pierre et Marie Curie, Paris} \\\vspace{0.5cm}\LARGE{ Numerical Simulation of a flow in  a propulsive system of an MAV}}
%\author{By \textsc{Nathasha SAMARAKONE} \\ 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{Grégory Delattre}\\
%Applied Aerodynamics Department \\
%Helicopters, Propellers, Turbomachines \\
%ONERA, The French Aerospace Lab - Meudon
\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}
%\clearemptydoublepage

%\bibliographystyle{plain}
%\renewcommand{\bibname}{References}
%\addcontentsline{toc}{chapter}{\numberline{}References}
%\lhead[\fancyplain{}{\bfseries \thepage}]%
%      {\fancyplain{}{\bfseries References}}
%\rhead[\fancyplain{}{\bfseries References}]%
%      {\fancyplain{}{\bfseries \thepage}}
%\cfoot{}%
%\bibliography{references}

\section*{Bibliography}
%\bibliographystyle{unsrt}
%\bibliographystyle{plainnat}
\bibliographystyle{apalike}
%\bibliographystyle{acm}
%\bibliographystyle{unsrt}
\bibliography{bibliography.bib} 

\end{document}
Here's what my bibliography looks like...

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}
}
For every entry that's a @online, I'd like the url to appear on my pdf.
I'm going to read more about BibLatex. Thankyou for your advice.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

URL not appearing with Bibtex

Post by Colin93 »

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

[color=#4000BF! 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'.

! Package biblatex Error: File 'myreport.bbl' not created by biblatex.

! Package biblatex Error: '\bibliographystyle' invalid.

! LaTeX Error: Can be used only in preamble. --> for line with \bibliography{bibliography.bib}
Post Reply