72 lines
1.9 KiB
TeX
72 lines
1.9 KiB
TeX
% 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}
|
|
}
|