From 7e3f1953cb9f2d9be4809449fdb268bfd03d007c Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 13 Sep 2022 08:35:59 -0400 Subject: IEEE bibliography with biblatex --- document.sty | 2 ++ macros/calculus.sty | 22 ---------------------- macros/math.sty | 14 +++++++++++--- main.tex | 5 +++++ 4 files changed, 18 insertions(+), 25 deletions(-) delete mode 100644 macros/calculus.sty diff --git a/document.sty b/document.sty index bc4c987..493c860 100644 --- a/document.sty +++ b/document.sty @@ -7,6 +7,8 @@ % Margin Setup according to University methodology: \RequirePackage[top=2.5cm,bottom=2.5cm,inner=3cm,outer=2.5cm]{geometry} +% IEEE references & bibliography +\RequirePackage[style=ieee]{biblatex} \RequirePackage[T1]{fontenc} % French compatibility \RequirePackage[utf8]{inputenc} % Sensible text encoding \RequirePackage[french]{babel} % French document environment diff --git a/macros/calculus.sty b/macros/calculus.sty deleted file mode 100644 index da749e6..0000000 --- a/macros/calculus.sty +++ /dev/null @@ -1,22 +0,0 @@ -\ProvidesPackage{math}[ -Simple shortcuts I use when write math] - -% To write dx with an upright d and an italicized x, enter \d{x}. -% The format is variable agnostic. -\renewcommand*{\d}{\mathop{}\!\mathrm{d}} - -% Upright character for Euler's constant using \e . -\newcommand*{\e}{\mathop{}\!\mathrm{e}} - -% Makes variable changes for calculus easily explicit in align mode. -% cdv stands for "Changement de variable". -% Here is an example where u=sin(x) and du=-cos(x): -% \cdv{ u }{ \sin(x) }{ -\cos(x) } -% It will print out the words "Changement de variable" and make sure -% that equations such as u= and du= do not get numbered. -\newcommand*{\cdv}[3]{\mathop{}\! - \mathrm{Changement\ de\ variable:}&\nonumber\\ - \ #1 &= #2\nonumber \\ - \d{#1} &= #3\nonumber -} - diff --git a/macros/math.sty b/macros/math.sty index 17cb955..9b9446a 100644 --- a/macros/math.sty +++ b/macros/math.sty @@ -10,7 +10,7 @@ Simple shortcuts I use when write math] % Upright character for Euler's constant using \e . \newcommand*{\e}{\mathop{}\!\mathrm{e}} -% Makes variable changes for calculus easily explicit in align mode. +% Makes variable changes for calculus easily explicit in math mode. % cdv stands for "Changement de variable". % Here is an example where u=sin(x) and du=-cos(x): % \cdv{ u }{ \sin(x) }{ -\cos(x) } @@ -18,7 +18,15 @@ Simple shortcuts I use when write math] % that equations such as u= and du= do not get numbered. \newcommand*{\cdv}[3]{\mathop{}\! \mathrm{Changement\ de\ variable:}&\nonumber\\ - \ #1 &= #2\nonumber \\ - \d{#1} &= #3\nonumber + \ #1 = #2\nonumber \\ + \d{#1} = #3\nonumber } +% Environment to explaing the meaning of the variables contained in an equation. +% TODO: Explain this macro +\RequirePackage{tabularx} +\newenvironment{conditions}[1][Où:] + {#1 \par\vspace{\abovedisplayskip}\noindent + \tabularx{\columnwidth}{>{$}l<{$} @{${}={}$} >{\raggedright\arraybackslash}X}} + {\endtabularx\par\vspace{\belowdisplayskip}} + diff --git a/main.tex b/main.tex index e0bf1c3..ee8806a 100644 --- a/main.tex +++ b/main.tex @@ -5,6 +5,7 @@ \usepackage[T1]{fontenc} \usepackage[french]{babel} +% \addbibresource{bibliography.bib} \nofiles % \institution{Université de Sherbrooke} @@ -22,4 +23,8 @@ % \tableofcontents % \newpage + + +% \newpage +% \printbibliography \end{document} -- cgit v1.2.3