Good enough templating for homework anyway
This commit is contained in:
parent
29cba1e10f
commit
041d85956c
|
@ -0,0 +1,23 @@
|
||||||
|
\documentclass[12pt]{article}
|
||||||
|
\usepackage{ {{cookiecutter.professor}} }
|
||||||
|
|
||||||
|
|
||||||
|
% Set title page details
|
||||||
|
\reporttitle{Homework {{cookiecutter.number}} }
|
||||||
|
\class{ {{cookiecutter.class}} }
|
||||||
|
\studentname{ {{cookiecutter.name}} }
|
||||||
|
\submissiondate{\today}
|
||||||
|
\universityname{Southern New Hampshire University}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\maketitle
|
||||||
|
|
||||||
|
\exer[Question]{1}
|
||||||
|
|
||||||
|
\mpart{a}
|
||||||
|
|
||||||
|
Question 1, Part a
|
||||||
|
|
||||||
|
|
||||||
|
\revision{1}
|
||||||
|
\end{document}
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Homework {{cookiecutter.number}}
|
||||||
|
|
||||||
|
Find the source for this template [here](https://git.kitsunehosting.net/Kenwood/SNHU-LaTeX).
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
Clone this repository and (for ease of use) add the directory to your `TEXINPUTS` env variable.
|
||||||
|
If this is not easy for you or you don't want to mess with your env variables, just copy your relevant `.sty`
|
||||||
|
files locally.
|
||||||
|
|
||||||
|
# Cookiecutter
|
||||||
|
|
||||||
|
For making new projects/homework assignments I've put some cookiecutter defs here.
|
||||||
|
Cookiecutter is easy to invoke even without manually cloning. In the directory you want
|
||||||
|
to create a new project, just invoke cookiecutter with the url to this repo.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cookiecutter https://git.kitsunehosting.net/Kenwood/SNHU-LaTeX
|
||||||
|
```
|
||||||
|
|
||||||
|
Follow the prompts!
|
22
SNHU.sty
22
SNHU.sty
|
@ -37,7 +37,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
% Custom header/footer
|
% Custom header/footer
|
||||||
\fancypagestyle{moghimi}{
|
\fancypagestyle{snhudefault}{
|
||||||
\fancyhf{}
|
\fancyhf{}
|
||||||
\fancyhead[L]{\@reporttitle}
|
\fancyhead[L]{\@reporttitle}
|
||||||
\fancyhead[R]{\@studentname}
|
\fancyhead[R]{\@studentname}
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
% Package options to load fancy headers by default
|
% Package options to load fancy headers by default
|
||||||
\AtBeginDocument{
|
\AtBeginDocument{
|
||||||
\pagestyle{moghimi}
|
\pagestyle{snhudefault}
|
||||||
}
|
}
|
||||||
|
|
||||||
% =====================================
|
% =====================================
|
||||||
|
@ -78,3 +78,21 @@
|
||||||
\noindent\textbf{Part (#1)}%
|
\noindent\textbf{Part (#1)}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Default revision command
|
||||||
|
\providecommand{\revision}[1]{
|
||||||
|
\clearpage
|
||||||
|
\null
|
||||||
|
\vfill
|
||||||
|
\begin{center}
|
||||||
|
\texttt{Revision: #1} \\
|
||||||
|
\texttt{Compiled on \today}
|
||||||
|
|
||||||
|
\texttt{If this document contains any listings, images or other embedded media, you should have received a copy of the source.zip}
|
||||||
|
|
||||||
|
\bigskip
|
||||||
|
|
||||||
|
\texttt{Libs:} \\
|
||||||
|
- \texttt{SNHU\_Sty \snhuversion}
|
||||||
|
\end{center}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"number": "1",
|
||||||
|
"name": "Your Name",
|
||||||
|
"class": "EE-101",
|
||||||
|
"professor": ["SNHU", "monk", "moghimi"]
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
\RequirePackage{titlesec}
|
\RequirePackage{titlesec}
|
||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}
|
||||||
\RequirePackage{amsmath}
|
\RequirePackage{amsmath}
|
||||||
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
% Provides
|
% Provides
|
||||||
\usepackage {snhu}
|
\usepackage {snhu}
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
|
|
||||||
% Circuits
|
% Circuits
|
||||||
\usepackage[american]{circuitikz}
|
\usepackage[american]{circuitikz}
|
||||||
|
\usetikzlibrary{circuits.logic.US}
|
||||||
|
|
||||||
% Title formatting for sections
|
% Title formatting for sections
|
||||||
\titleformat{\section}
|
\titleformat{\section}
|
||||||
|
@ -41,7 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
% Custom version command to print revision and compile date in footer
|
% Custom version command to print revision and compile date in footer
|
||||||
\newcommand{\revision}[1]{
|
\renewcommand{\revision}[1]{
|
||||||
\clearpage
|
\clearpage
|
||||||
\null
|
\null
|
||||||
\vfill
|
\vfill
|
||||||
|
@ -75,3 +77,4 @@
|
||||||
captionpos=b,
|
captionpos=b,
|
||||||
tabsize=2,
|
tabsize=2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue