Titles, bump style to sty 8.0. Add full-names for professors

This commit is contained in:
Kenwood 2025-03-20 20:22:59 -04:00
parent 01463ab98d
commit 4e683ee320
4 changed files with 28 additions and 14 deletions

View File

@ -1,14 +1,15 @@
% snhu.sty - Custom style file for all of snhu % snhu.sty - Custom style file for all of SNHU
% Version variable % Version variable
\def\snhuversion{v8.2} \def\snhuversion{v9.0}
% Color for answers % Required packages
\usepackage{xcolor} \usepackage{xcolor}
\RequirePackage{fancyhdr} \usepackage{graphicx}
\RequirePackage{hyperref} \usepackage{fancyhdr}
\usepackage{hyperref}
\ProvidesPackage{snhu}[\snhuversion Custom package for all of snhu] \ProvidesPackage{snhu}[\snhuversion Custom package for all of SNHU]
% Custom answer highlighting % Custom answer highlighting
\newcommand{\ans}[1]{\colorbox{yellow}{#1}} \newcommand{\ans}[1]{\colorbox{yellow}{#1}}
@ -27,13 +28,25 @@
\renewcommand{\maketitle}{% \renewcommand{\maketitle}{%
\begin{titlepage} \begin{titlepage}
\centering \centering
\vspace*{1in} \vspace*{2cm}
{\Huge \textbf{\@reporttitle}} \\[2cm]
{\Large \textbf{Name:}} \@studentname \\[0.5cm] % Title
{\Large \textbf{Class:}} \@class \\[0.5cm] {\Huge \@reporttitle} \\[0.3cm]
{\Large \textbf{Date of Submission:}} \@submissiondate \\[0.5cm] \hrulefill \\[0.5cm] % Horizontal line under the title
{\Large \textbf{University:}} \@universityname \\
% Submission details (properly aligned)
\begin{tabular}{p{0.45\textwidth} p{0.45\textwidth}}
\raggedright \textbf{Submitted to:} \\ \@class &
\raggedleft \textbf{Submitted by:} \\ \@studentname
\end{tabular}
\vspace{0.8cm}
{\large \@universityname} \\[0.5cm]
{\large \@submissiondate}
\vfill \vfill
% Logo
\includegraphics[width=3cm]{resources/SNHU-Logo.png} % Adjust width as needed
\end{titlepage} \end{titlepage}
} }

View File

@ -4,5 +4,6 @@
"name": "Your Name", "name": "Your Name",
"class": "EE-101", "class": "EE-101",
"professor": ["SNHU", "monk", "moghimi"], "professor": ["SNHU", "monk", "moghimi"],
"professorlong": "{% if cookiecutter.professor == 'monk' %}Timothy Monk, Ph.D.\\\\{% elif cookiecutter.professor == 'moghimi' %}Prof. Moghimi\\\\{% else %}SNHU Faculty\\\\{% endif %}",
"two_column_mode": "no" "two_column_mode": "no"
} }

BIN
resources/SNHU-Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -4,7 +4,7 @@
% Set title page details % Set title page details
\reporttitle{ {{ cookiecutter.project_type }} {{cookiecutter.number}} } \reporttitle{ {{ cookiecutter.project_type }} {{cookiecutter.number}} }
\class{ {{cookiecutter.class}} } \class{ {{cookiecutter.professorlong}}{{cookiecutter.class}} }
\studentname{ {{cookiecutter.name}} } \studentname{ {{cookiecutter.name}} }
\submissiondate{\today} \submissiondate{\today}
\universityname{Southern New Hampshire University} \universityname{Southern New Hampshire University}