Skip to content
Snippets Groups Projects
Commit dc158c23 authored by Johnson, Seth R.'s avatar Johnson, Seth R.
Browse files

Fix build, improve layout

- Add white border around ORNL image
parent 00041e59
No related branches found
No related tags found
No related merge requests found
......@@ -17,4 +17,5 @@
*.out
*.run.xml
*.synctex.gz
*.temp
*.toc
ornl-template-example.pdf
......@@ -6,15 +6,15 @@
% Example of ORNL tech memo template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Use the [draft] option to compile more quickly
\documentclass[draft]{ornltm}
\documentclass{ornltm}
%\documentclass[draft]{ornltm}
% XXX temporary: show page margins
%\usepackage{showframe}
\renewcommand\makeostipage\relax
\renewcommand\makecoverpage\relax
\renewcommand\maketitlepage\relax
%\renewcommand\makeostipage\relax
%\renewcommand\makecoverpage\relax
%\renewcommand\maketitlepage\relax
% Unusual table extensions (support for table notes etc
%\usepackage{rotating}
......
......@@ -45,8 +45,6 @@
\RequirePackage{emptypage} % hide footers on blank pages
\RequirePackage[font=bf]{caption}
%\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
......@@ -70,12 +68,12 @@
% Email URL command
\newcommand{\email}[1]{\href{mailto:#1}{#1}}
% Disable highlighting of links
% Add pretty link colors
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
linkcolor=[rgb]{0.082,0.274,0.407},
citecolor=[rgb]{0.780,0.647,0.258},
urlcolor=[rgb]{0.325,0.494,0.658}
}
% TITLE STYLES
......@@ -173,19 +171,21 @@ treated as a draft.}}
\def\makecoverpage{%
\begin{titlepage}
\thispagestyle{coverpage}
%
\setlength{\parindent}{0pt}
\raggedleft
\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
%% TOP LEFT NOTICE %%
\if@reportnumdefined%
{
\hspace*{0pt}%
}%
\else%
{%
% Notice about preliminary document when the 'reportnum' variable is not set
\hspace*{\fill}\fbox{\parbox{3.5in}{%
\footnotesize\raggedright\textsf{%
NOTICE: This document contains information of a preliminary nature and is not
......@@ -196,11 +196,13 @@ treated as a draft.}}
\fi%
\end{minipage}%
%
%% REPORT NUMBER %%
\begin{minipage}[c][1in]{2.5in}%
\raggedleft\large\textbsf{\@reportnum}
\raggedleft
\large\textbsf{\@reportnum}
\end{minipage}%
% Title block
%% TITLE %%
\setlength\fboxsep{1em}
\colorbox{ornlgreen}{%
\begin{minipage}{\textwidth-2\fboxsep}%
......@@ -211,11 +213,16 @@ treated as a draft.}}
\end{minipage}%
}
\vspace{2\baselineskip}
\vspace*{2\baselineskip}
%%% PHOTO %%%
\hspace{\stretch{1}}%
\includegraphics[width=4.88in, height=3.47in]{Officiallogo.jpg}
\raggedleft
\hfill%
\setlength\fboxsep{0.05in}
\colorbox{white}{%
\includegraphics[width=4.88in]{Officiallogo.jpg}%
}%
\hspace{-0.05in}
%%% NOTICES %%%
% If restrict and reportnum, show restrict
......@@ -276,7 +283,7 @@ treated as a draft.}}
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/
\textbi{Website} http://www.osti.gov/scitech/
\end{quote}
Reports produced before January 1, 1996, may be purchased by members of the
......@@ -378,15 +385,10 @@ under contract DE-AC05-00OR22725
\@mainmattertrue
\def\@cleariffrontmatter{\if@mainmatter\relax\else{\cleardoublepage}\fi}
\let\@oldtableofcontents=\tableofcontents
\renewcommand\tableofcontents{
POOP1
\newcommand\ornltableofcontents{
\@cleariffrontmatter%
POOP2
\pagestyle{plain}%
POOP3
\@oldtableofcontents%
POOP4
\tableofcontents%
}
\let\@oldlistoffigures=\listoffigures
......@@ -494,14 +496,6 @@ 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}
% %\phantomsection
% %\addcontentsline{toc}{section}{References}
% %\printbibliography
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% end of Exnihilo/environment/latex/ornltm.cls
......
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