Commit 03d121d0 authored by Crawford, Sam's avatar Crawford, Sam
Browse files

Moving to acro package instead of glossaries.

parent ee41582e
Loading
Loading
Loading
Loading
+26 −13
Original line number Diff line number Diff line
@@ -93,16 +93,31 @@


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ACRONYMS
% ABBREVIATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Note that acronyms that aren't used in the document won't be printed in the
%  list.
\makenoidxglossaries 
\newacronym{doe}{DOE}{Department of Energy}
\newacronym{nrc}{NRC}{Nuclear Regulatory Commission}
\newacronym{tm}{TM}{technical memo}
\newacronym{ornl}{ORNL}{Oak Ridge National Laboratory}
\newacronym{tnr}{TNR}{Times New Roman}
% Uses the Acro package called in CLS. Note that acronyms that aren't used in the document won't be printed in the list.

\DeclareAcronym{doe}{
	short = DOE ,
	long = US Department of Energy
	 }
\DeclareAcronym{nrc}{
	short = NRC ,
	long = Nuclear Regulatory Commission
	}
\DeclareAcronym{tm}{
	short = TM ,
	long = Technical Memo
}
\DeclareAcronym{ornl}{
	short = ORNL ,
	long = Oak Ridge National Laboratory
}
\DeclareAcronym{tnr}{
	short = TNR ,
	long = Times New Roman
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FRONT MATTER
@@ -117,10 +132,8 @@
% LIST OF TABLES: optional if fewer than 5 are used
\listoftables

% LIST OF ACRONYMS
% NOTE: this will only print if `makeindex X.ist -o X.acr X.acn` is executed.
% This is part of the included Makefile.
\printnoidxglossaries 
% Print LIST OF ABBREVIATIONS (optional)
\printacronyms


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+13 −8
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@
\RequirePackage{fancyhdr} % headers and footers
\RequirePackage{emptypage} % hide footers on blank pages
\RequirePackage[pdfusetitle]{hyperref} % url and links in PDF
\RequirePackage[shortcuts,acronym,nonumberlist,nogroupskip,nopostdot]{glossaries} % acronym support
\RequirePackage{acro} % Add support for abbreviations
\RequirePackage{array} % Add support for tabulars
\RequirePackage{tocloft} % table of contents styling
\RequirePackage{color} % colored fonts and boxes
\RequirePackage{framed} % framed notice boxes
@@ -326,7 +327,7 @@ DOE and DOE contractors should contact DOE’s Office of Scientific and Technica
US Department of Energy \\
Office of Scientific and Technical Information \\
PO Box 62 \\
Oak Ridge, TN 37831-0062 \\
Oak Ridge, TN 37831 \\
\textbf{\textit{Telephone:}} (865) 576-8401 \\
\textbf{\textit{Fax:}} (865) 576-5728 \\
\textbf{\textit{Email:}}  \href{mailto:reports@osti.gov}{reports@osti.gov} \\
@@ -485,12 +486,16 @@ under contract DE-AC05-00OR22725
% ABBREVIATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setacronymstyle{long-short}
\setglossarystyle{long}
\renewcommand\glsdescwidth{\linewidth}
\glstoctrue
\renewcommand\glossarypostamble{\@cleardbliffrontmatter}
\renewcommand\acronymname{ABBREVIATIONS}
\acsetup{
list/heading = section*, % Set list heading to section but do not number
list/name = {LIST OF ABBREVIATIONS}, % Ensure heading will print correct title
list/template = tabular, % Set list style as tabular for better spacing
list/preamble = { % Adding options to the preamble of the actual list. Any text or TeX can go here (almost).
	\phantomsection % Adding a phantom section so the ToC link will actually go there
	\addcontentsline{toc}{section}{LIST OF ABBREVIATIONS} % Adding line to ToC for the abbreviations
}
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MAIN MATTER