Skip to content
Snippets Groups Projects
Commit 42ef4c1a authored by Crawford, Sam's avatar Crawford, Sam Committed by Johnson, Seth R.
Browse files

Some tweaks.

parent 2bbb2a96
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,6 @@
\bibliography{ornltm}
\usepackage{lipsum}
% XXX temporary: show page margins
%\usepackage{showframe}
......@@ -48,21 +46,18 @@
\setcounter{page}{5}
% LIST OF FIGURES
\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{LIST OF FIGURES}
\begin{listmyfigures}
\listoffigures
\end{listmyfigures}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LIST OF TABLES
\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{LIST OF TABLES}
\begin{listmytables}
\listoftables
\end{listmytables}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......@@ -72,7 +67,7 @@
\begin{listacronyms}
\begin{table}[h]
\begin{table}[ht]
\vspace{-6pt}
\begin{tabular}{l l}
ORNL & Oak Ridge National Laboratory \\
......@@ -95,7 +90,7 @@ Add acknowledgment if applicable.
% ADDITIONAL FRONT MATTER (OPTIONAL)
\begin{foreward}
\begin{foreword}
Material after the Contents, List of Figures, List of Tables, and the Acronym list may include any or all of the following sections and should begin on an odd-numbered page in the order listed below:
......@@ -131,7 +126,7 @@ Material after the Contents, List of Figures, List of Tables, and the Acronym li
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.
\end{foreward}
\end{foreword}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......@@ -204,7 +199,7 @@ All figures are pulled in from source files that should be placed in a directory
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 similar.
\begin{figure}[h]
\begin{figure}[ht]
\begin{center}
\includegraphics[width=5.5in, height=2.5in]{Fig1.png}
\vspace{-.1in}
......@@ -214,7 +209,7 @@ to also place them in a sub folder named "figures" or similar.
Text can go in between figures. LaTeX will pretty much place the figures wherever it wants unless you explicitly command it to do otherwise.
\begin{figure}[h]
\begin{figure}[ht]
\begin{center}
\includegraphics[width=6.2in, height=2.75in, keepaspectratio=true]{Fig1.png}
\vspace{-.1in}
......@@ -235,7 +230,7 @@ space is left on the page at the point that they are processed. If there is not
to the top of the next page.) Tables are formatted using small TNR. To accommodate large tables, the font size can be decreased
and, if necessary, landscaped.
\begin{table}[h]
\begin{table}[ht]
\caption{Table caption is bold, centered, and initial cap with no period at end of title}\label{tab:1}
\small
\vspace{-6pt}
......@@ -281,7 +276,7 @@ the better control over changes and merges the author(s) will have. These breaks
\begin{table}[h]
\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
......@@ -425,11 +420,18 @@ Flanges used in ultra-high vacuum service are commonly closed with metallic gask
% The bibliography styles and backend are set in the ``Bibliography'' section of the class file (ornltm.cls by default).
\begin{references}
%This prints the references.
\printbibliography
% 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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% APPENDICES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
......@@ -44,15 +44,20 @@
\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{emptypage} % hide footers on blank pages
\RequirePackage{threeparttable}
\RequirePackage{multirow}
\RequirePackage{rotating}
\RequirePackage{enumitem}
\RequirePackage[font=bf]{caption}
\RequirePackage{xpatch}
\RequirePackage{etoolbox}
\RequirePackage{xcolor}
\RequirePackage{titlesec} % title modification: use text size
\RequirePackage[pdfusetitle]{hyperref} % url and links in PDF
% Footer for cover page
\fancypagestyle{coverpage}
{
......@@ -72,7 +77,12 @@
\newcommand{\email}[1]{\href{mailto:#1}{#1}}
% Disable highlighting of links
\hypersetup{colorlinks=false}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
% TITLE STYLES
......@@ -81,28 +91,28 @@
% You may need to use the \texorpdfstring when using hyperref and
% unusual titles.
\titleformat{\phantomsection}{\centering\bf}{\thetitle.}{1ex}{\MakeUppercase}[]
\titleformat{\phantomsection}{\centering\bf}{\thetitle}{1ex}{\MakeUppercase}[]
\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}{}[]
% Names ToC title and centers is with hfill. Pushes normalsize.
%\renewcommand{\contentsname}{\hfill\bfseries\normalsize\uppercase{Contents}\hfill}
%\renewcommand{\cftaftertoctitle}{\hfill}
% Names index title and centers is with hfill. Pushes normalsize.
\renewcommand{\indexname}{\hfill\bfseries\normalsize INDEX\hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
%\renewcommand{\indexname}{\hfill\bfseries\normalsize\uppercase{Index}\hfill}
%\renewcommand{\cftaftertoctitle}{\hfill}
% Names list of figures title and centers is with hfill. Pushes normalsize.
\renewcommand{\listfigurename}{\hfill\bfseries\normalsize LIST OF FIGURES\hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
% Names of figures title and centers is with hfill. Pushes normalsize.
% \renewcommand{\listfigurename}{\bfseries\normalsize\uppercase{List of Figures}}
%\renewcommand{\cftaftertoctitle}{\hfill}
% Names list of tables title and centers is with hfill. Pushes normalsize.
\renewcommand{\listtablename}{\hfill\bfseries\normalsize LIST OF TABLES\hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
% Names TOC title and centers is with hfill. Pushes normalsize.
\renewcommand{\contentsname}{\hfill\bfseries\normalsize CONTENTS\hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
%\renewcommand{\listtablename}{\hfill\bfseries\normalsize\uppercase{List of Tables}\hfill}
%\renewcommand{\cftaftertoctitle}{\hfill}
% TOC styles
......@@ -112,24 +122,25 @@
% Add leaders to all sections and subsections in the TOC.
\renewcommand\cftsecleader{\cftdotfill{\cftdotsep}}
% Add low caps to titles in TOC.
\renewcommand{\cftsecfont}{\scshape}
\renewcommand{\cftsubsecfont}{\scshape}
\renewcommand{\cftsubsubsecfont}{\scshape}
% Sections use UPPERCASE in ToC
\xpatchcmd{\l@section}{#1}{\uppercase {#1}}{}{}
% Subsections use UPPERCASE in ToC
\xpatchcmd{\l@subsection}{#1}{\uppercase{#1}}{}{}
%\renewcommand{\cfttoctitlefont}{\hfill~~~~~~~~~~\large\bfseries\MakeUppercase}
%\renewcommand{\cftaftertoctitle}{\hfill\null}
%\renewcommand{\cftloftitlefont}{\hfill~~~~~~~~~~\large\bfseries\MakeUppercase}
%\renewcommand{\cftafterloftitle}{\hfill\null}
%\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}
%\renewcommand{\cftafterloftitle}{\hfill\null}
\renewcommand{\cftsecfont}{\normalfont}
\renewcommand{\cftsubsecfont}{\normalfont}
\renewcommand{\cftsecpagefont}{\normalfont}
\renewcommand\@tocrmarg{.5in plus .5fil}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% VARIABLES
......@@ -368,12 +379,32 @@ under contract DE-AC05-00OR22725
% ENVIRONMENT OVERRIDES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Pushing lists (bulleted and numbered) to left margin.
%\setlist{leftmargin=5.0mm}
\newenvironment{listmyfigures}{%
\newpage
\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{List of Figures}
% \section*{List of Figures}%
}{}
\newenvironment{listmytables}{%
\newpage
\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{List of Tables}
% \section*{List of Tables}%
}{}
% Adding an environment for a list of acronyms.
\newenvironment{listacronyms}{%
\newpage
\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{LIST OF ACRONYMS}
\addcontentsline{toc}{section}{List of Acronyms}
\section*{List of Acronyms}%
}{}
......@@ -386,13 +417,13 @@ under contract DE-AC05-00OR22725
\section*{Summary}%
}{}
% Adding an environment for a foreward.
\newenvironment{foreward}{%
% Adding an environment for a foreword.
\newenvironment{foreword}{%
\newpage
\clearemptydoublepage
\phantomsection
\addcontentsline{toc}{section}{Foreward}
\section*{Foreward}%
\addcontentsline{toc}{section}{Foreword}
\section*{Foreword}%
}{}
% Adding an environment for an acknowledgment.
......@@ -404,10 +435,6 @@ under contract DE-AC05-00OR22725
\section*{Acknowledgment}%
}{}
%\renewcommand\section{\newpage\clearemptydoublepage}
%\let\oldsection\section
%\renewcommand\section{\clearpage\oldsection}
% Specify some behavior for the abstract.
\renewenvironment{abstract}{%
......@@ -416,8 +443,8 @@ under contract DE-AC05-00OR22725
\pagenumbering{arabic}
\setcounter{page}{1}
\phantomsection
\addcontentsline{toc}{section}{ABSTRACT}
\section*{ABSTRACT}%
\addcontentsline{toc}{section}{Abstract}
\section*{Abstract}%
}{}
% Adding a page break after every section by default.
......@@ -494,9 +521,9 @@ under contract DE-AC05-00OR22725
%The variables below allow you to define some things about the references list, including the name.
\newenvironment{references}{%
%\renewcommand\refname{References}
\renewcommand\refname{REFERENCES}
%\phantomsection
\addcontentsline{toc}{section}{References}
%\addcontentsline{toc}{section}{References}
%\printbibliography
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment