From 41908fb402a6b27b8a5128d890fa2286d7a53ac6 Mon Sep 17 00:00:00 2001 From: Paul ALNET Date: Sat, 3 Jun 2023 10:26:50 +0200 Subject: [PATCH] tex :add bibliography --- README.md | 3 ++- latex/bibliography.bib | 10 ++++++++++ latex/content.tex | 1 + latex/main.tex | 9 ++++++--- 4 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 latex/bibliography.bib diff --git a/README.md b/README.md index 0bebf56..40f2a04 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,5 @@ trouver un argument solide sur pk on a choisi ce projet Install the necessary tools with `sudo apt-get install texlive-full`. Navigate to `latex` directory and then run `pdflatex main.tex`. The output pdf -should be at `main.pdf`. +should be at `main.pdf`. You may want to run `biber main` first, to compile the +bibliography. diff --git a/latex/bibliography.bib b/latex/bibliography.bib new file mode 100644 index 0000000..d04fa1f --- /dev/null +++ b/latex/bibliography.bib @@ -0,0 +1,10 @@ +@book{hofri:1987, + author = {Hofri, M.}, + title = {Probabilistic Analysis of Algorithms: On Computing Methodologies for + Computer Algorithms Performance Evaluation}, + year = {1987}, + isbn = {0387965785}, + publisher = {Springer-Verlag}, + address = {Berlin, Heidelberg}, +} + diff --git a/latex/content.tex b/latex/content.tex index e90eab5..5f6dd55 100644 --- a/latex/content.tex +++ b/latex/content.tex @@ -33,6 +33,7 @@ and performance, both in resource consumption and in box usage. \section{Bin packing use cases} +\cite{hofri:1987} diff --git a/latex/main.tex b/latex/main.tex index 6a0b0c7..5c16dda 100644 --- a/latex/main.tex +++ b/latex/main.tex @@ -19,9 +19,10 @@ \usepackage{minitoc} \usepackage{pdfpages} -\usepackage{biblatex} +\usepackage[style=iso-alphabetic]{biblatex} \addbibresource{bibliography.bib} + \input{advanced.params/tikz.conf} \input{advanced.params/misc.commands} \input{cover/covermain.tex} @@ -51,8 +52,10 @@ \include{content} -%\addcontentsline{toc}{section}{Bibliography} -%\printbibliography +% BIBLIOGRAPHIE +\addcontentsline{toc}{section}{Bibliography} +\printbibliography[title={Bibliography}] + % TABLE DES ANNEXES