diff --git a/Boites.tex b/Boites.tex index e16387d..cc780ea 100755 --- a/Boites.tex +++ b/Boites.tex @@ -10,21 +10,21 @@ \node [mybox] (box){% \begin{minipage}{0.8\textwidth} \BODY - \end{minipage} }; + \end{minipage} }; \node[fancytitle, right=10pt] at (box.north west) {\textbf{Définition}}; \end{tikzpicture}\end{center}\par } -\NewEnviron{thm}{\par -\begin{center} -\begin{tikzpicture} -\node [mybox] (box){% - \begin{minipage}{0.8\textwidth} - \BODY - \end{minipage} }; -\node[fancytitle, right=10pt] at (box.north west) {\textbf{Théorème}}; -\end{tikzpicture}\end{center}\par -} +% \NewEnviron{thm}{\par +% \begin{center} +% \begin{tikzpicture} +% \node [mybox] (box){% +% \begin{minipage}{0.8\textwidth} +% \BODY +% \end{minipage} }; +% \node[fancytitle, right=10pt] at (box.north west) {\textbf{Théorème}}; +% \end{tikzpicture}\end{center}\par +%} \usepackage{thmbox} \usepackage{xparse} @@ -37,6 +37,14 @@ \endthmbox\vspace*{.75ex}\end{minipage}\end{center}% } +\NewDocumentEnvironment{thm}{o}{% +\begin{center}\begin{minipage}{0.8\textwidth} + \thmbox[M]{\textbf{Théorème \IfNoValueTF{#1}{}{\em (#1)}}}% + %\hspace*{-1.5em}% + } + {% + \endthmbox\vspace*{.75ex}\end{minipage}\end{center}% + } \NewDocumentEnvironment{corol}{o}{% @@ -59,4 +67,4 @@ \newenvironment{rem}{\par\textbf{Remarque: }\nopagebreak}{\par} \newenvironment{exemple}{\par\textbf{Exemple: }\nopagebreak}{\par} -\newenvironment{preuve}{\par\textit{Démonstration: }\nopagebreak}{\par} \ No newline at end of file +\newenvironment{preuve}{\par\textit{Démonstration: }\nopagebreak}{\par} diff --git a/Raccourcis.tex b/Raccourcis.tex index 6b60aff..a0b67f6 100755 --- a/Raccourcis.tex +++ b/Raccourcis.tex @@ -59,7 +59,11 @@ {#1}\longrightarrow {#2} \\ {#3}\longmapsto {#4} \end{array}\right.} - +\newcommand{\vect}[1]{% + \begin{bmatrix} + #1 + \end{bmatrix} +} \makeatletter