summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/macros.tex90
-rw-r--r--config/preambule.tex18
2 files changed, 108 insertions, 0 deletions
diff --git a/config/macros.tex b/config/macros.tex
new file mode 100644
index 0000000..2b69620
--- /dev/null
+++ b/config/macros.tex
@@ -0,0 +1,90 @@
+%%% Emacs: -*- mode:latex; coding:utf-8; -*-
+
+%%
+%% Macros pour les formules
+%%
+
+%% Opérateurs en caractères romains
+\DeclareMathOperator{\Hom}{Hom}
+\DeclareMathOperator{\Id}{Id}
+\DeclareMathOperator{\Ker}{Ker}
+\DeclareMathOperator{\Fix}{Fix}
+\DeclareMathOperator{\pgcd}{pgcd}
+\DeclareMathOperator{\car}{car}
+\DeclareMathOperator{\Frob}{Frob}
+
+\DeclareMathOperator{\Tr}{Tr}
+\DeclareMathOperator{\N}{N}
+
+%% Ensembles usuels
+\newcommand{\ZZ}{\mathbf{Z}}
+\newcommand{\NN}{\mathbf{N}}
+\newcommand{\RR}{\mathbf{R}}
+\newcommand{\QQ}{\mathbf{Q}}
+\newcommand{\CC}{\mathbf{C}}
+\newcommand{\PP}{\mathbf{P}}
+\newcommand{\FF}{\mathbf{F}}
+\newcommand{\GG}{\mathbf{G}}
+
+%% Divers
+\newcommand{\bo}{/} % barre oblique apparaissant dans A/k
+
+\newcommand{\Legendre}[2]{\left(\frac{#1}{#2}\right)}
+
+%% Tiret et trait d'union en mode maths
+
+% Trouvé sur <URL: http://tug.org/pipermail/luatex/2010-October/002192.html >
+\makeatletter
+\def\DeclareUnicodeMathSymbol#1#2#3#4{
+ \global\luatexUmathchardef#1=
+ "\mathchar@type#2
+ "\the\csname sym#3\endcsname
+ #4
+}
+\makeatother
+
+%\DeclareMathSymbol{\tiret}{\mathord}{operators}{"2013}
+\DeclareUnicodeMathSymbol{\tiret}{\mathord}{operators}{"2013}
+\DeclareMathSymbol{\traitdunion}{\mathord}{operators}{"2D}
+
+%% Fabrice n'aime pas les noms anglais
+\let\chap\widehat
+\let\sur\overline
+\let\sous\underline
+
+%%
+%% Environnements français
+%%
+
+\newtheorem{lemme2}[subsubsection]{Lemme}
+\newtheorem{proposition2}[subsubsection]{Proposition}
+\newtheorem{theoreme2}[subsubsection]{Théorème}
+% Ce qui suit définit l'environnement {théorème2} comme exactement synonyme de {theoreme2}
+\expandafter\expandafter\expandafter\let\expandafter\expandafter\csname théorème2\endcsname\csname theoreme2\endcsname
+\expandafter\expandafter\expandafter\let\expandafter\expandafter\csname endthéorème2\endcsname\csname endtheoreme2\endcsname
+\newtheorem{corollaire2}[subsubsection]{Corollaire}
+\newtheorem{definition2}[subsubsection]{Définition}
+% Ce qui suit définit l'environnement {définition2} comme exactement synonyme de {definition2}
+\expandafter\expandafter\expandafter\let\expandafter\expandafter\csname définition2\endcsname\csname definition2\endcsname
+\expandafter\expandafter\expandafter\let\expandafter\expandafter\csname enddéfinition2\endcsname\csname enddefinition2\endcsname
+\newtheorem{remarque2}[subsubsection]{Remarque}
+\newtheorem{remarques2}[subsubsection]{Remarques}
+\newtheorem{exemple2}[subsubsection]{Exemple}
+\newtheorem{exemples2}[subsubsection]{Exemples}
+\newtheorem{exercice2}[subsubsection]{Exercice}
+
+\renewcommand{\proofname}{Démonstration}
+% Ce qui suit définit l'environnement {démo} comme exactement synonyme de {proof}
+\expandafter\let\csname démo\endcsname\proof
+\expandafter\let\csname enddémo\endcsname\endproof
+
+%%
+%% Macros générales
+%%
+
+%% Référence externe (chapitre #1, référence #2)
+\newcommand\refext[2]{\textbf{#1}-\ref{#2}}
+
+%% Commentaires
+\newcommand\commentaire[1]{\textcolor{Magenta}{#1}}
+\newcommand\XXX{\textcolor{Magenta}{(XXX)}}
diff --git a/config/preambule.tex b/config/preambule.tex
new file mode 100644
index 0000000..976b34c
--- /dev/null
+++ b/config/preambule.tex
@@ -0,0 +1,18 @@
+%%% Emacs: -*- mode:latex; coding:utf-8; -*-
+%%
+%% Les packages à inclure.
+%%
+\usepackage{amsmath}
+\usepackage{amssymb}
+%\usepackage{xr-hyper}
+%% TEMPORAIRE :
+\newcommand\externaldocument[1]{\relax}
+\usepackage[pagebackref,unicode]{hyperref}
+\usepackage[usenames,dvipsnames]{xcolor}
+\usepackage{fontspec}
+\usepackage[math-style=ISO,bold-style=upright]{unicode-math}
+%%
+%% Polices
+%%
+\setmainfont{Linux Libertine O}
+\setmathfont{XITS Math}