Commit a27b83c3 authored by Crawford, Sam's avatar Crawford, Sam
Browse files

Adds new CUI block to SPR class.

parent 899220c8
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -39,12 +39,13 @@

% Specify authors below.
% Note: multiple authors are separated with the \and command.
\author{First Author \and Second Author \and Third Author}
% Per ORNL guidance, please keep the number of authors below six.
\author{First Author \and Second Author \and Third Author \and Fourth Author}

% Specify title.
% Note: if using an explicit line break in the title, you must use the \protect
% command before it.
\title{Oak Ridge National Laboratory \protect\\ Official SPR Template: \protect\\ Title Must Match RESolution Title}
\title{Oak Ridge National Laboratory \protect\\ Official SPR Template: \protect\\ Title Must Match RESolution Title \protect \\}

% Specify date of publication.
%\date{September 16, 2016}
@@ -89,10 +90,13 @@
% \crada{CRADA number NFE-XX-XXXXX}

%%% CUI
% Add a CUI notice to the header and footer. Use % to toggle on or off. Note: CUI supercedes restrict. If both are enabled, only CUI will print.
% Update with appropriate category for your document.
% Add a CUI notice to the header and footer. Use % to toggle on or off. 
% Note: CUI supercedes restrict. If both are enabled, only CUI will print.
% Update with appropriate category and designating authority for your document.

% \cui{CUI//CATEGORY/SUBCATEGORY//DISSEM}
\cui{CUI//CATEGORY/SUBCATEGORY//DISSEM} % Replace with appropriate markings.
\cuiDA{Authority Name, ORNL} % Define the CUI designating authority. Can be organization, individual, or both.
\cuiPh{(XXX)~XXX-XXXX} % Define phone number for designated authority.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

+24 −3
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage{wallpaper} % background on cover page
\RequirePackage{adjustbox} % used to keep author block within front cover
\RequirePackage{fancyhdr} % headers and footers
\RequirePackage{emptypage} % hide footers on blank pages
\RequirePackage[pdfusetitle]{hyperref} % url and links in PDF
@@ -93,6 +94,18 @@
\@cuidefinedfalse
\newcommand{\cui}[1]{\def\@cui{#1}\@cuidefinedtrue}

\newif\if@cuiDAdefined
\@cuiDAdefinedfalse
\def\@cuiDA{CUI DA UNDEFINED%
\PackageWarning{ornltm}{No CUI designated authority has been defined.}}
\newcommand{\cuiDA}[1]{\def\@cuiDA{#1}\@cuiDAdefinedtrue}

\newif\if@cuiPhdefined
\@cuiPhdefinedfalse
\def\@cuiPh{CUI DA PHONE UNDEFINED%
\PackageWarning{ornltm}{No CUI designated authority phone number has been defined.}}
\newcommand{\cuiPh}[1]{\def\@cuiPh{#1}\@cuiPhdefinedtrue}

% Creating \printcui command to simplify CUI implementation
\newcommand{\printcui}{
\begin{center}
@@ -190,7 +203,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\makecoverpage{%
\newgeometry{top=0.5in,bottom=0.5in,right=2in,left=.5in}
\newgeometry{top=0.25in,bottom=0.25in,right=2in,left=.5in}

\begin{titlepage}
\thispagestyle{coverpage}
@@ -235,6 +248,7 @@
  \textbsf{\large Draft. Document has not been reviewed and approved for public release.}%
\end{center}
\end{framed}
\vspace{0.5em}
}
\fi

@@ -267,6 +281,11 @@
\if@restrictdefined{%
}\else%
\if@cuidefined{%
\begin{center}
\textbsf{%
Controlled by: \@cuiDA, \@cuiPh
}%
\end{center}
}\else%
\if@reportdraft\relax\else{%
\begin{framed}
@@ -288,11 +307,13 @@
\def\and{\\}% Newline between authors
\large\sffamily%
\setlength\tabcolsep{0pt}%
\maxsizebox*{!}{1.75in}{%
\begin{tabular}[t]{l}%
\@author%
\end{tabular}
}

\vspace{2\baselineskip}
\vspace{1\baselineskip}
\large\textbsf{\@date}
\end{minipage}%