summaryrefslogtreecommitdiff
path: root/french.sty
diff options
context:
space:
mode:
Diffstat (limited to 'french.sty')
-rw-r--r--french.sty28
1 files changed, 28 insertions, 0 deletions
diff --git a/french.sty b/french.sty
new file mode 100644
index 0000000..9e67a50
--- /dev/null
+++ b/french.sty
@@ -0,0 +1,28 @@
+\ProvidesPackage{french}
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Packages %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+\RequirePackage[utf8]{inputenc} % Sensible text encoding
+\RequirePackage[T1]{fontenc} % French compatibility
+\RequirePackage[french]{babel} % French document environment
+\RequirePackage[french]{cleveref} % To make eqation reference better
+
+
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% French Table Naming %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Sets the "Table - xx" to "Tableau - xx"
+\renewcommand{\frenchtablename}{Tableau}
+\renewcommand{\thetable}{\thesection-\arabic{table}}
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% French Table Naming %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Sets "Appendix" to "Annexe"
+\addto\captionsfrench{
+ \renewcommand\appendixname{Annexe}
+ \renewcommand\appendixpagename{Annexe}
+}