Advertisement
tobast

Untitled

May 20th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.61 KB | None | 0 0
  1. \usepackage[dvipsnames]{xcolor}
  2. \usepackage{ifthen}
  3. \usepackage[framemethod=tikz]{mdframed}
  4.  
  5. \newcommand{\linedenvTop}[2]
  6.     {\begin{samepage}\qquad\textbf{#1}\ifthenelse{\equal{#2}{}}{}{ \textbf{(}\emph{#2}\textbf{)}}\trivlist\item[]\ignorespaces}
  7. \newcommand{\linedenvBot}{\endtrivlist\end{samepage}}
  8. \newenvironment{lemma}[1][]{\linedenvTop{Lemme}{#1}}{\linedenvBot}
  9. \surroundwithmdframed[linewidth=1.5pt,
  10.     linecolor=BurntOrange,
  11.     bottomline=false,topline=false,rightline=false]{lemma}
  12.  
  13. \newenvironment{definition}[1][]{\linedenvTop{Définition}{#1}}{\linedenvBot}
  14. \surroundwithmdframed[linewidth=1.5pt,
  15.     linecolor=Plum,
  16.     bottomline=false,topline=false,rightline=false]{definition}
  17.  
  18. \newenvironment{theorem}[1][]{\linedenvTop{Théorème}{#1}}{\linedenvBot}
  19. \surroundwithmdframed[linewidth=2.5pt,
  20.     linecolor=Red,
  21.     bottomline=false,topline=false,rightline=false]{theorem}
  22.  
  23. \definecolor{propositionRed}{HTML}{BE0000}
  24. \newenvironment{prop}[1][]{\linedenvTop{Proposition}{#1}}{\linedenvBot}
  25. \surroundwithmdframed[linewidth=1.5pt,
  26.     linecolor=propositionRed,
  27.     bottomline=false,topline=false,rightline=false]{prop}
  28.  
  29. %\newenvironment{proof}{\textbf{Proof}\\}{}
  30. \surroundwithmdframed[linewidth=1.0pt,
  31.     linecolor=Blue,
  32.     bottomline=false,topline=false,rightline=false]{proof}
  33.  
  34. \newenvironment{notation}[1][]{\linedenvTop{Notation}{#1}}{\linedenvBot}
  35. \surroundwithmdframed[linewidth=1.5pt,
  36.     linecolor=Brown,
  37.     bottomline=false,topline=false,rightline=false]{notation}
  38.  
  39. \newenvironment{example}[1][]{\linedenvTop{Exemple}{#1}}{\linedenvBot}
  40. \surroundwithmdframed[linewidth=1.5pt,
  41.     linecolor=LimeGreen,
  42.     bottomline=false,topline=false,rightline=false]{example}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement