\documentclass{afitdefense}
\pretitle{Version 2.2}
\title{Center for Discovery of Great Topics}
\subtitle{2021 Hitch Hiker's Guide to Thesis Templates}
\author{Dr. John Smith \\ Dr. Joe Shmoe}
% \copyrighted{2022}{John Smith}
% \publicrelease{XXXXX-XXXX-XXXX}
% \classblock[U]{%
% Classified By: OCA Name and Position Title \\
% Reason: 1.4(c) \\
% Downgrade To: CONFIDENTIAL on 20121231 \\
% Declassify On: 20171231}
% \contact{}
% \extralogo{}
\begin{document}
\maketitle
\chapter{Introduction}
\section{Single Column}
For 4-by-3 aspect ratio slides, specify \verb|standard| as an option to the
document class. Write your presentation like a normal \LaTeX\ file with a
\verb|\maketitle| command and \verb|\chapter| and \verb|\section| headings. The
\verb|\maketitle| contents are defined by the following macros:
\begin{center}
\begin{tabular}{l@{\qquad}l@{\qquad}l}
\verb|\pretitle| &
\verb|\title| &
\verb|\subtitle| \\
\verb|\author| &
\verb|\classblock| &
\verb|\extralogo|
\end{tabular}
\end{center}
The \verb|\extralogo| command specifies an extra logo below the AFIT crest. The
\verb|\chapter| heading creates a slide with just the chapter name. The
\verb|\section| heading sets the title of a new slide. However, if no text
follows the section, no slide will be created. Text which does not fit on one
slide will flow onto the next slide automatically.
\section{Double Column}\twocolumn
Use the \verb|\twocolumn| and \verb|\onecolumn| commands right after the section
heading to control the number of columns. Text will flow from the left column to
the right.
\begin{itemize}
\item Point one
\item Point two
\item Point three
\item Point four
\item Point five
\item Point six
\item Point seven
\item Point eight
\item Point nine
\item Point ten
\item Point eleven
\item Point twelve
\end{itemize}
You can also use \verb|\pagebreak| to force text onto the next column.
\section{Table of Stuff}
You can create any variety of subdivisions on your slide by using the
\verb|tabular| environment.
\begin{center}
\begin{tabular}{C{4cm}cC{4cm}cC{4cm}}
\darkcell{dark}{Primary} &&
\darkcell{dark}{Secondary} &&
\darkcell{dark}{Tertiary} \\
First && Second && Third \\
One && Two && Three\\[1em]
\darkcell{dark}{Alpha} &&
\darkcell{dark}{Beta} &&
\darkcell{dark}{Gamma} \\
Green && Blue && Red \\
Cyan && Yellow && Magenta
\end{tabular}
\end{center}
The \verb|\darkcell| command sets the background of a table cell dark.
\section{Centering}
\begin{Center}\Large
Use the \texttt{Center} environment \\
to center horizontally \emph{and} vertically.
\end{Center}
\chapter{Explicit Code}
\section{Python}\onecolumn
Use the \verb|python| environment for Python code.
\begin{python}
def write_list(fid, x, level):
ind = ' '*level
xs = '0' if abs(x[0]) < 1e-3 else "%.3f"
txt = '\n%svalues=\"%s' % (ind, xs)
for n in range(1, len(x)):
xs = '0' if abs(x[n]) < 1e-3 else "%.3f"
if len(txt) + 3 + len(xs) >= 80:
fid.write(txt + ';\n')
txt = ind + ' ' + xs
else:
txt += '; ' + xs
fid.write(txt + '\"')
\end{python}
\section{MATLAB}
Use the \verb|matlab| environment for MATLAB code.
\begin{matlab}
function savepdf(name, width, height)
% name is the file name including ".pdf".
% Both width and height are in (cm).
set(gcf, 'units', 'centimeters', ...
'position', [0, 0, width, height])
set(gca, 'FontSize', 9);
set(gca, 'FontName', 'Times New Roman');
exportgraphics(gcf, name, ...
'ContentType', 'vector');
end
\end{matlab}
\chapter{Classification}
\section[U//EXAMPLE]{Classification}
The \verb|\classblock|, \verb|\chapter|, and \verb|\section| commands take an
optional parameter to specify the classification of the overall slide. This
parameter must start with a single capital letter: U (UNCLASSIFIED), I (CUI), C
(CONFIDENTIAL), S (SECRET), or T (TOP SECRET). Additional classification details
should follow with ``//'' and then the details. For example, this slide was made
using
\begin{verbatim}
\section[U//EXAMPLE]{Classification}
\end{verbatim}
% You can create blank pages for placing full-page graphics or text with the
% `\blankpage` command.
\blankpage\clearclass
% You can place images and text at arbitrary locations with the `\pos` command.
\pos{0pt}{0pt}{\tikz{
\newcounter{density}\setcounter{density}{10}
\def\mainColor{light}
\path[coordinate] (0,0) coordinate(A)
++(\paperwidth,0) coordinate(B)
++(0,-\paperheight) coordinate(C)
++(-\paperwidth,0) coordinate(D);
\fill[\mainColor!\thedensity]
(A) -- (B) -- (C) -- (D) -- cycle;
\foreach \x in {1,...,18}{%
\pgfmathsetcounter{density}{\thedensity+5}
\setcounter{density}{\thedensity}
\path[coordinate] coordinate(X) at (A){};
\path[coordinate] (A)
-- (B) coordinate[pos=0.15](A)
-- (C) coordinate[pos=0.15](B)
-- (D) coordinate[pos=0.15](C)
-- (X) coordinate[pos=0.15](D);
\draw[\mainColor!80!black, fill=\mainColor!\thedensity]
(A) -- (B) -- (C) -- (D) -- cycle;
}
}}
\pos[6cm]{2cm}{2cm}{
\raggedright\large Blank pages with the ``\texttt{\textbackslash
blankpage}'' command.
}
\pos[6cm]{9cm}{6cm}{
\raggedright\large Arbitrary positioning with the ``\texttt{\textbackslash
pos}'' command.
}
\closing
\end{document}