From 15ff9a5113757ea9d869953532b3f6e489717c3a Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Mon, 8 Sep 2025 13:38:20 -0400 Subject: [PATCH] Add Professor McDonald --- cookiecutter.json | 4 +-- mcdonald.sty | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 mcdonald.sty diff --git a/cookiecutter.json b/cookiecutter.json index 28a102c..e114503 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -3,7 +3,7 @@ "number": "1", "name": "Your Name", "class": "EE-101", - "professor": ["SNHU", "monk", "moghimi", "mcclellan"], - "professorlong": "{% if cookiecutter.professor == 'monk' %}Timothy Monk, Ph.D.\\\\{% elif cookiecutter.professor == 'moghimi' %}Prof. Moghimi\\\\{% elif cookiecutter.professor == 'mcclellan' %}Natalia McClellan\\\\{% else %}SNHU Faculty\\\\{% endif %}", + "professor": ["SNHU", "monk", "moghimi", "mcclellan", "mcdonald"], + "professorlong": "{% if cookiecutter.professor == 'monk' %}Timothy Monk, Ph.D.\\\\{% elif cookiecutter.professor == 'moghimi' %}Prof. Moghimi\\\\{% elif cookiecutter.professor == 'mcclellan' %}Natalia McClellan\\\\{% elif cookiecutter.professor == 'mcdonald' %}Jack D McDonald, Ph.D.\\\\{% else %}SNHU Faculty\\\\{% endif %}", "two_column_mode": "no" } diff --git a/mcdonald.sty b/mcdonald.sty new file mode 100644 index 0000000..a3c229d --- /dev/null +++ b/mcdonald.sty @@ -0,0 +1,71 @@ +% mcdonald.sty - Custom style file for Professor McDonald's class + +% Version variable +\def\mcdonaldversion{v1.0} + +\usepackage {snhu} +\ProvidesPackage{mcdonald}[\mcdonaldversion Custom package for Professor Jack D McDonald] + +% Encoding +\usepackage[utf8]{inputenc} + +% Math and titles +\usepackage{amsmath} +\usepackage{titlesec} +\usepackage{siunitx} + +% Circuits and Electronics +\usepackage[american]{circuitikz} + +% LaTeX +\usepackage{ifthen} + +% Title formatting for sections +\titleformat{\section} + {\normalfont\normalsize\bfseries}{}{1em}{} + +\titleformat{\subsection} + {\normalfont\normalsize\bfseries}{}{1em}{} + +\titleformat{\subsubsection} + {\normalfont\normalsize\bfseries}{}{1em}{} + +% This is neat, its a custom \req command for keeping track of mcdonald's project requirement sheets +% Define a toggle for showing requirements +\newif\ifshowreqs +\showreqstrue % Default to true + +% Command to toggle visibility +\newcommand{\showreqs}[1]{% + \ifthenelse{\equal{#1}{true}}{\showreqstrue}{\showreqsfalse}% +} + +% Define the \req command +\newcommand{\req}[1]{% + \ifshowreqs% + \textsuperscript{\textbf{\textit{\textcolor{red}{#1}}}}% Show requirement flag (styled) + \fi% +} + +% Custom version command to print revision and compile date in footer +\renewcommand{\revision}[2][false]{ + \clearpage + \null + \vfill + \begin{center} + \texttt{Revision: #2} \\ + \texttt{Compiled on \today} + + % Conditionally include Source.zip text if #1 is set to true + \ifthenelse{\equal{#1}{true}}{ + \bigskip + \texttt{You should have received a copy of the Source.zip along with this document.} + }{} + + \bigskip + + \texttt{Libs:} \\ + - \texttt{\href{https://git.kitsunehosting.net/Kenwood/SNHU-LaTeX/src/branch/main/SNHU.sty}{SNHU\_Sty} \snhuversion}\\ + - \texttt{\href{https://git.kitsunehosting.net/Kenwood/SNHU-LaTeX/src/branch/main/mcdonald.sty}{McDonald} \mcdonaldversion} + \end{center} +}