summaryrefslogtreecommitdiffstats
path: root/config/macros.tex
diff options
context:
space:
mode:
Diffstat (limited to 'config/macros.tex')
-rw-r--r--config/macros.tex45
1 files changed, 44 insertions, 1 deletions
diff --git a/config/macros.tex b/config/macros.tex
index a88c2f6..d6685ff 100644
--- a/config/macros.tex
+++ b/config/macros.tex
@@ -17,10 +17,15 @@
\DeclareMathOperatorWithFont{\Int}{\mathsf}{Int}
\DeclareMathOperatorWithFont{\Out}{\mathsf}{Out}
+\DeclareMathOperatorWithFont{\Sym}{\mathsf}{Sym} % quelle police utiliser ?
+
\DeclareMathOperatorWithFont{\Der}{\mathrm}{Dér} % quelle police utiliser ?
\DeclareMathOperatorWithFont{\Id}{\mathrm}{Id}
\DeclareMathOperatorWithFont{\Ker}{\mathrm}{Ker}
+\DeclareMathOperatorWithFont{\Coker}{\mathrm}{Coker}
+\DeclareMathOperatorWithFont{\rmIm}{\mathrm}{Im}
+\AtBeginDocument{\let\Im\rmIm} % Écrase la définition standard de \Im
\DeclareMathOperatorWithFont{\Fix}{\mathrm}{Fix}
\DeclareMathOperatorWithFont{\Stab}{\mathrm}{Stab}
@@ -40,10 +45,12 @@
\DeclareMathOperatorWithFont{\red}{\mathrm}{red}
\DeclareMathOperatorWithFont{\Idem}{\mathrm}{Idem}
\DeclareMathOperatorWithFont{\Ann}{\mathrm}{Ann}
+\DeclareMathOperatorWithFont{\rad}{\mathrm}{rad}
\DeclareMathOperatorWithFont{\dec}{\mathrm}{déc}
\DeclareMathOperatorWithFont{\Gal}{\mathrm}{Gal}
\DeclareMathOperatorWithFont{\Result}{\mathrm}{Résult}
+\DeclareMathOperatorWithFont{\Pic}{\mathrm}{Pic}
\DeclareMathOperatorWithFont{\Br}{\mathrm}{Br}
\DeclareMathOperatorWithFont{\Azu}{\mathrm}{Azu}
@@ -54,6 +61,7 @@
\DeclareMathOperatorWithFont{\NSpin}{\mathrm}{N\!S}
\DeclareMathOperatorWithFont{\ev}{\mathrm}{ev}
+\DeclareMathOperatorWithFont{\pr}{\mathrm}{pr}
\DeclareMathOperatorWithFont{\ob}{\mathsf}{Ob}
@@ -64,10 +72,13 @@
\DeclareMathOperatorWithFont{\Orth}{\mathrm}{O}
\DeclareMathOperatorWithFont{\SOrth}{\mathrm}{SO}
+\DeclareMathOperatorWithFont{\rang}{\mathrm}{rang}
\DeclareMathOperatorWithFont{\degtr}{\mathrm}{deg.tr}
\DeclareMathOperatorWithFont{\diag}{\mathrm}{diag}
+\DeclareMathOperatorWithFont{\Res}{\mathrm}{Rés}
+
% Exposants
\newcommand{\op}{^{\mathsf{op}}}
\newcommand{\sep}{^{\mathrm{sép}}}
@@ -108,7 +119,8 @@
\newcommand{\Ens}{\categ{Ens}}
\newcommand{\Alg}{\categ{Alg}}
-%% Tiret et trait d'union en mode maths
+%% Macros générales
+\providecommand*\clap[1]{\hbox to 0pt{\hss#1\hss}}
% Trouvé sur <URL: http://tug.org/pipermail/luatex/2010-October/002192.html >
\makeatletter
@@ -120,6 +132,19 @@
}
\makeatother
+% Adapté du package mathtools
+\makeatletter
+\newcommand\mathrlap[1][\@empty]{
+ \ifx\@empty#1\@empty
+ \expandafter \mathpalette \expandafter \sub@mathrlap
+ \else
+ \expandafter \sub@mathrlap \expandafter #1
+ \fi
+}
+\def\sub@mathrlap#1#2{{}\rlap{$\m@th#1{#2}$}}
+\makeatother
+
+%% Tiret et trait d'union en mode maths
%\DeclareMathSymbol{\tiret}{\mathord}{operators}{"2013}
\DeclareUnicodeMathSymbol{\tiret}{\mathord}{operators}{"2013}
\DeclareMathSymbol{\traitdunion}{\mathord}{operators}{"2D}
@@ -128,6 +153,12 @@
\DeclareUnicodeMathSymbol{\boxempty}{\mathord}{operators}{"25A1}
\DeclareUnicodeMathSymbol{\bimu}{\mathord}{operators}{"1D6CD}
+%% En attendant de trouver une solution (cf. \bigboxtimes de mathabx qui ne marche pas avec nos paquets)
+\newcommand{\bigboxtimes}{\mathop{\lower.6ex\hbox{\huge$\boxtimes$}}\limits}
+
+%% Produit restreint
+\newcommand{\resprod}{\mathop{\mathrlap{\coprod}{\prod}}}
+
%% Une horreur pour avoir \lwave et compagnie sans inclure le package mathdesign:
\DeclareFontFamily{OMX}{mdput}{}
\DeclareFontShape{OMX}{mdput}{m}{n}{<-> mdputr7v}{}
@@ -160,6 +191,7 @@
%% Fabrice n'aime pas les noms anglais
\let\chap\widehat
+\let\gtilde\widetilde
\let\sur\overline
\let\sous\underline
\let\dessusdessous\stackrel
@@ -219,6 +251,17 @@
\newcommand{\bbkac}[4]{\bbk{A.C.}{#1}{#2}{#3}{#4}}
\newcommand{\bbka}[4]{\bbk{A.}{#1}{#2}{#3}{#4}}
+\newcommand\BourbakiAC[1]{[{\bf AC}, #1]}
+\newcommand\BourbakiTS[1]{[{\bf TS}, #1]}
+\newcommand\BourbakiE[1]{[{\bf E}, #1]}
+\newcommand\BourbakiA[1]{[{\bf A}, #1]}
+\newcommand\BourbakiEVT[1]{[{\bf EVT}, #1]}
+\newcommand\BourbakiFVR[1]{[{\bf FVR}, #1]}
+\newcommand\BourbakiINT[1]{[{\bf INT}, #1]}
+\newcommand\BourbakiVAR[1]{[{\bf VAR}, #1]}
+\newcommand\BourbakiLIE[1]{[{\bf LIE}, #1]}
+\newcommand\BourbakiTG[1]{[{\bf TG}, #1]}
+
%%
%% Paramétrages divers
%%