diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2022-09-13 08:35:59 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2022-09-13 08:35:59 -0400 |
commit | 7e3f1953cb9f2d9be4809449fdb268bfd03d007c (patch) | |
tree | a9c4f3765de66e465ad6f772790c14bea30f2f78 | |
parent | cf2cee3a80b8f1e7030d12649f9e82c68d2cd264 (diff) |
IEEE bibliography with biblatexmacros
-rw-r--r-- | document.sty | 2 | ||||
-rw-r--r-- | macros/calculus.sty | 22 | ||||
-rw-r--r-- | macros/math.sty | 14 | ||||
-rw-r--r-- | main.tex | 5 |
4 files changed, 18 insertions, 25 deletions
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}} + @@ -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} |