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
b1260ccf
Commit
b1260ccf
authored
8 years ago
by
Johnson, Seth R.
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
024d71d9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ornl-template-example.tex
+17
-1
17 additions, 1 deletion
ornl-template-example.tex
ornltm.cls
+20
-29
20 additions, 29 deletions
ornltm.cls
with
37 additions
and
30 deletions
ornl-template-example.tex
+
17
−
1
View file @
b1260ccf
...
...
@@ -12,6 +12,10 @@
% XXX temporary: show page margins
%\usepackage{showframe}
\renewcommand\makeostipage\relax
\renewcommand\makecoverpage\relax
\renewcommand\maketitlepage\relax
% Unusual table extensions (support for table notes etc
%\usepackage{rotating}
\usepackage
{
multirow
}
...
...
@@ -498,8 +502,13 @@ If each appendix contains similarly formatted text as the body of the document
(i.e., first-order headings) then flysheets are not necessary. If first-order
headings cannot be used, such as with computer data or forms, a flysheet should
be used.
\clearpage
blorp
\clearpage
blorp2
%
SECOND APPENDIX
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section
{
Second Appendix
}
\label
{
sec:secondapp
}
...
...
@@ -507,6 +516,13 @@ If each appendix contains similarly formatted text as the body of the document
(i.e., first-order headings) then flysheets are not necessary. If first-order
headings cannot be used, such as with computer data or forms, a flysheet should
be used.
\clearpage
blorp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section
{
Third Appendix
}
\label
{
sec:thirdapp
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
...
...
This diff is collapsed.
Click to expand it.
ornltm.cls
+
20
−
29
View file @
b1260ccf
...
...
@@ -13,8 +13,6 @@
%%%%%%%%%%% TYPE AND GEOMETRY %%%%%%%%%%%
\LoadClass
[11pt,letterpaper,twoside]
{
article
}
\pagestyle
{
empty
}
\RequirePackage
[margin=1in,footskip=.75in]
{
geometry
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -44,13 +42,14 @@
\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
{
emptypage
}
% hide footers on blank pages
\RequirePackage
[font=bf]
{
caption
}
\RequirePackage
{
xpatch
}
%\RequirePackage{tocloft} % table of contents styling
%\RequirePackage{xpatch}
%\RequirePackage{xcolor}
\RequirePackage
{
titlesec
}
% title modification: use text size
\RequirePackage
[pdfusetitle]
{
hyperref
}
% url and links in PDF
\RequirePackage
{
emptypage
}
% create a blank page with no numbers
% Footer for cover page
...
...
@@ -333,7 +332,7 @@ thereof.}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\
def
\maketitlepage
{
%
\
newcommand
\maketitlepage
{
%
\begin{titlepage}
%%% REPORT NUMBER %%%
...
...
@@ -375,11 +374,9 @@ under contract DE-AC05-00OR22725
% FRONT MATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand
{
\clearemptydoublepage
}{
\newpage\pagestyle
{
empty
}
\cleardoublepage
}
\newif\if
@mainmatter
\@
mainmattertrue
\def\@
cleariffrontmatter
{
\if
@mainmatter
\relax\else
{
Poop
\clear
empty
doublepage
}
\fi
}
\def\@
cleariffrontmatter
{
\if
@mainmatter
\relax\else
{
\cleardoublepage
}
\fi
}
\let\@
oldtableofcontents=
\tableofcontents
\renewcommand\tableofcontents
{
...
...
@@ -415,7 +412,7 @@ under contract DE-AC05-00OR22725
\raggedright
\pagenumbering
{
arabic
}
\setcounter
{
page
}{
1
}
% Set up table formatting if used
% Set up table formatting if used
(must come after user's preamble)
\def\TPTtagStyle
#1
{
\slshape
#1
}
%
\let\@
oldTPTnoteSettings=
\TPTnoteSettings
%
\def\TPTnoteSettings
{
\@
oldTPTnoteSettings
\small
}
%
...
...
@@ -437,7 +434,7 @@ under contract DE-AC05-00OR22725
% the top of the page.
\renewenvironment
{
abstract
}{
%
\if
@mainmatter
\relax\else
\clear
empty
doublepage
\cleardoublepage
\pagenumbering
{
arabic
}
\setcounter
{
page
}{
1
}
\fi
...
...
@@ -447,15 +444,13 @@ under contract DE-AC05-00OR22725
}{}
% Add page break after every section by default. (TODO: not fully working)
% \let\@oldsection=\section
% \renewcommand\section{\newpage\clearemptydoublepage\@oldsection}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MAIN MATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\mainmatter
{
%
\clear
empty
doublepage
\cleardoublepage
\@
mainmattertrue
%
\pagenumbering
{
arabic
}
%
}
...
...
@@ -469,26 +464,22 @@ under contract DE-AC05-00OR22725
% is not numbered, followed by a blank unnumbered page.
\renewcommand\appendixname
{
APPENDIX
}
\renewcommand\appendix
{
%
\clearemptydoublepage
%
\@
addtoreset
{
equation
}{
section
}
%
\@
addtoreset
{
page
}{
section
}
%
\cleardoublepage
%
\setcounter
{
section
}{
0
}
%
\setcounter
{
subsection
}{
0
}
%
\setcounter
{
subsubsection
}{
0
}
%
\setcounter
{
paragraph
}{
0
}
%
\setcounter
{
subparagraph
}{
0
}
%
\setcounter
{
equation
}{
0
}
%
%
%\titleclass{\section}{page}%
%\
newcommand
{
\section
break}
{\cleardoublepage}
%
%\assignpagestyle{\section}{empty
}%
\titleformat
{
\section
}
[block]
{
\
vfill\
filcenter\bf
}{
\appendixname
~
\thetitle
.
}{
1ex
}{
\MakeUppercase
}
[
\v
fill
]
%
%\titlespacing*{\section}{
0pt}{0pt}{0pt
}%
\assignpagestyle
{
\section
}{
page
}
%
\let\@
@oldsection=
\section
\re
newcommand\section
{
\cleardoublepage
\setcounter
{
page
}{
1
}
\@
@oldsection
}
% \newcommand{\sectionbreak}{\cleardoublepage
}%
%
\titleformat{\section}[block]{\filcenter\bf}{\appendixname~\thetitle.}{1ex}{\MakeUppercase}
%
[\v
space{\stretch{1}}
]%
%\titlespacing*{\section}{
}{\stretch{1}}{\stretch{1}
}%
\gdef\thesection
{
\@
Alph
\c
@section
}
%
\pagenumbering
{
arabic
}
%
\renewcommand
{
\thepage
}{
\thesection
-
\arabic
{
page
}}
%\let\@oldappendix=\appendix
%\def\appendix{\renewcommand{\thepage}{\thesection-\arabic{page}}\@oldappendix}
\renewcommand
{
\thepage
}{
\thesection
-
\arabic
{
page
}}
%
% Reset equations
\gdef\theequation
{
\@
Alph
\c
@section.
\arabic
{
equation
}}
%
\@
addtoreset
{
equation
}{
section
}
%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -503,7 +494,7 @@ 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
}
\bibliography
{
ornltm
}
%
% %The variables below allow you to define some things about the references list, including the name.
% \newenvironment{references}{%
% \renewcommand\refname{REFERENCES}
...
...
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