Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ornltm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kennedy, Joseph H
ornltm
Commits
024d71d9
Commit
024d71d9
authored
8 years ago
by
Johnson, Seth R.
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
eb687ad8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+6
-0
6 additions, 0 deletions
.gitignore
Makefile
+4257
-0
4257 additions, 0 deletions
Makefile
Variables.ini
+1
-0
1 addition, 0 deletions
Variables.ini
ornl-template-example.tex
+111
-93
111 additions, 93 deletions
ornl-template-example.tex
ornltm.cls
+29
-23
29 additions, 23 deletions
ornltm.cls
with
4404 additions
and
116 deletions
.gitignore
+
6
−
0
View file @
024d71d9
...
...
@@ -12,3 +12,9 @@ ornl-template-example.pdf
*.run.xml
*.glo
*.ist
*.make
*.d
*.fls
*.cookie
*.gls
*.glg
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
4257
−
0
View file @
024d71d9
This diff is collapsed.
Click to expand it.
Variables.ini
0 → 100644
+
1
−
0
View file @
024d71d9
onlysources.tex
?=
ornl-template-example.tex
This diff is collapsed.
Click to expand it.
ornl-template-example.tex
+
111
−
93
View file @
024d71d9
...
...
@@ -5,13 +5,19 @@
%
% Example of ORNL tech memo template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass
{
ornltm
}
\
bibliography
{
ornltm
}
\usepackage
{
lipsu
m
}
% Use the [draft] option to compile more quickly
\
documentclass
[draft]
{
ornltm
}
%\documentclass[draft]{ornlt
m}
% XXX temporary: show page margins
%\usepackage{showframe}
% Unusual table extensions (support for table notes etc
%\usepackage{rotating}
\usepackage
{
multirow
}
\usepackage
{
threeparttable
}
%\usepackage{enumitem}
% Acronym support (ac, acl)
\usepackage
[shortcuts]
{
glossaries
}
\setacronymstyle
{
long-short
}
...
...
@@ -39,7 +45,7 @@
% Define division/directorate name. Replace "Division Name" with your
% division/directorate.
\division
{
Division Name
}
%
\division{Division Name}
% Add a restriction notice to the cover page. Remove comment "%" below if that
% is desired.
...
...
@@ -48,10 +54,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ACRONYMS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Note that acronyms that aren't used in the document won't be printed in the
% resulting list.
\makeglossaries
\newacronym
{
doe
}{
DOE
}{
Department of Energy
}
\newacronym
{
nrc
}{
NRC
}{
Nuclear Regulatory Commission
}
\newacronym
{
tm
}{
TM
}{
Oak Ridge National Laboratory
}
\newacronym
{
tm
}{
TM
}{
Technical memo
}
\newacronym
{
ornl
}{
ORNL
}{
Oak Ridge National Laboratory
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -66,6 +74,8 @@
% LIST OF TABLES
\listoftables
% LIST OF ACRONYMS
% NOTE: this will only print if `makeindex X.ist -o X.gls X.glo` is executed.
% This is part of the included makefile
\printglossary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -241,32 +251,31 @@ accommodate large tables, the font size can be decreased
and, if necessary, landscaped.
\begin{table}
[ht]
\centering
\begin{threeparttable}
\caption
{
Table caption is bold, centered, and initial cap with no period at
end of title
}
\label
{
tab:1
}
\small
\vspace
{
-6pt
}
\begin{center}
\begin{threeparttable}
\begin{tabular}
{
c c c c c c
}
\hline
\multirow
{
2
}{
*
}{
\textbf
{
EM projects
}$^{
a
}$}
&
\textbf
{
Recycling
}
&
\textbf
{
Amount
}
&
\multirow
{
2
}{
*
}{
\textbf
{
Recycling
}}
&
\multirow
{
2
}{
*
}{
\textbf
{
Disposa
}
l
}
&
\multirow
{
2
}{
*
}{
\textbf
{
Storage
}}
\\
&
\textbf
{
method
}
&
\textbf
{
recycled (lb)
}
&
&
&
\\
\hline
Metals recycle
&
Smelting
&
1,072,000
&
1,565,763
&
1,338,447
&
1,608,000
\\
Cooling tower
$^{
b
}$
&
Decontamination
&
459,000
&
605,880
&
573,120
&
688,500
\\
Totals
&
&
1,601,150
&
2,266,491
&
2,004,973
&
2,401,725
\\
\hline
\end{tabular}
\begin{tablenotes}
\item
{{
\emph
Note:
}
A general note to the table as a whole is not linked to a superscript letter. It is formatted like
}
{
this note. Table footnotes are 9 pt., or as with larger tables, 1 pt. smaller than the table body text.
}
\item
{${}^{
(
a
)
}$
\small
Footnote call-outs are lowercase, italic, superscript letters in sequence from left to right, then
}
{
\small
top to bottom.
}
\item
{${}^{
(
b
)
}$
\small
For multipage tables, the footnote appears only on the last page of the table. Beginning on
}
{
\small
the second page and following pages of a multipage table,
\textbf
{
use Table ?. (continued)
}
as the table caption.
}
\end{tablenotes}
\end{threeparttable}
\end{center}
\begin{tabular}
{
c c c c c c
}
\hline
\multirow
{
2
}{
*
}{
\textbf
{
EM projects
}
\tnote
{
a
}}
&
\textbf
{
Recycling
}
&
\textbf
{
Amount
}
&
\multirow
{
2
}{
*
}{
\textbf
{
Recycling
}}
&
\multirow
{
2
}{
*
}{
\textbf
{
Disposa
}
l
}
&
\multirow
{
2
}{
*
}{
\textbf
{
Storage
}}
\\
&
\textbf
{
method
}
&
\textbf
{
recycled (lb)
}
&
&
&
\\
\hline
Metals recycle
&
Smelting
&
1,072,000
&
1,565,763
&
1,338,447
&
1,608,000
\\
Cooling tower
\tnote
{
b
}
&
Decontamination
&
459,000
&
605,880
&
573,120
&
688,500
\\
Totals
&
&
1,601,150
&
2,266,491
&
2,004,973
&
2,401,725
\\
\hline
\end{tabular}
\begin{tablenotes}
\item
\emph
{
Note:
}
A general note to the table as a whole is not linked to
a superscript letter. It is formatted like this note. Table footnotes are
9 pt., or as with larger tables, 1 pt. smaller than the table body text.
\item
[a]
Footnote call-outs are lowercase, italic, superscript letters in
sequence from left to right, then
\item
[b]
For multipage tables, the footnote appears only on the last page of
the table. Beginning on the second page and following pages of a multipage
table, use Table N as the table caption.
\end{tablenotes}
\end{threeparttable}
\end{table}
...
...
@@ -292,51 +301,48 @@ et suscipit mauris. Maecenas aliquam lorem ipsum, nec dapibus nibh aliquam
vitae. Sed et molestie sapien. Nullam commodo id mauris quis mollis.
\begin{table}
[ht]
\centering
\caption
{
Table caption is bold, centered, and initial cap with no period at end of title
}
\begin{tabular}
{
|r|ccccccc|c|c|
}
\hline
\begin{sideways}
Paper
\end{sideways}
&
\begin{sideways}
Static
\end{sideways}
&
\begin{sideways}
Heterogeneous
\end{sideways}
&
\begin{sideways}
Preemptive
\end{sideways}
&
\begin{sideways}
Task sizes known
\end{sideways}
&
\begin{sideways}
Comms costs known
\end{sideways}
&
\begin{sideways}
Platform independent
\end{sideways}
&
\begin{sideways}
Year
\end{sideways}
&
\begin{sideways}
Pub type
\end{sideways}
\\
\hline
HAR1994j
&
x
&
&
&
x
&
x
&
&
1994
&
Journal
\\
SWRT1996c
&
x
&
x
&
&
x
&
x
&
&
1996
&
Conference
\\
GRA1999c
&
x
&
x
&
-
&
x
&
x
&
&
1999
&
Conference
\\
CFR1999j
&
x
&
&
&
x
&
x
&
x
&
1999
&
Journal
\\
TBS2001b
&
x
&
x
&
&
x
&
x
&
x
&
2001
&
Book Chapter
\\
DAYA2002j
&
x
&
x
&
-
&
x
&
x
&
x
&
2002
&
Journal
\\
\hline
\end{tabular}
\end{table}
\begin{sidewaystable}
[p]
\caption
{
Table caption is bold, centered, and initial cap with no period at end of title
}
\label
{
tab:2
}
\small
\vspace
{
-6pt
}
\begin{center}
\begin{threeparttable}
\begin{tabular}
{
c c c c c c
}
\hline
\multirow
{
2
}{
*
}{
\textbf
{
EM projects
}$^{
a
}$}
&
\textbf
{
Recycling
}
&
\textbf
{
Amount
}
&
\multirow
{
2
}{
*
}{
\textbf
{
Recycling
}}
&
\multirow
{
2
}{
*
}{
\textbf
{
Disposal
}}
&
\multirow
{
2
}{
*
}{
\textbf
{
Storage
}}
\\
&
\textbf
{
method
}
&
\textbf
{
recycled
}
(lb)
&
&
&
\\
\hline
Metals recycle
&
Smelting
&
1,072,000
&
1,565,763
&
1,338,447
&
1,608,000
\\
Cooling tower
$^{
b
}$
&
Decontamination
&
459,000
&
605,880
&
573,120
&
688,500
\\
Totals
&
&
1,601,150
&
2,266,491
&
2,004,973
&
2,401,725
\\
\hline
\end{tabular}
\begin{tablenotes}
\item
{{
\emph
Note:
}
A general note to the table as a whole is not linked to a superscript letter. It is formatted like
}
{
this note. Table footnotes are 9 pt., or as with larger tables, 1 pt. smaller than the table body text.
}
\item
{${}^{
(
a
)
}$
\small
Footnote call-outs are lowercase, italic, superscript letters in sequence from left to right, then
}
{
\small
top to bottom.
}
\item
{${}^{
(
b
)
}$
\small
For multipage tables, the footnote appears only on the last page of the table. Beginning on
}
{
\small
the second page and following pages of a multipage table,
\textbf
{
use Table ?. (continued)
}
as the table caption.
}
\end{tablenotes}
\end{threeparttable}
\end{center}
\end{sidewaystable}
% \begin{table}[ht]
% \centering
% \caption{Table caption is bold, centered, and initial cap with no period at end of title}
% \begin{tabular}{|r|ccccccc|c|c|}\hline
% \begin{sideways}Paper\end{sideways} &\begin{sideways}Static\end{sideways}
% &\begin{sideways}Heterogeneous\end{sideways} &\begin{sideways}Preemptive\end{sideways}
% &\begin{sideways}Task sizes known\end{sideways} &\begin{sideways}Comms costs known\end{sideways} &\begin{sideways}Platform independent\end{sideways} &\begin{sideways}Year\end{sideways} &\begin{sideways}Pub type\end{sideways}\\
% \hline
% HAR1994j &x & & &x &x & &1994 & Journal \\
% SWRT1996c &x &x & &x &x & &1996 & Conference \\
% GRA1999c &x &x &- &x &x & &1999 & Conference \\
% CFR1999j &x & & &x &x &x &1999 & Journal \\
% TBS2001b &x &x & &x &x &x &2001 & Book Chapter \\
% DAYA2002j &x &x &- &x &x &x &2002 & Journal \\
% \hline
% \end{tabular}
% \end{table}
% \begin{sidewaystable}[p]
% \centering
% \caption{Table caption is bold, centered, and initial cap with no period at end of title}\label{tab:2}
% \begin{threeparttable}
% \begin{tabular}{c c c c c c}
% \hline
% \multirow{2}{*}{\textbf{EM projects}$^{a}$} & \textbf{Recycling} & \textbf{Amount} & \multirow{2}{*}{\textbf{Recycling}} & \multirow{2}{*}{\textbf{Disposal}}
% & \multirow{2}{*}{\textbf{Storage}} \\
% & \textbf{method} & \textbf{recycled} (lb) & & & \\ \hline
% Metals recycle & Smelting & 1,072,000 & 1,565,763 & 1,338,447 & 1,608,000 \\
% Cooling tower$^{b}$ & Decontamination & 459,000 & 605,880 & 573,120 & 688,500 \\
% Totals & & 1,601,150 & 2,266,491 & 2,004,973 & 2,401,725 \\
% \hline
% \end{tabular}
% \begin{tablenotes}
% \item {{\emph Note:} A general note to the table as a whole is not linked to a superscript letter. It is formatted like}
% {this note. Table footnotes are 9 pt., or as with larger tables, 1 pt. smaller than the table body text.}
% \item {${}^{(a)}$\small Footnote call-outs are lowercase, italic, superscript letters in sequence from left to right, then}
% {\small top to bottom.}
% \item {${}^{(b)}$\small For multipage tables, the footnote appears only on the last page of the table. Beginning on }
% {\small the second page and following pages of a multipage table, \textbf{use Table ?. (continued)} as the table caption.}
% \end{tablenotes}
% \end{threeparttable}
% \end{sidewaystable}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -344,19 +350,25 @@ vitae. Sed et molestie sapien. Nullam commodo id mauris quis mollis.
\label
{
sec:citations
}
\subsection
{
Using In-Text Citations
}
For the ORNL TM reports,
\textit
{
Chicago Manual of Style
}
references and citations are preferred. Of these, you can choose
between author-date + references cited or footnote + references cited.
For the ORNL TM reports,
\textit
{
Chicago Manual of Style
}
references and
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 the autocite command to defer to the default citation
style, which will give you:
\autocite
{
Conley1998
}
.
Author-date style is set by default (in the class file) and is preferred. Use
the autocite command to defer to the default citation style, which will give
you:
\autocite
{
Conley1998
}
.
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
}
.
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 also push abbreviated citations into the footnotes using a footcite command, like this.
\footcite
{
Adams2001
}
You can also push abbreviated citations into the footnotes using a footcite
command, like this.
\footcite
{
Adams2001
}
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.''
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.''
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -417,7 +429,9 @@ You can also use numbered lists.
\subsubsection
{
Third-Order Heading
}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\paragraph
{
Fourth-order heading
}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\paragraph
{
Fourth-order heading
}
Cras elementum pellentesque lacinia. Pellentesque habitant morbi tristique
senectus et netus et malesuada fames ac turpis egestas. Curabitur ornare libero
...
...
@@ -457,17 +471,21 @@ efficitur justo sed diam suscipit varius.
% REFERENCES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The bibliography styles and backend are set in the ``Bibliography'' section of the class file (ornltm.cls by default).
% The bibliography styles and backend are set in the ``Bibliography'' section of
% the class file (ornltm.cls by default).
% \begin{references}
% % Enumerates the References section.
% \let\stdsection\section
% \def\section*#1{\stdsection{#1}}
% % Prints the references.
% \printbibliography
% % Puts the sections back to ``standard'' by deferring to global settings.
% \let\section\stdsection
% \end{references}
\begin{references}
% Enumerates the References section.
\let\stdsection\section
\def\section*
#1
{
\stdsection
{
#1
}}
% Prints the references.
% Bibliography support via biblatex
\printbibliography
% Puts the sections back to ``standard'' by deferring to global settings.
\let\section\stdsection
\end{references}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% APPENDICES
...
...
This diff is collapsed.
Click to expand it.
ornltm.cls
+
29
−
23
View file @
024d71d9
...
...
@@ -44,15 +44,11 @@
\RequirePackage
{
wallpaper
}
% background on cover page
\RequirePackage
{
fancyhdr
}
% headers and footers
\RequirePackage
[parfill]
{
parskip
}
% No indent for paragraphs
\RequirePackage
{
tocloft
}
% table of contents styling
%
\RequirePackage{tocloft} % table of contents styling
\RequirePackage
{
emptypage
}
% hide footers on blank pages
\RequirePackage
{
threeparttable
}
\RequirePackage
{
multirow
}
\RequirePackage
{
rotating
}
\RequirePackage
{
enumitem
}
\RequirePackage
[font=bf]
{
caption
}
\RequirePackage
{
xpatch
}
\RequirePackage
{
xcolor
}
%
\RequirePackage{xcolor}
\RequirePackage
{
titlesec
}
% title modification: use text size
\RequirePackage
[pdfusetitle]
{
hyperref
}
% url and links in PDF
...
...
@@ -136,10 +132,10 @@
%\renewcommand{\cftlottitlefont}{\hfill\large\bfseries\MakeUppercase}
%\renewcommand{\cftafterloftitle}{\hfill\null}
\renewcommand
{
\cftsecfont
}{
\normalfont
}
\renewcommand
{
\cftsubsecfont
}{
\normalfont
}
\renewcommand
{
\cftsecpagefont
}{
\normalfont
}
\renewcommand\@
tocrmarg
{
.5in plus .5fil
}
%
\renewcommand{\cftsecfont}{\normalfont}
%
\renewcommand{\cftsubsecfont}{\normalfont}
%
\renewcommand{\cftsecpagefont}{\normalfont}
%
\renewcommand\@tocrmarg{.5in plus .5fil}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% VARIABLES
...
...
@@ -386,16 +382,19 @@ under contract DE-AC05-00OR22725
\def\@
cleariffrontmatter
{
\if
@mainmatter
\relax\else
{
Poop
\clearemptydoublepage
}
\fi
}
\let\@
oldtableofcontents=
\tableofcontents
\def\tableofcontents
{
\renewcommand\tableofcontents
{
POOP1
\@
cleariffrontmatter
%
POOP2
\pagestyle
{
plain
}
%
POOP3
\@
oldtableofcontents
%
POOP4
}
\let\@
oldlistoffigures=
\listoffigures
\def\listoffigures
{
%\@cleariffrontmatter%
\if
@mainmatter
\relax\else
{
Poop
\clearemptydoublepage
}
\fi
\renewcommand\listoffigures
{
\@
cleariffrontmatter
%
\addcontentsline
{
toc
}{
section
}{
List of Figures
}
\phantomsection
\@
oldlistoffigures
%
...
...
@@ -416,6 +415,10 @@ under contract DE-AC05-00OR22725
\raggedright
\pagenumbering
{
arabic
}
\setcounter
{
page
}{
1
}
% Set up table formatting if used
\def\TPTtagStyle
#1
{
\slshape
#1
}
%
\let\@
oldTPTnoteSettings=
\TPTnoteSettings
%
\def\TPTnoteSettings
{
\@
oldTPTnoteSettings
\small
}
%
}
\newcommand
{
\frontmatter
}{
%
...
...
@@ -454,7 +457,9 @@ under contract DE-AC05-00OR22725
\newcommand\mainmatter
{
%
\clearemptydoublepage
\@
mainmattertrue
%
\pagenumbering
{
arabic
}}
\pagenumbering
{
arabic
}
%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% APPENDIX PAGE NUMBERING
...
...
@@ -497,14 +502,15 @@ under contract DE-AC05-00OR22725
%Use the command below for author-date style w/reference list.
\usepackage
[authordate,strict,backend=biber,autolang=other,bibencoding=inputenc]
{
biblatex-chicago
}
%The variables below allow you to define some things about the references list, including the name.
\newenvironment
{
references
}{
%
\renewcommand\refname
{
REFERENCES
}
%\phantomsection
%\addcontentsline{toc}{section}{References}
%\printbibliography
}
\bibliography
{
ornltm
}
%
% %The variables below allow you to define some things about the references list, including the name.
% \newenvironment{references}{%
% \renewcommand\refname{REFERENCES}
% %\phantomsection
% %\addcontentsline{toc}{section}{References}
% %\printbibliography
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% end of Exnihilo/environment/latex/ornltm.cls
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment