Skip to content

Commit 1a98920

Browse files
committed
Haven't updated this in a few years oops
1 parent 651571c commit 1a98920

File tree

1 file changed

+78
-10
lines changed

1 file changed

+78
-10
lines changed

texmf/tex/latex/shen/shen.sty

+78-10
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
\usepackage[framemethod=TikZ]{mdframed} % MDFramed
180180
\ifdocisbeamer\else
181181
% enum customization; breaks beamer
182-
\usepackage{enumitem}
182+
\usepackage[shortlabels]{enumitem} % \begin{enumerate}[(a)]
183183
\fi
184184
\usepackage{mathtools} % Math tools
185185
\usepackage{epigraph} % Quotes!
@@ -223,7 +223,10 @@
223223
\newcommand{\vphi}{\varphi}
224224
\newcommand{\veps}{\varepsilon}
225225
\newcommand{\CC}{\mathbb C}
226-
\newcommand{\FF}{\mathbb F}
226+
\ifchessdiagenabled
227+
\else
228+
\newcommand{\FF}{\mathbb F}
229+
\fi
227230
\newcommand{\NN}{\mathbb N}
228231
\newcommand{\QQ}{\mathbb Q}
229232
\newcommand{\RR}{\mathbb R}
@@ -243,10 +246,15 @@
243246
\rule{0.95\linewidth}{.7pt}\hspace{\fill}
244247
\end{center}
245248
}
246-
\newenvironment{moral}{%
247-
\begin{mdframed}[linecolor=green!70!black]%
248-
\bfseries\color{green!70!black}}%
249-
{\end{mdframed}}
249+
\ifboxthmon
250+
\ifcolorthmon
251+
\else
252+
\newenvironment{moral}{%
253+
\begin{mdframed}[linecolor=green!70!black]%
254+
\bfseries\color{green!70!black}}%
255+
{\end{mdframed}}
256+
\fi
257+
\fi
250258
\DeclareMathOperator*{\lcm}{lcm}
251259
\DeclareMathOperator{\cis}{cis}
252260
\DeclareMathOperator{\ord}{ord}
@@ -258,6 +266,8 @@
258266
\DeclareMathOperator{\tr}{tr}
259267
\DeclareMathOperator{\rank}{rank}
260268
\DeclareMathOperator{\img}{im}
269+
\DeclareMathOperator{\Var}{Var}
270+
\DeclareMathOperator{\Cov}{Cov}
261271

262272
% PROMYS Rational Points on Hyperelliptic Curves
263273
% taught by Jennifer Balakrishnan
@@ -274,6 +284,25 @@
274284
\DeclareMathOperator{\Gal}{Gal}
275285
\DeclareMathOperator{\supp}{supp}
276286

287+
% WVM Linalg
288+
\newenvironment{amatrix}[1]{%
289+
\left[\begin{array}{@{}*{#1}{c}|c@{}}
290+
}{%
291+
\end{array}\right]
292+
}
293+
294+
% 18.06 ASE HW
295+
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
296+
\hskip -\arraycolsep
297+
\let\@ifnextchar\new@ifnextchar
298+
\array{#1}}
299+
300+
% 18.225
301+
\DeclareMathOperator{\ex}{ex}
302+
303+
% 6.046
304+
\DeclareMathOperator{\Prob}{Pr}
305+
277306
% \wideparen for good-looking arc symbols
278307
\DeclareFontFamily{OMX}{yhex}{}
279308
\DeclareFontShape{OMX}{yhex}{m}{n}{<->yhcmex10}{}
@@ -336,10 +365,13 @@
336365
\ifcolorsecstyle
337366
\hypersetup{
338367
colorlinks,
339-
citecolor=ForestGreen,
340-
filecolor=RubineRed,
368+
%citecolor=ForestGreen,
369+
%filecolor=RubineRed,
370+
citecolor=RoyalBlue,
371+
filecolor=RoyalBlue,
341372
linkcolor=RoyalBlue,
342-
urlcolor=RubineRed
373+
%urlcolor=RubineRed
374+
urlcolor=RoyalBlue
343375
}
344376

345377
\newcommand{\announcefont}{\bfseries
@@ -584,6 +616,29 @@
584616
headpunct={.\;},
585617
]{thminlineorangebox}
586618

619+
% lol oops this is not yellow
620+
\mdfdefinestyle{mdinlineyellowbox}{%
621+
skipabove=8pt,
622+
linewidth=3pt,
623+
rightline=false,
624+
leftline=false,
625+
%leftline=true,
626+
topline=false,
627+
bottomline=false,
628+
linecolor=black,
629+
linecolor=RubineRed!70!black,
630+
nobreak=true,
631+
backgroundcolor=RubineRed!5,
632+
}
633+
\declaretheoremstyle[
634+
headfont=\sffamily\bfseries\color{Dandelion},
635+
spaceabove=0pt,
636+
spacebelow=0pt,
637+
mdframed={style=mdinlineyellowbox},
638+
%headpunct={.\;},
639+
headpunct={},
640+
]{thminlineyellowbox}
641+
587642
\mdfdefinestyle{mdgreenbox}{%
588643
skipabove=8pt,
589644
linewidth=2pt,
@@ -727,6 +782,14 @@
727782
\declaretheorem[style=thmblackbox,sibling=theorem,name=Fact]{fact}
728783
\declaretheorem[style=thmpurplebox,sibling=theorem,name=Definition]{definition}
729784
\declaretheorem[style=thmpurplebox,numbered=no,name=Definition]{definition*}
785+
\newenvironment{moral}{%
786+
\begin{mdframed}[style=mdinlineyellowbox]%
787+
\bfseries
788+
\sffamily
789+
\color{RubineRed}
790+
}%
791+
{\end{mdframed}}
792+
730793

731794
\declaretheorem[style=thmbluebox,name=Theorem]{innercustomthm}
732795
\newenvironment{customthm}[1]{
@@ -778,7 +841,7 @@
778841
\declaretheorem[style=thmbox,name=Problem]{boxprob}
779842
\declaretheorem[style=thmbox,name=Lemma]{lemma}
780843
\fi
781-
\declaretheorem[style=thmbox,numbered=no,name=Problem]{problem*}
844+
\declaretheorem[style=thmbox,numbered=no,name=Problem]{boxprob*}
782845
\declaretheorem[style=thmbox,numbered=no,name=Lemma]{lemma*}
783846
\declaretheorem[style=thmbox,parent=section,name=Problem]{secprob}
784847
\declaretheorem[style=thmbox,sibling=theorem,name=Example]{example}
@@ -793,6 +856,11 @@
793856
\declaretheorem[style=thmbox,numbered=no,name=Note]{note}
794857
\declaretheorem[style=thmbox,sibling=theorem,name=Definition]{definition}
795858
\declaretheorem[style=thmbox,numbered=no,name=Definition]{definition*}
859+
\newenvironment{moral}{%
860+
\begin{mdframed}%
861+
\bfseries}%
862+
{\end{mdframed}}
863+
796864
\fi
797865
%%fakesection STANDARD THEOREMS
798866
\else

0 commit comments

Comments
 (0)