81 lines
1.8 KiB
TeX
81 lines
1.8 KiB
TeX
% Version variable
|
|
\def\moghimiversion{v1.3}
|
|
|
|
% Package requirements
|
|
\RequirePackage{graphicx}
|
|
\RequirePackage{titlesec}
|
|
\RequirePackage{siunitx}
|
|
\RequirePackage{amsmath}
|
|
\RequirePackage{tikz}
|
|
|
|
% Provides
|
|
\usepackage {snhu}
|
|
\ProvidesPackage{moghimi}[\moghimiversion Custom package for Professor Moghimi]
|
|
|
|
% For title formatting
|
|
\usepackage{titlesec}
|
|
|
|
% Circuits
|
|
\usepackage[american]{circuitikz}
|
|
\usetikzlibrary{circuits.logic.US}
|
|
|
|
% Title formatting for sections
|
|
\titleformat{\section}
|
|
{\normalfont\normalsize\bfseries}{}{1em}{}
|
|
|
|
\titleformat{\subsection}
|
|
{\normalfont\normalsize\bfseries}{}{1em}{}
|
|
|
|
% This is for listings and such, he's had me use matlab/octave before so this is a custom define.
|
|
\usepackage{listings}
|
|
\lstset{
|
|
language=Matlab, % Matlab/Octave syntax highlighting
|
|
basicstyle=\ttfamily,
|
|
keywordstyle=\color{blue},
|
|
commentstyle=\color{gray},
|
|
stringstyle=\color{green},
|
|
numbers=left,
|
|
numberstyle=\tiny,
|
|
stepnumber=1,
|
|
breaklines=true,
|
|
frame=single,
|
|
captionpos=b
|
|
}
|
|
|
|
% Custom version command to print revision and compile date in footer
|
|
\renewcommand{\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}\\
|
|
- \texttt{Moghimi \moghimiversion}
|
|
\end{center}
|
|
}
|
|
|
|
\lstset{
|
|
language=VHDL,
|
|
basicstyle=\ttfamily\small,
|
|
keywordstyle=\color{blue}\bfseries,
|
|
commentstyle=\color{gray},
|
|
stringstyle=\color{red},
|
|
numberstyle=\tiny\color{gray},
|
|
numbers=left,
|
|
stepnumber=1,
|
|
numbersep=10pt,
|
|
backgroundcolor=\color{white},
|
|
frame=single,
|
|
breaklines=true,
|
|
captionpos=b,
|
|
tabsize=2,
|
|
}
|
|
|