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.