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
896a555b6440d2ead5110c6de05094ecf83a5de0
Parent
eb986e432fbd9ae3d07e4d5cd89a4f48ec017c49
Author
Pablo <pablo-escobar@riseup.net>
Date

Simplified the code for boxed theorems

Diffstat

1 file changed, 2 insertions, 11 deletions

Status File Name N° Changes Insertions Deletions
Modified preamble.tex 13 2 11
diff --git a/preamble.tex b/preamble.tex
@@ -59,14 +59,11 @@
     \newtheorem{inner#1}[theorem]{#2}
     \newenvironment{#1}[1][{}]
       {
+        \savenotes
         \begin{tcolorbox}[colback=thmbackground, colframe=thmrule]
-        \if\relax\detokenize{##1}\relax
-        \begin{inner#1}
-        \else
         \begin{inner#1}[##1]
-        \fi
       }
-      {\end{inner#1}\end{tcolorbox}}
+      {\end{inner#1}\end{tcolorbox}\spewnotes}
   }
 
 % Green theorem styles
@@ -86,12 +83,6 @@
 \theoremstyle{coloredremark}
 \newtheorem*{note}{Remark}
 
-% Prevent tcolorbox from bundling footnotes inside color boxes.
-% This prevents footnotes inside of boxed theorems from pilling up inside of
-% the corresponding boxes
-\BeforeBeginEnvironment{tcolorbox}{\savenotes}
-\AfterEndEnvironment{tcolorbox}{\spewnotes}
-
 % Custom page style
 \fancypagestyle{custom}{%
     \fancyhead[EL]{%