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

Adding new ORNL TM class and example.

The cover page, OSTI page, and title page are all implemented.

Notable changes:

- Using commands (author, title, date, reportnum, restrict) to insert
  content into the style
- If no report number is defined, the paper is treated as "draft" mode.
- Using MakeUppercase to format section headings rather than requiring
  the user to type them in expicitly. (If they reuse their content with a
  different style class, they don't have to lowercase it.)
- Using more pure LaTeX commands rather than a mix of TeX and LaTeX
  (avoid vskip and hskip, which have slightly different behavior; using
  more consistent font commands including defining ``\textbsf`` and
  ``\textbi`` for bold sans-serif and bold italics)
- Using more minipages and stretch, less ``\vtop to 0``
- Marking what packages are actually needed, not including ones that
  aren't
- Trying to use more font-like units; the original document has in,mm,pt

Remaining:

- Front matter
- TOC styling
- Section heading glue
- Long abstract option
parent 3dedd2c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
Official-TM-Style_060816.pdf
ornl-template-example.pdf
*.log
*.aux
*.bbl
+6 −95
Original line number Diff line number Diff line
\documentclass[11pt,letterpaper,twoside,english,final]{article}

\input{ornlmacro}


\begin{document}
\newcommand{\textbsf}[1]{{\bfseries\sffamily #1}}

\bibliographystyle{plain}
\begin{titlepage}

%NOTICE about prelim document
%delete NOTICE when document become final
\vspace{-1.75in}
\hspace{-1in}
\par
\footnotesize
\vspace{-.8in}
  \fbox{
  \begin{minipage}{0.55\textwidth}
   \raggedright
 \textsf{\textbf{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.}}
  \end{minipage}
  }

\URCornerWallPaper{1.0}{Graybar.png}
\ThisURCornerWallPaper{1.0}{Graybar.png}
\ClearWallPaper


\begin{flushright}{\textsf{\bfseries{\large{ORNL/TM-XXXX/XXX}}}}\\
\end{flushright}

\vspace{.15in}

\noindent
\begin{shaded}
\Huge{\textsf{\bfseries\color{white}{Oak Ridge National Laboratory \\
Official TM Cover
}}}
\end{shaded}

\begin{figure}[H]
\flushright
\includegraphics[width=4.88in, height=3.47in]{Officiallogo.jpg}
\end{figure}


\def\author#1{\large{\textsf{#1}}\\ }

\def\date#1{{\vspace{.25 in}

\large{\bfseries{\textsf{#1}}}\\ }}

\def\authordate#1{

\noindent
\vskip 6.8pt
\vtop to0pt{
\setlength{\parindent}{112mm}

#1\vss}}

\authordate{
\author{Author}
\author{Author}
\author{Author}
\date{Date}}

% delete NOTICE when document become final
\DraftBox                    % command for Draft. Not for public release.
%\ApprovedBox             % command for Approved for public release.
%\BusSenBox                 % command for Business Sensitive.
%\OUOBox                    % command for Official Use Only. To add item, open ORNLmacro.tex, make change, and save
%\ECIBox                      % command for Export Controlled Information
%\OUOECIBox               % command for OUO and ECI
%\OUOATBox                % command for Official Use Only and Applied Technology
%\OUOECIATBox           % command for Official Use Only, Export Controlled Information, and Applied Technology
%\UCNIBox                   % command for Unclassified Controlled Nuclear Information
%\CRADABox                % command for CRADA final.


\setlength{\parindent}{0pt}

\bigskip
\noindent

\thispagestyle{fancy}
\fancyfoot{}
\fancyfoot[L]{\includegraphics[width=3.72in]{textlogo.png}}
\renewcommand{\headrulewidth}{0pt}
\addtolength{\footskip}{0.3in}

\begin{document}

\begin{titlepage}
%%% XXX COVER
\end{titlepage}

\newpage
@@ -241,9 +160,7 @@ under contract DE-AC05-00OR22725
\listoffigures
\end{centering}

\addcontentsline{toc}{section}{LIST OF FIGURES}

\newpage
\addcontentsline{toc}{section}{List of FIgures}

\clearemptydoublepage
\phantomsection
@@ -253,8 +170,6 @@ under contract DE-AC05-00OR22725

\addcontentsline{toc}{section}{LIST OF TABLES}

\newpage

\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{ACRONYMS}
@@ -271,8 +186,6 @@ TNR & Times New Roman \\
\end{table}


\newpage

\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{ADDITIONAL FRONT MATERIAL}
@@ -307,8 +220,6 @@ Text footnotes are 9 pt., TNR with no space between notes.\symbolfootnote[1]{Foo

Footnotes may be used in addition to the author-date citation method, in which case, the footnotes provide additional information to the text, not bibliographic citations.

\newpage

\clearemptydoublepage
%\pagestyle{mypagestyle}                % Use for OUO in footer
\pagenumbering{arabic}
@@ -463,7 +374,7 @@ DAYA2002j &x &x &- &x &x &x &2002 & Journal \\
\end{table}

\begin{sidewaystable}[p]
\caption{Table caption is bold, centered, and initial cap with no period at end of title}\label{tab:1}
\caption{Table caption is bold, centered, and initial cap with no period at end of title}\label{tab:2}
\small
\vspace{-6pt}
\begin{center}
+75 −0
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
%
% Example of ORNL tech memo template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{ornltm}

% XXX temporary: show page margins
\usepackage{showframe}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\author{Author McAuthorface \and Example Examplson}
% If using an explicit  linebreak in the title, you must use the \protect
% command before it
\title{Oak Ridge National Laboratory: \protect\\ Official TM Example}
\date{September 16, 2016}

% Defining the report number causes the 'draft' notices to be removed.
%\reportnum{ORNL/TM-2016/XXX}

% Add a restriction notice to the cover page
%\restrict{Official use only etc.}

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FRONT MATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{abstract}
The abstract, if short, is inserted here before the introduction section. If the
abstract is long, it should be inserted with the front material and page
numbered as such, then this page would begin with the introduction section.
\end{abstract}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{First-order heading}

Begin text here.

The body of the document is paginated consecutively (i.e., 1, 2, 3) or by
section (i.e., 1-1, 2-1, 3-1) using Arabic numbers centered at the bottom of
each page. Blank backup pages are not numbered.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Second-order heading}

Begin text here.

Another paragraph is here.

\subsubsection{Third-Order Heading}

Begin text.

\paragraph{Fourth-order heading}

Begin text here.

\subparagraph{Fifth-order heading}

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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Figure placement}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\bibliographystyle{ans}
%\bibliography{SRJwork}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% end of ornltm/ornl-template-example.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+6 −10
Original line number Diff line number Diff line
\setcounter{secnumdepth}{5}
\usepackage{titlesec}
\usepackage{parskip}
\setcounter{secnumdepth}{5} % Show all levels in TOC
\usepackage{titlesec} % Section title commands
\usepackage{parskip} % No indent for paragraphs; put vspace between them
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{txfonts}
\usepackage{graphicx}
\usepackage{array}
@@ -13,28 +12,25 @@
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage[top=1in, bottom=1in, left=1in, right=1in] {geometry}
\usepackage[hidelinks]{hyperref}
\usepackage[pdftex,hidelinks]{hyperref}
\usepackage[flushleft]{threeparttable}
\usepackage{fncychap}
\usepackage{fullpage}
\usepackage{epsf}
\usepackage{bm}
\usepackage{rotating}
\usepackage{wallpaper}
\usepackage{sectsty}
\usepackage{framed, color}
\usepackage{framed} % colored box
\usepackage{float}
\usepackage{calc}
\usepackage{multirow}


\definecolor{shadecolor}{RGB}{0,121,52}
\sectionfont{\fontsize{11}{11}\selectfont}

\titleformat{\section}
	{\normalfont\large\bfseries\centering\uppercase}{\thesection}{1em}{}
\titleformat{\subsection}
	{\normalfont\large\bfseries\uppercase}{\thesubsection}{1em}{}
	{\normalfont\large\bfseries\MakeUppercase}{\thesubsection}{1em}{}
\titleformat{\subsubsection}
	{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
\titleformat{\paragraph}

ornltm.cls

0 → 100644
+356 −0
Original line number Diff line number Diff line
% !TEX root = ornl-template-example.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File  : Exnihilo/environment/latex/ornltm.cls
% Author: Seth R Johnson
% Date  : Fri Sep 16 17:09:22 2016
%
% Class style file for ORNL technical manuals.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{ornltm}[2016/09/16 ORNL Technical Memorandum class]

%%%%%%%%%%% TYPE AND GEOMETRY %%%%%%%%%%%
\LoadClass[11pt,letterpaper,twoside]{article}

\pagestyle{empty}

\RequirePackage[margin=1in,footskip=.75in]{geometry}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FONTS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ams math must be loaded before txfonts
\usepackage{amsmath}
% Use Times for math font and text font.
\RequirePackage[T1]{fontenc}
\RequirePackage{txfonts}
% bold math must be loaded after Times font
\RequirePackage{bm}

% Macro for bold sans-serif
\newcommand{\textbsf}[1]{{\bfseries\sffamily #1}}
% Macro for bold italics
\newcommand{\textbi}[1]{{\bfseries\itshape #1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% STYLING
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage{color} % colored fonts and boxes
\RequirePackage{wallpaper} % background on cover page
\RequirePackage{fancyhdr} % headers and footers
\RequirePackage[parfill]{parskip} % No indent for paragraphs
\RequirePackage[tiny]{titlesec} % title modification: use text size
\RequirePackage{tocloft} % table of contents styling
\RequirePackage[pdfusetitle]{hyperref} % url and links in PDF

% Footer for cover page
\fancypagestyle{coverpage}
{
   \fancyhf{}
   \fancyfoot[L]{\includegraphics[width=3.72in]{textlogo.png}}
}

% ORNL official green color
\definecolor{ornlgreen}{RGB}{0,121,52}

% Email URL command
\newcommand{\email}[1]{\href{mailto:#1}{#1}}
% Disable highlighting of links
\hypersetup{colorlinks=false}

% Show five levels of depth in title labels
\setcounter{secnumdepth}{5} 
            
% Title styles. You may need to use the \texorpdfstring when using hyperref and
% unusual titles.
\titleformat{\section}{\centering\bf}{\thetitle.}{1ex}{\MakeUppercase}[]
\titleformat{\subsection}{\bf}{\thetitle}{1ex}{\MakeUppercase}[]
\titleformat{\subsubsection}{\bf}{\thetitle}{1ex}{\MakeUppercase}[]
\titleformat{\paragraph}{\bf}{\thetitle}{1ex}{}[]
\titleformat{\subparagraph}{\bf\itshape}{\relax}{0pt}{}[]

% TOC styles
\renewcommand{\cfttoctitlefont}{\hfill\large\bfseries\MakeUppercase}
\renewcommand{\cftloftitlefont}{\hfill\large\bfseries\MakeUppercase}
\renewcommand{\cftlottitlefont}{\hfill\large\bfseries\MakeUppercase}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftafterloftitle}{\hfill}
\renewcommand{\cftafterlottitle}{\hfill}
\renewcommand{\cftsecfont}{\normalfont}
\renewcommand{\cftsubsecfont}{\normalfont}
\renewcommand{\cftsecpagefont}{\normalfont}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand\@tocrmarg{.5in plus .5fil}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% VARIABLES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Division or program name
\newif\if@divisiondefined
\@divisiondefinedfalse
\def\@division{DIVISION NAME UNDEFINED%
\PackageWarning{ornltm}{No division name has been defined.}}
\newcommand{\division}[1]{\def\@division{#1}\@divisiondefinedtrue}

% Use the \reportnum command to define a report number. If undefined, the
% document is a draft.
\newif\if@reportnumdefined
\@reportnumdefinedfalse
\def\@reportnum{ORNL/TM-XXXX/XXX%
\PackageWarning{ornltm}{No TM report number has been defined. The report will be
treated as a draft.}}
\newcommand{\reportnum}[1]{\def\@reportnum{#1}\@reportnumdefinedtrue}

% Use the \restrict command to define a report number. If undefined, the
% document is a draft.
\newif\if@restrictdefined
\@restrictdefinedfalse
\def\@restrict{%
  \textbsf{Approved for public release. \\
           Distribution is unlimited.}}
\newcommand{\restrict}[1]{\def\@restrict{#1}\@restrictdefinedtrue}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COVER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\makecoverpage{%
\begin{titlepage}
\thispagestyle{coverpage}
%
\URCornerWallPaper{1.0}{Graybar.png}%
\ThisURCornerWallPaper{1.0}{Graybar.png}%
\ClearWallPaper%
%
\begin{minipage}[c][1in]{\textwidth-2.5in}%
% Notice about preliminary document when the 'reportnum' variable is not set
\if@reportnumdefined%
{
  \hspace*{0pt}%
}%
\else%
{%
\hspace*{\fill}\fbox{\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}%
}%
\fi%
\end{minipage}%
%
\begin{minipage}[c][1in]{2.5in}%
\raggedleft\large\textbsf{\@reportnum}
\end{minipage}%

% Title block
\setlength\fboxsep{1em}
\colorbox{ornlgreen}{%
  \begin{minipage}{\textwidth-2\fboxsep}%
    \color{white}%
    \Huge\textbsf{%
      \@title
    }
\end{minipage}%
}

\vspace{2\baselineskip}

%%% PHOTO %%%
\hspace{\stretch{1}}%
\includegraphics[width=4.88in, height=3.47in]{Officiallogo.jpg}

%%% NOTICES %%%
% If restrict and reportnum, show restrict
% If restrict and not reportnum, show restrict and draft
% If not restrict and reportnum, show restrict (approved for public
% release)
% If not restrict and not reportnum, show draft
\vspace{\stretch{1}}
\begin{minipage}[c]{4in}%
\if@reportnumdefined{%
  \hspace*{\fill}\framebox{\parbox{.75\textwidth}{%
    \@restrict%
  }}\hspace*{\fill}%
}%
\else%
{
  \if@restrictdefined{%
    \hspace*{\fill}\framebox{\parbox{.75\textwidth}{%
      \@restrict%
    }}\hspace*{\fill}\par%
  }
  \else\relax\fi
  \hspace*{\fill}\framebox[.75\textwidth]{
    \large\textbsf{Draft. Not for public release.}
  }\hspace*{\fill}
}
\fi
\end{minipage}
\hspace*{\fill}
%%% AUTHOR AND DATE %%%
\begin{minipage}[c]{2in}%
\def\and{\\}% Newline between authors
\large\sffamily%
\setlength\tabcolsep{0pt}%
\begin{tabular}[t]{l}%
  \@author%
\end{tabular}

\vspace{2\baselineskip}

\large\textbsf{\@date}
\end{minipage}
\vspace{\stretch{1}}

\end{titlepage}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% OSTI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\makeostipage{%
\begin{titlepage}
  \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}
	Website http://www.osti.gov/scitech/
\end{quote}

Reports produced before January 1, 1996, may be purchased by members of the
public from the following source:

\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} \email{http://www.ntis.gov/help/ordermethods.aspx}
\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:

\begin{quote}
	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} http://www.osti.gov/contact.html \\
\end{quote}
}}

\vspace{\fill}

\fbox{\parbox{4in}{
This report was prepared as an account of work sponsored by an agency of the
United States Government. Neither the United States Government nor any agency
thereof, nor any of their employees, makes any warranty, express or implied, or
assumes any legal liability or responsibility for the accuracy, completeness, or
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.}}

\vspace*{.5in}

\end{titlepage}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\maketitlepage{%
\begin{titlepage}

%%% REPORT NUMBER %%%
\raggedleft\large\textbsf{\@reportnum}
\vspace{1in}

%%% DIVISION %%%
\centering\@division
\vspace{\stretch{1}}

%%% TITLE %%%
\textbf{\MakeUppercase{\@title}}
\vspace{3\baselineskip}%

%%% TITLE %%%
\begin{tabular}[t]{c}%
  \@author%
\end{tabular}%

\vspace{\stretch{.5}}

Date Published: \@date

\vspace{\stretch{.5}}

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

\end{titlepage}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ENVIRONMENT OVERRIDES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment{abstract}{%
  \addcontentsline{toc}{section}{Abstract}
  \section*{Abstract}%
}{}
\renewcommand\contentsname{Contents}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOCUMENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\AtBeginDocument{%
  % Add the cover, OSTI, and title pages to the beginning of the document.
  \pagenumbering{none}
  \def\and{\\}
  \makecoverpage%
  \makeostipage%
  \maketitlepage%
  \cleardoublepage
  % Add front matter
  \pagenumbering{roman}
  \setcounter{page}{3}
  % Make the table of contents
  \thispagestyle{plain}
  \tableofcontents%
  \cleardoublepage%
  % Begin actual document
  \raggedright
  \pagenumbering{arabic}
  \setcounter{page}{1}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% end of Exnihilo/environment/latex/ornltm.cls
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%