-
Copy the
template.sty
in your folder with the.tex
file. -
Add this to the preamble of your
.tex
file.
\usepackage[
name=fname\ lname,
class= Class \ \#,
doctype= Notes,
boxed=false,]
{template}
The file should look likt the main.tex
file. Fill your first name / last name, class, type of doc and true/false
for boxed.
- boxed = false the output is (file:
main.tex
) - boxed = true the output is
Currently there are 3 built in enviroments.
\begin{defn}{Name}
A set $A$ is \textit{finite} if $|A| = n$ for $n\in \mathbb{N}$.
\end{defn}
\begin{thm}{Thm Name}
$A \iff B$.
\end{thm}
\begin{lemma}{Lemma statement}
$f : \mathbb{N}^\mathbb{N} \to \mathbb{R}$ is a bijection.
\end{lemma}
The output for boxed = true / false is:
- Light/Bright mode: To switch to brighter color boxes use the boxedlight=true option in the package import.
\usepackage[
name=fname\ lname,
class= Class \ \#,
doctype= Notes,
boxed=true,
boxedlight=true]
{template}
In boxed=false mode you can override the boxed setting by using the bthm
, blemma
and bdefn
enviroment.
% boxed = false, boxedlight = true
\begin{bdefn}{Name}
A set $A$ is \textit{finite} if $|A| = n$ for $n\in \mathbb{N}$.
\end{bdefn}
\begin{thm}{Thm Name}
$A \iff B$.
\end{thm}
\begin{blemma}{Lemma statement}
$f : \mathbb{N}^\mathbb{N} \to \mathbb{R}$ is a bijection.
\end{blemma}
This will put the definition and lemma in boxes but not the theorem.
Currently there is no way to change the colors from the .tex
file you can edit these lines in the style file to get custom colors:
% Box Thm Colors
\definecolor{defncol}{HTML}{661a00}
\definecolor{thmcol}{HTML}{0d0d0d}
\definecolor{lemmcol}{HTML}{0f0f3d}
For changing lightmode colors
\ifMCS@boxedlight
\definecolor{defncol}{HTML}{FF8000}
\definecolor{thmcol}{HTML}{000080}
\definecolor{lemmcol}{HTML}{990000}
\fi