Commit cb14556a authored by Johnson, Seth R.'s avatar Johnson, Seth R.
Browse files

Merge branch 'official'

parents fdf5956a a84c67e0
Loading
Loading
Loading
Loading

example/example.bib

0 → 100644
+26 −0
Original line number Diff line number Diff line
@article{einstein,
    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
        [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          "http://dx.doi.org/10.1002/andp.19053221004"
}

@book{latexcompanion,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The \LaTeX\ Companion",
    year      = "1993",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"
}

@misc{knuthwebsite,
    author    = "Donald Knuth",
    year      = "1984",
    title     = "Knuth: Computers and Typesetting",
    url       = "https://www-cs-faculty.stanford.edu/~knuth/abcde.html"
}
 No newline at end of file
+93 −47
Original line number Diff line number Diff line
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File  : ornltm/ornl-template-example.tex
% Author: Seth R Johnson
% Date  : Fri Sep 16 17:24:46 2016
% Author: Seth R Johnson, Sam Crawford,* and John Batson
% * Corresponding author
% Date  : Fri Oct 27 16:19:46 2023
%
% Example of ORNL tech memo template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -22,7 +23,10 @@

% Bibliography styling. WARNING: the biblatex-chicago package removes the
% footnote rule.
% \usepackage[authordate,strict,backend=biber,autolang=other,bibencoding=inputenc]{biblatex-chicago}
\usepackage[authordate,strict,backend=biber,autolang=other,bibencoding=inputenc]{biblatex-chicago} % Author-date style.
%\usepackage{biblatex} % Numerical style.

\bibliography{example.bib} % Replace with your bib filename.

% Use inline small italic blue for comments rather than placing them in the
% margin.
@@ -34,44 +38,89 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Specify authors below.
% Note: multiple authors are separated by with the \and command.
\author{AuthorFirst AuthorLast \and 2ndAuthorFirst 2ndAuthorLast}
% Note: multiple authors are separated with the \and command.
\author{First Author \and Second Author \and Third 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 TM Example}
\title{Oak Ridge National Laboratory \protect\\ Official TM Template: \protect\\ Title Must Match RESolution Title}

% Specify date of publication.
%\date{September 16, 2016}
\date{\today}

% Define report number.
\reportnum{ORNL/TM-2021/123}
% Mark the report as a draft
\reportdraft
% Define report number. This number must match number provided by RESolution.
\reportnum{ORNL/TM-XXXX/XXX}

% Define division/directorate name. Replace "Division Name" with your
% division/directorate.
\division{Transformative Typesetting Division}
\division{Division Name}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOCUMENT RESTRICTIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% DRAFT
% Mark the report as a draft. Comment out for public release
% and unlimited distribution.

 \reportdraft

%%% GENERAL RESTRICTIONS
% Add a restriction notice to the cover page and headers/footers.
% Select option by removing the % that precedes it.

% \restrict{UT-BATTELLE BUSINESS SENSITIVE}
% \restrict{UT-BATTELLE BUSINESS PERSONAL}
% \restrict{UT-BATTELLE INTERNAL USE ONLY}
% \restrict{Not for public release.}
% \restrict{UNCLASSIFIED CONTROLLED NUCLEAR INFORMATION}

%%% CRADA
% Add CRADA notice to front cover. Draft or public release are determined
% by toggling \reportdraft (above).

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

% \cui{CUI//CATEGORY/SUBCATEGORY//DISSEM}

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

% Add a restriction notice to the cover page. Remove comment "%" below if that
% is desired.
% \restrict{\small\sffamily (Additional example restrictions)}
% \restrict{\textbsf{UT--BATTELLE BUSINESS SENSITIVE}}
% \restrict{\textbsf{Not for public release}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ACRONYMS
% ABBREVIATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Note that acronyms that aren't used in the document won't be printed in the
%  list.
\makeglossaries
\newacronym{doe}{DOE}{Department of Energy}
\newacronym{nrc}{NRC}{Nuclear Regulatory Commission}
\newacronym{tm}{TM}{technical memo}
\newacronym{ornl}{ORNL}{Oak Ridge National Laboratory}
\newacronym{tnr}{TNR}{Times New Roman}
% Uses the Acro package called in CLS. Note that acronyms that aren't used in the document won't be printed in the list.

\DeclareAcronym{doe}{
	short = DOE ,
	long = US Department of Energy
	 }
\DeclareAcronym{nrc}{
	short = NRC ,
	long = Nuclear Regulatory Commission
	}
\DeclareAcronym{tm}{
	short = TM ,
	long = Technical Memo
}
\DeclareAcronym{ornl}{
	short = ORNL ,
	long = Oak Ridge National Laboratory
}
\DeclareAcronym{tnr}{
	short = TNR ,
	long = Times New Roman
}
\DeclareAcronym{msc}{
	short = MSC ,
	long = many such cases
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FRONT MATTER
@@ -82,15 +131,14 @@
\tableofcontents
% LIST OF FIGURES: optional if fewer than 5 are used
\listoffigures
\marginpar{The list of figures tables may be omitted if fewer than 5 are used.}

% LIST OF TABLES: optional if fewer than 5 are used
\listoftables
\marginpar{The list of tables may be omitted if fewer than 5 are used.}
% LIST OF ACRONYMS
% NOTE: this will only print if `makeindex X.ist -o X.acr X.acn` is executed.
% This is part of the included Makefile.

% Print LIST OF ABBREVIATIONS (optional)
\printacronyms


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ADDITIONAL FRONT MATTER (OPTIONAL)
\section*{Foreword}
@@ -199,11 +247,11 @@ Begin text here.
\subparagraph{Fifth-Order Heading}

Ask yourself, ``Do I \emph{really} need five or more hierarchical levels in my
document?''
document?'' \Ac{msc}.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\marginpar{A \texttt{\\cleardoublepage} should be inserted here if the preceding
\marginpar{A \texttt{\textbackslash cleardoublepage} should be inserted here if the preceding
section is not too short.}

\section{FIGURE PLACEMENT}
@@ -222,7 +270,7 @@ they may be numbered consecutively by section (i.e., Figure 1.1, Figure 1.2).
All figures are pulled in from source files that should be placed in a directory
to which the author can link in the LaTeX file.  In this template, the image
files for the figures are in the same directory as the main LaTeX document, but
it is common practice to also place them in a sub folder named "figures" or
it is common practice to also place them in a sub folder named ``figures'' or
similar.

\begin{figure}[ht]
@@ -319,21 +367,19 @@ For the \ac{ornl} \ac{tm} reports, \textit{Chicago Manual of Style} references a
citations are preferred. Of these, you can choose between author-date +
references cited or footnote + references cited.

Author-date style is set by default (in the class file) and is preferred. Use
Author-date style is set by default and is preferred. Use
the autocite command to defer to the default citation style, which will give
you:% \autocite{Conley1998}.
you the following: \autocite{knuthwebsite}.

If for some reason you don't want the citation to be surrounded by parentheses,
you can use the cite command, like this: \cite{Davis1998}.
you can use the cite command like this: \cite{einstein}.

You can also push abbreviated citations into the footnotes using a footcite
command, like this.% \footcite{Adams2001}
command, like this. \footcite{latexcompanion}

For all of the examples above, you do not have to change anything other than the
actual citation command. However, you (advanced users) can change the
bibliography further by changing the bibliography styles. These styles are
defined in the class file of this LaTeX template (ornltm.cls), in the section
labeled ``Bibliography.''
bibliography further by changing the bibliography styles.

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

@@ -383,13 +429,12 @@ You can also use numbered lists.
    metallic gaskets or seals. The geometry of the seal interface is critical
    for proper function. Experience has shown that flanges subjected to
    conventional welding techniques distort beyond a point that they can be
    sealed.\\

    sealed.
  \item Flanges used in ultra-high vacuum service are commonly closed with
    metallic gaskets or seals. The geometry of the seal interface is critical
    for proper function. Experience has shown that flanges subjected to
    conventional welding techniques distort beyond a point that they can be
    sealed.\\
    sealed.
\end{enumerate}

\subsubsection{Third-Order Heading}
@@ -437,7 +482,8 @@ efficitur justo sed diam suscipit varius.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Bibliography support via biblatex
%\printbibliography
\section{REFERENCES}% Create heading for references to include in ToC.
\printbibliography[heading=none]% Print references without biblatex's heading.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% APPENDICES
+19 −4
Original line number Diff line number Diff line
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File  : ornltm/ornltm/ornltm-style.sty
% Author: Seth R Johnson
% Date  : Sat Oct 13 13:04:10 2018
% Author: Seth R Johnson with contributions by Sam Crawford and John Batson
% Date  : Fri Oct 27 16:19:46 2023
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
@@ -95,6 +95,20 @@
\setlength\cftbeforesecskip{0pt}
% Add leaders to all sections and subsections in the TOC.
\renewcommand\cftsecleader{\cftdotfill{\cftdotsep}}
% Make TOC page numbers not bold
\addtocontents{toc}{\protect\renewcommand{\protect\cftsecpagefont}{\mdseries}}

% Add "Figure" # prefix to list of figures
\renewcommand{\cftfigpresnum}{Figure } % put Figure before the number
\renewcommand{\cftfigaftersnum}{.}     % add colon after the number
\addtolength{\cftfignumwidth}{1.25cm}     % extra space for extended numbers

% Add "Table" # prefix to list of tables

\renewcommand{\cfttabpresnum}{Table } % put Figure before the number
\renewcommand{\cfttabaftersnum}{.}     % add period after the number
\addtolength{\cfttabnumwidth}{1.25cm}     % extra space for extended numbers


%%% EXTENSIONS FOR SPHINX MANUAL %%%

@@ -118,12 +132,12 @@
% Sections go at the top of right-hand-side page.
\titleclass{\section}{top}
\newcommand{\sectionbreak}{\cleardoublepage}

\renewcommand\headrulewidth{0pt}
% You may need to use the \texorpdfstring when using hyperref and
% unusual titles.
\titleformat{\section}{\centering\bf}{\thesection.}{1ex}{\MakeUppercase}[]
\titleformat{\subsection}{\bf}{\thesubsection}{1ex}{\MakeUppercase}[]
\titleformat{\subsubsection}{\bf}{\thesubsubsection}{1ex}{\MakeUppercase}[]
\titleformat{\subsubsection}{\bf}{\thesubsubsection}{1ex}{}[]
\titleformat{\paragraph}{\bf}{\theparagraph}{1ex}{}[]
\titleformat{\subparagraph}{\bf\itshape}{\relax}{0pt}{}[]

@@ -143,6 +157,7 @@
  \cleardoublepage
  % Call the ``section'' command, which will put the title on its own page
  \thispagestyle{empty}
  \renewcommand\headrulewidth{0pt}
  \@oldappendixsection{#1}
  % Increment page counter only if one-sided document (not sure why this is
  % needed)
+215 −80
Original line number Diff line number Diff line
% !TEX root = ../example/ornl-template-example.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File  : ornltm.cls
% Author: Seth R Johnson
% Date  : Fri Sep 16 17:09:22 2016
%
% Class style file for ORNL technical manuals.
% Author: Seth R Johnson, Sam Crawford,* and John Batson
% * Corresponding author
% Date  : Fri Oct 27 16:19:46 2023
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
@@ -24,9 +23,13 @@
\RequirePackage{fancyhdr} % headers and footers
\RequirePackage{emptypage} % hide footers on blank pages
\RequirePackage[pdfusetitle]{hyperref} % url and links in PDF
\RequirePackage[shortcuts,acronym,nonumberlist,nogroupskip,nopostdot]{glossaries} % acronym support
\RequirePackage{acro} % Add support for abbreviations
\RequirePackage{array} % Add support for tabulars
\RequirePackage{tocloft} % table of contents styling
\RequirePackage{color} % colored fonts and boxes
\RequirePackage{framed} % framed notice boxes
\RequirePackage{seqsplit} % for splitting unruly character strings
\RequirePackage{etoolbox} % Patch for all caps first- and second-order headings in TOC

% Load document style
\RequirePackage{ornltm-style}
@@ -53,12 +56,54 @@
\@reportdraftfalse
\newcommand{\reportdraft}{\@reportdrafttrue}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Added for CRADA (remains blank if CRADA is undefined)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Uncomment the \crada{...} command in the document and add number.
\newif\if@cradadefined
\@cradadefinedfalse
\newcommand{\crada}[1]{\def\@crada{#1}\@cradadefinedtrue}

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


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Added for CUI (remains blank if CUI is undefined)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Uncomment the \cui{...} command in the document if CUI.
\newif\if@cuidefined
\@cuidefinedfalse
\newcommand{\cui}[1]{\def\@cui{#1}\@cuidefinedtrue}

% Creating \printcui command to simplify CUI implementation
\newcommand{\printcui}{
\if@cuidefined{\centering\large\textbsf{\@cui}\par}
\else\relax
\fi%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Use the \restrict command to add qualifications to the document's restriction.
% For example, add ``OUO'' and such.
% (e.g., business sensitive).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@restrictdefined
\@restrictdefinedfalse
\newcommand{\restrict}[1]{\def\@restrict{#1}\@restrictdefinedtrue}

% Creating \printrestrict command to simplify restricted footer
\newcommand{\printrestrict}{
\if@cuidefined{} % CUI supersedes restrict, so do nothing if CUI.
\else
\if@restrictdefined{\centering\large\textbsf{\@restrict}\par}
\else\relax
\fi%
\fi
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define ORNL title photo with default
\def\@ornltmtitlephoto{ornltm-titlephoto.jpg}
\newcommand{\reportphoto}[1]{\def\@ornltmtitlephoto{#1}}
@@ -88,36 +133,60 @@
  \fancyhf{}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Header and footer for fancy pages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}

\fancyhead{}
% Adding CUI to header if defined.
\chead{\makebox[\textwidth][c]{\if@cuidefined{\textbsf{\@cui}}\else\fi}}
% Adding CUI or restricted to footer if defined. CUI supersedes restrict.
\fancyfoot{}
\cfoot{\vspace{-1.3cm}
\makebox[\textwidth][c]{\if@cuidefined{\textbsf{\@cui}}\else %If no CUI, then
\if@restrictdefined{\textbsf{\@restrict}}\fi\fi} \\ % New line for page no.
\makebox[\textwidth][c]{\thepage{}} % Print page number
}

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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Header and footer for plain pages (i.e., most of the document)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fancypagestyle{plain}

\fancyhead{}
% Adding CUI to header if defined.
\chead{\makebox[\textwidth][c]{\if@cuidefined{\textbsf{\@cui}}\else\fi}}
% Adding CUI or restricted to footer if defined.
\fancyfoot{}
\cfoot{\vspace{-1.3cm}
\makebox[\textwidth][c]{\if@cuidefined{\textbsf{\@cui}}\else %If no CUI, then
\if@restrictdefined{\textbsf{\@restrict}}\fi\fi} \\ % New line for page no.
\makebox[\textwidth][c]{\thepage{}} % Print page number
}

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

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

\begin{titlepage}
\thispagestyle{coverpage}
\ThisULCornerWallPaper{1.0}{ornltm-sidebar.jpg}%
\begin{minipage}[c][1in]{\textwidth-2.5in}%
%% TOP LEFT NOTICE %%
\if@reportdraft%
{%
% Notice about preliminary document when ``draft'' is set
\hspace*{\fill}\parbox{3.5in}{%
  \footnotesize\raggedright\textsf{%
  NOTICE: This document contains information of a preliminary nature and is not
  intended for release.  It is subject to revision or correction and therefore
  does not represent a final report.
}}\hspace*{\fill}%
}%
\else%
{%
  \hspace*{0pt}%
}%
\fi%
\end{minipage}%
%

% Added for CUI (remains blank if CUI is undefined)
\printcui

%% REPORT NUMBER %%
\begin{minipage}[c][1in]{2.5in}%
\vspace*{0.5\baselineskip plus 1\baselineskip}
\begin{minipage}{\textwidth}
\raggedleft
\large\textbsf{\@reportnum}
\end{minipage}%
\end{minipage}

\vspace*{0.5\baselineskip plus 0.5fill}

%% TITLE %%
\begin{minipage}{\textwidth}%
@@ -126,7 +195,7 @@
  }
\end{minipage}%

\vspace*{2\baselineskip}
\vspace*{1\baselineskip plus 1\baselineskip minus 1\baselineskip}

%%% PHOTO %%%
\includegraphics[width=6.0in, height=4.0in]{ornltm-titlephoto.jpg}
@@ -136,7 +205,7 @@
% If restrict and not draft, show restrict
% If not restrict and draft, show draft
% If not restrict and not draft, show ``approved for public release"
\vspace{\stretch{1}}
\vspace*{0pt \@plus 1fill}

%%% AUTHOR AND DATE %%%
\begin{minipage}[c]{3in}%
@@ -147,32 +216,76 @@
  \@author%
\end{tabular}

\vspace{2\baselineskip}
\vspace*{1\baselineskip \@plus 1\baselineskip \@minus 1\baselineskip}

\large\textbsf{\@date}
\end{minipage}%
%
\begin{minipage}[c]{3in}%
\if@reportdraft{%
  \textbsf{\large Draft. Not for public release.}%
}\fi%
%


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

% Configure notices for front cover.
\if@cuidefined%
\relax % 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}
  \centering%
  \printrestrict%
\end{framed}
}%
\fi
\fi

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


% Ensure restricted and CUI documents are *not* marked for public release
% if the document is *not* marked as draft.
\if@restrictdefined{%
\par\@restrict%
}\else%
\if@cuidefined{%
}\else%
\if@reportdraft\relax\else{%
\textbsf{%
\begin{framed}
\centering
\textbsf{% If not draft, CUI, or otherwise restricted, then unlimited distro.
  Approved for public release. \\
  Distribution is unlimited.}%
\end{framed}
}\fi%
\fi%
\fi

\end{minipage}

\vspace{\stretch{1}}
\vspace*{0pt \@plus 1fill}

\noindent\includegraphics[width=2.08in]{ornltm-logo.jpg}\\[-.15in]
\noindent\textcolor{ornlgreen}{\rule{6in}{.5pt}}\\
\noindent{\footnotesize\sffamily ORNL IS MANAGED BY UT--BATTELLE, LLC, FOR THE U.S.~DEPARTMENT OF ENERGY}
\noindent{\footnotesize\sffamily ORNL IS MANAGED BY UT--BATTELLE LLC FOR THE US~DEPARTMENT OF ENERGY}

% Added for CUI (remains blank if \cui is undefined)
\printcui
% Added for restrict (remains blank if \restrict is undefined)
\printrestrict

\end{titlepage}
\restoregeometry
}
@@ -187,44 +300,36 @@
% Create page
\def\makeostipage{%
\begin{titlepage}

% Added for CUI (remains blank if CUI is undefined)
\printcui


\vspace*{.5in}

  \centering\sffamily\small
  \fbox{\parbox{5.61in}{%
    \begin{center}
      \textbf{DOCUMENT AVAILABILITY}
    \end{center}
Reports produced after January 1, 1996, are generally available free via US Department of Energy (DOE) SciTech Connect.

\begin{quote}
  \textbi{Website} \href{https://osti.gov/}{osti.gov}
\end{quote}
\textbf{\textit{Online Access:}} US Department of Energy (DOE) reports produced after 1991 and a growing number of pre-1991 documents are available free via \href{https://www.osti.gov/}{https://www.osti.gov/}.  \\

Reports produced before January 1, 1996, may be purchased by members of the
public from the following source:
The public may also search the National Technical Information Service's \href{https://ntrl.ntis.gov/NTRL/}{National Technical Reports Library (NTRL)} for reports not available in digital format. \\

\begin{quote}
	National Technical Information Service \\
	5285 Port Royal Road \\
	Springfield, VA 22161 \\
  \textbi{Telephone} 703-605-6000 (1-800-553-6847) \\
  \textbi{TDD}        703-487-4639 \\
	\textbi{Fax}        703-605-6900 \\
  \textbi{E-mail} \email{info@ntis.gov} \\
  \textbi{Website} \href{https://classic.ntis.gov/}{classic.ntis.gov}
\end{quote}

Reports are available to DOE employees, DOE contractors, Energy Technology Data
Exchange representatives, and International Nuclear Information System
representatives from the following source:
DOE and DOE contractors should contact DOE's Office of Scientific and Technical Information (OSTI) for reports not currently available in digital format: \\

\begin{quote}
  US Department of Energy \\
  Office of Scientific and Technical Information \\
  PO Box 62 \\
	Oak Ridge, TN 37831 \\
  \textbi{Telephone} 865-576-8401 \\
  \textbi{Fax} 865-576-5728 \\
  \textbi{E-mail} \email{reports@osti.gov} \\
  \textbi{Website} \href{https://osti.gov/contact}{osti.gov/contact} \\
  Oak Ridge, TN 37831-0062 \\
  \textbf{\textit{Telephone:}} (865) 576-8401 \\
  \textbf{\textit{Fax:}} (865) 576-5728 \\
  \textbf{\textit{Email:}}  \href{mailto:reports@osti.gov}{reports@osti.gov} \\
  \textbf{\textit{Website:}} \href{https://www.osti.gov/}{https://www.osti.gov/} \\
\end{quote}

}}

\vspace{\fill}
@@ -238,13 +343,18 @@ usefulness of any information, apparatus, product, or process disclosed, or
represents that its use would not infringe privately owned rights. Reference
herein to any specific commercial product, process, or service by trade name,
trademark, manufacturer, or otherwise, does not necessarily constitute or imply
its endorsement, recommendation, or favoring by the United States Government or
any agency thereof. The views and opinions of authors expressed herein do not
necessarily state or reflect those of the United States Government or any agency
thereof.}}
its endorsement, recommendation, or favoring by the United States Government
or any agency thereof. The views and opinions of authors expressed herein do
not necessarily state or reflect those of the United States Government or any
agency thereof.}}

\vspace*{.5in}

% Added for CUI (remains blank if CUI is undefined)
\printcui
% Added for restrict (remains blank if \restrict is undefined)
\printrestrict

\end{titlepage}
}

@@ -255,6 +365,9 @@ thereof.}}
\begin{titlepage}
\setcounter{page}{2}%

% Added for CUI (remains blank if CUI is undefined)
\printcui

%%% REPORT NUMBER %%%
\raggedleft{\large\textbf{\@reportnum}}
\vspace{1in}
@@ -274,19 +387,27 @@ thereof.}}

\vspace{\stretch{.5}}

Date Published: \@date
% Date Published
\@date

\vspace{\stretch{.5}}

Prepared by \\
OAK RIDGE NATIONAL LABORATORY \\
Oak Ridge, TN 37831-6283 \\
Oak Ridge, TN 37831 \\
managed by \\
UT-Battelle, LLC \\
UT--BATTELLE LLC \\
for the \\
US DEPARTMENT OF ENERGY \\
under contract DE-AC05-00OR22725

\vspace{\stretch{.5}}

% Added for CUI (remains blank if CUI is undefined)
\printcui
% Added for restrict (remains blank if \restrict is undefined)
\printrestrict

\end{titlepage}%
} % end \maketitlepage

@@ -358,15 +479,19 @@ under contract DE-AC05-00OR22725
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ACRONYMS
% ABBREVIATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setacronymstyle{long-short}
\setglossarystyle{long}
\renewcommand\glsdescwidth{\linewidth}
\glstoctrue
\renewcommand\glossarypostamble{\@cleardbliffrontmatter}
\renewcommand\acronymname{ACRONYMS}
\acsetup{
list/heading = section*, % Set list heading to section but do not number
list/name = {LIST OF ABBREVIATIONS}, % Ensure heading will print correct title
list/template = tabular, % Set list style as tabular for better spacing
list/preamble = { % Adding options to the preamble of the actual list. Any text or TeX can go here (almost).
	\phantomsection % Adding a phantom section so the ToC link will actually go there
	\addcontentsline{toc}{section}{LIST OF ABBREVIATIONS} % Adding line to ToC for the abbreviations
} % End acro preamble
} % End acro setup


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MAIN MATTER
@@ -403,11 +528,21 @@ under contract DE-AC05-00OR22725
  \setcounter{page}{0}%
  \renewcommand\thepage{Back cover}%
\begin{titlepage}
% Added for CUI (remains blank if CUI is undefined)
\printcui


  \rule{0pt}{0pt}

  \vspace{\fill}

  \textcolor{ornlgreen}{\rule{\textwidth}{.5pt}}

% Added for CUI (remains blank if CUI is undefined)
\printcui
% Added for restrict (remains blank if \restrict is undefined)
\printrestrict

\end{titlepage}
}