Loading ornl-template-example.tex +17 −1 Original line number Diff line number Diff line Loading @@ -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} Loading Loading @@ -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} Loading @@ -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} Loading ornltm.cls +20 −29 Original line number Diff line number Diff line Loading @@ -13,8 +13,6 @@ %%%%%%%%%%% TYPE AND GEOMETRY %%%%%%%%%%% \LoadClass[11pt,letterpaper,twoside]{article} \pagestyle{empty} \RequirePackage[margin=1in,footskip=.75in]{geometry} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Loading Loading @@ -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 Loading Loading @@ -333,7 +332,7 @@ thereof.}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % TITLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\maketitlepage{% \newcommand\maketitlepage{% \begin{titlepage} %%% REPORT NUMBER %%% Loading Loading @@ -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 \clearemptydoublepage}\fi} \def\@cleariffrontmatter{\if@mainmatter\relax\else{\cleardoublepage}\fi} \let\@oldtableofcontents=\tableofcontents \renewcommand\tableofcontents{ Loading Loading @@ -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}% Loading @@ -437,7 +434,7 @@ under contract DE-AC05-00OR22725 % the top of the page. \renewenvironment{abstract}{% \if@mainmatter\relax\else \clearemptydoublepage \cleardoublepage \pagenumbering{arabic} \setcounter{page}{1} \fi Loading @@ -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{% \clearemptydoublepage \cleardoublepage \@mainmattertrue% \pagenumbering{arabic}% } Loading @@ -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}% \assignpagestyle{\section}{page}% \let\@@oldsection=\section \renewcommand\section{\cleardoublepage\setcounter{page}{1}\@@oldsection} % \newcommand{\sectionbreak}{\cleardoublepage}% %\assignpagestyle{\section}{empty}% \titleformat{\section}[block]{\vfill\filcenter\bf}{\appendixname~\thetitle.}{1ex}{\MakeUppercase}[\vfill]% %\titlespacing*{\section}{0pt}{0pt}{0pt}% % \titleformat{\section}[block]{\filcenter\bf}{\appendixname~\thetitle.}{1ex}{\MakeUppercase}%[\vspace{\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}% } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Loading @@ -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} Loading Loading
ornl-template-example.tex +17 −1 Original line number Diff line number Diff line Loading @@ -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} Loading Loading @@ -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} Loading @@ -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} Loading
ornltm.cls +20 −29 Original line number Diff line number Diff line Loading @@ -13,8 +13,6 @@ %%%%%%%%%%% TYPE AND GEOMETRY %%%%%%%%%%% \LoadClass[11pt,letterpaper,twoside]{article} \pagestyle{empty} \RequirePackage[margin=1in,footskip=.75in]{geometry} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Loading Loading @@ -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 Loading Loading @@ -333,7 +332,7 @@ thereof.}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % TITLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\maketitlepage{% \newcommand\maketitlepage{% \begin{titlepage} %%% REPORT NUMBER %%% Loading Loading @@ -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 \clearemptydoublepage}\fi} \def\@cleariffrontmatter{\if@mainmatter\relax\else{\cleardoublepage}\fi} \let\@oldtableofcontents=\tableofcontents \renewcommand\tableofcontents{ Loading Loading @@ -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}% Loading @@ -437,7 +434,7 @@ under contract DE-AC05-00OR22725 % the top of the page. \renewenvironment{abstract}{% \if@mainmatter\relax\else \clearemptydoublepage \cleardoublepage \pagenumbering{arabic} \setcounter{page}{1} \fi Loading @@ -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{% \clearemptydoublepage \cleardoublepage \@mainmattertrue% \pagenumbering{arabic}% } Loading @@ -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}% \assignpagestyle{\section}{page}% \let\@@oldsection=\section \renewcommand\section{\cleardoublepage\setcounter{page}{1}\@@oldsection} % \newcommand{\sectionbreak}{\cleardoublepage}% %\assignpagestyle{\section}{empty}% \titleformat{\section}[block]{\vfill\filcenter\bf}{\appendixname~\thetitle.}{1ex}{\MakeUppercase}[\vfill]% %\titlespacing*{\section}{0pt}{0pt}{0pt}% % \titleformat{\section}[block]{\filcenter\bf}{\appendixname~\thetitle.}{1ex}{\MakeUppercase}%[\vspace{\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}% } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Loading @@ -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} Loading