summaryrefslogtreecommitdiffstats
path: root/config/macros.tex
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2013-02-28 16:36:31 +0100
committerDavid A. Madore <david+git@madore.org>2013-02-28 16:36:31 +0100
commitdab454d6594f533f1fcbe0c44f08b7865742625f (patch)
treee69aa7a89278adec4f312eb69a54ce93a723939a /config/macros.tex
parent8b7b8eb62f578837c67478c1e65939104614d43c (diff)
downloadgalois-dab454d6594f533f1fcbe0c44f08b7865742625f.zip
galois-dab454d6594f533f1fcbe0c44f08b7865742625f.tar.gz
galois-dab454d6594f533f1fcbe0c44f08b7865742625f.tar.bz2
Transformation en LuaTeX: création d'une nouvelle config, transformation de corps-finis.tex
Diffstat (limited to 'config/macros.tex')
-rw-r--r--config/macros.tex90
1 files changed, 90 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)}}