-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththeoremNames.sty
26 lines (19 loc) · 994 Bytes
/
theoremNames.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\AtBeginDocument{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Environnement pour les théorèmes, définitions, exemples et autre %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\theoremstyle{plain}
\newtheorem{theorem}{Théorème}[section]
\newtheorem{lemma}[theorem]{Lemme}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollaire}
\newtheorem{preuve}{Preuve}[chapter]
\theoremstyle{definition}
\newtheorem{definition}{Définition}[section]
\newtheoremstyle{note}{}{}{}{}{\itshape}{~--~}{ }{\thmname{#1}\thmnumber{ #2}}
\theoremstyle{note}
\newtheorem{example}{Exemple}[section]
\newtheorem{remark}{Remarque}[section]
\renewenvironment{proof}[1][Démonstration]{\noindent\textit{#1}.\nopagebreak\begin{list}{}{\setlength\leftmargin{10pt}}\item}{\end{list}$\square$\medskip}
\newenvironment{myproof}[1][Démonstration]{\noindent\textit{#1}.\nopagebreak\begin{list}{}{\setlength\leftmargin{10pt}}\item}{\hfill$\diamond$\end{list}\smallskip}
}