Commit 1da56a4b authored by Crawford, Sam's avatar Crawford, Sam
Browse files

Adding new CUI box to cover of letter template.

parent 3a94bb11
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@

% 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
@@ -87,7 +88,9 @@
% 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.

% \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.

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

+31 −18
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
@@ -78,13 +79,25 @@
\@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}%
\if@cuidefined{\large\textbsf{\par\@cui}}%
\else%
\newcommand{\printcui}{
\begin{center}
\if@cuidefined{\large\textbsf{\par\@cui}}
\else
\fi%
\end{center}%
\end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

@@ -215,9 +228,11 @@
  \def\and{\\}% Newline between authors
  \large\sffamily%
  \setlength\tabcolsep{0pt}%
  \maxsizebox*{!}{1.49in}{%
  \begin{tabular}[t]{l}%
  \@author%
  \end{tabular}
  }

\vspace{2\baselineskip}

@@ -229,11 +244,10 @@

% Check if document is a draft to determine boxed notices.
\if@reportdraft{
\begin{framed}
\begin{center}
  \textbsf{\large Draft. Document has not been reviewed and approved for public release.}%
\end{center}
\end{framed}
\vspace{1em}
}
\fi

@@ -241,22 +255,18 @@
\if@cuidefined{% No CUI notice needed, so do nothing.
}\else % Otherwise, check for restrict.
\if@restrictdefined{% If restrict is defined in document, then print box.
\begin{framed}
\begin{center}
\printrestrict%
\end{center}
\end{framed}
}
\fi
\fi

\if@cradadefined{% CRADA is independent. Print box if defined.
\begin{framed}
\begin{center}
\textbsf{\large\par CRADA final report for \\
\@crada}%
\end{center}
\end{framed}
}
\fi

@@ -266,15 +276,18 @@
\if@restrictdefined{%
}\else%
\if@cuidefined{%
\begin{center}
\textbsf{%
Controlled by: \@cuiDA, \@cuiPh
}%
\end{center}
}\else%
\if@reportdraft\relax\else{%
\begin{framed}
\begin{center}
\textbsf{% If not draft, CUI, or otherwise restricted, then unlimited distro.
  Approved for public release. \\
  Distribution is unlimited.}%
\end{center}
\end{framed}
}\fi%
\fi%
\fi