lie-algebras-and-their-representations

Source code for my notes on representations of semisimple Lie algebras and Olivier Mathieu's classification of simple weight modules

Commit
09f2535274e3a1e7dbb11da3a66105384f9f7863
Parent
3e0363aa6739dee727bdaae7bc48dd595982755b
Author
Pablo <pablo-escobar@riseup.net>
Date

First draft of an implementation of colored/boxed theorem environments

Diffstat

1 file changed, 29 insertions, 8 deletions

Status File Name N° Changes Insertions Deletions
Modified preamble.tex 37 29 8
diff --git a/preamble.tex b/preamble.tex
@@ -12,6 +12,7 @@
 \usepackage[ordering=Kac]{dynkin-diagrams}
 \usepackage{rank-2-roots}
 \usepackage{imakeidx}
+\usepackage{thmtools}
 
 % Set the default accent color
 \definecolor{mosgreen}{RGB}{29, 135, 17}
@@ -48,15 +49,35 @@
 \setenumerate[0]{label={\normalfont \bfseries(\roman*)}}
 
 % Useful theorem definitions
-\newtheorem{theorem}{Theorem}[chapter]
-\newtheorem{lemma}[theorem]{Lemma}
-\newtheorem{corollary}[theorem]{Corollary}
-\newtheorem{proposition}[theorem]{Proposition}
-\theoremstyle{remark}
+\newtheoremstyle{coloredtheorem}{}{}{\em}{}{\bf\color{mosgreen}}{.}{ }{}
+\newtheoremstyle{coloreddefinition}{}{}{}{}{\bf\color{mosgreen}}{.}{ }{}
+\newtheoremstyle{coloredremark}{}{}{}{}{\itshape\color{mosgreen}}{.}{.5em}{}
+\declaretheorem[
+  shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+  style=coloredtheorem,
+  parent=chapter]{theorem}
+\declaretheorem[
+  shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+  style=coloredtheorem,
+  sibling=theorem]{lemma}
+\declaretheorem[
+  shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+  style=coloredtheorem,
+  sibling=theorem]{corollary}
+\declaretheorem[
+  shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+  style=coloredtheorem,
+  sibling=theorem]{proposition}
+\theoremstyle{coloredremark}
 \newtheorem*{note}{Remark}
-\theoremstyle{definition}
-\newtheorem{definition}[theorem]{Definition}
-\newtheorem{example}[theorem]{Example}
+\declaretheorem[
+  shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+  style=coloreddefinition,
+  sibling=theorem]{definition}
+\declaretheorem[
+  shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+  style=coloreddefinition,
+  sibling=theorem]{example}
 
 % Custom page style
 \fancypagestyle{custom}{%