Commit 6f706f7b authored by Maxime Bombar's avatar Maxime Bombar

French_customized_commands

parent 14e9e7a4
\usepackage{xcolor}
\usepackage{mdframed}
%% "section" option numbers theorems with respect to the current section
%%
%% 1- Section
%% Theorem 1.1
%% Theorem 1.2
%% 2- Section
%% Theorem 2.1
%%
\newtheorem{default}{default}[section]
%% To change a theorem background, simply add background=$color
%% where $color is the name of a color, either existing or defined via \defincolor :
%% \definecolor{light-gray}{gray}{0.95}
%% \definecolor{mostly-white}{gray}{0.97}
\theoremstyle{definition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{results}[default]{Resultats}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=true,
bottomline=false]{thm}[default]{Théorème}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{prop}[default]{Proposition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{lemma}[default]{Lemme}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{cor}[default]{Corollaire}
\theoremstyle{remark}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{rem}[default]{Remarque}
\theoremstyle{definition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=true,
bottomline=false]{defi}[default]{Définition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{hyp}[default]{Hypothèse}
\newtheoremstyle{note}% name of the style to be used
{\topsep}% measure of space to leave above the theorem. E.g.: 3pt
{\topsep}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{\bf}% name of head font
{}% punctuation between head and body
{.5em}% space after theorem head; " " = normal interword space
{\thmname{#1}\thmnumber{ }:\thmnote{ #3}}% Manually specify head
\theoremstyle{note}
\newmdtheoremenv[%
topline=true,
rightline=true,
leftline=true,
bottomline=true]{Note}[]{Note}
\theoremstyle{plain}
\newtheorem*{notation}{Notation}
\newtheorem*{smalllemma}{lemma}
\theoremstyle{remark}
\newtheorem*{myproof}{Démonstration du}
\newtheorem*{smallproof}{Démonstration}
% Abstract %
\makeatletter %useful hack : changes default code for @ from 12 to 11; \makeatother turns it back
\newenvironment{chapabstract}{%
\begin{center}%
\bfseries Abstract
\end{center}}%
{\par}
\makeatother
% Appendix %
\usepackage[toc,page]{appendix}
% Useful shortcuts %
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Nstar}{\mathbb{N}^{\ast}}
\newcommand{\K}{\mathbb{K}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Rplus}{\mathbb{R}^{+}}
\newcommand{\Rstar}{\mathbb{R}^{\ast}}
\newcommand{\Rplusstar}{\mathbb{R}^{\ast}_{+}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Cstar}{\mathbb{C}^{\ast}}
\newcommand{\Ham}{\mathbb{H}}
\newcommand{\Lev}{\mathcal{L}}
\newcommand{\Prob}{\mathbb{P}}
\newcommand{\eps}{\varepsilon}
\newcommand{\E}{\mathbb{E}}
\newcommand{\real}{\mathfrak{R}}
\newcommand{\im}{\mathfrak{I}}
\newcommand{\Norm}{\mathcal{N}}
\newcommand{\cvdis}{\Longrightarrow}
\newcommand{\MnR}{\mathcal{M}_n(\R)}
\newcommand{\F}{\mathbb{F}}
\newcommand{\Legendre}[2]{\begin{pmatrix}\dfrac{#1}{#2}\end{pmatrix}} % Legendre Symbol
\newcommand{\inner}[1]{\langle #1 \rangle} % Inner product
% Operators
\newcommand{\Fix}{\operatorname{Fix}}
\newcommand{\Ker}{\operatorname{Ker}}
\newcommand{\Img}{\operatorname{Im}}
\newcommand{\Vect}{\operatorname{Vect}}
% Require dsfont
\usepackage{dsfont}
\newcommand{\indic}{\mathds{1}}
% For proofs
\newcommand*{\QED}{\begin{flushright}\hfill\ensuremath{\square}\end{flushright}}
% To define a function
\newcommand{\fun}[5]{#1 : \left \{ \begin{aligned} #2 & \to #3 \\ #4 & \mapsto #5\end{aligned}\right. \phantom{\hspace{10cm}}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment