%% gatech-thesis-losa.sty - support code for creating a 'List of
%% Symbols or Abbreviations"
%%
%% depends on gloss.sty, so it is not included by default in the
%% main gatech-thesis.cls (this cuts down on ``extra'' dependencies
%%
%% To use this package, all you need do is include
%% \usepackage{gatech-thesis-losa}
%% \losafiles{<database file, sans .bib suffix>}
%% in your preamble, and the LOSA will be automatically generated
%% and included in the frontmatter. Of course, you need actual
%% *entries* in the glossary file -- which must end in .bib -- and you
%% need actual citations to those entries within your bodytext, like this:
%% \losa{key}.
%% Note that \losa{<key>} typesets the <word> from the <key> entry of
%% the losafile within the text, so there''s no need to do this:
%% (BAD) word\losa{key-for-word}
%% Again, you should read the gloss.sty documentation for more info, but
%% basically gatech-thesis-losa.sty makes it simple:
%% 1. insert the two commands above into your preamble
%% 2. create a database with your glossary definitions
%% 3. sprinkle \losa{} citations in your text
%% 4. run ``bibtex'' on the <rootfile>.losa.aux file created
%% after the first ``latex'' run. (But don''t include the
%% .aux extension. So say ``bibtex <rootfile>.losa'' You
%% can do this at the same time you run ``bibtex'' for your
%% references.
%% 5. run ``latex'' twice more
%%
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{gatech-thesis-losa}
[2002/08/08 List of Symbols support for gatech-thesis.cls]
\@ifclassloaded{gatech-thesis}{}{
PackageError{This style can only be used with the gatech-thesis class}
}
\RequirePackage[refpages]{gloss}
\newif\iflosapage
\losapagetrue % why use this package if you're not going to USE it?
\renewcommand{\do@losapage}{%
\iflosapage
\if@openright\cleardoublepage\else\clearpage\fi
% must clear page here, so that phantomsection\addcontentsline is on the correct page
\settoheight{\gt@tmpa}{A}
\set@gttocskip{\gt@tmpa}
{\newlinestretch{1}
\addvspace{\gt@tocentryskip@value}
\phantomsection%
\addcontentsline{toc}{chapter}{\losacontentlinestring}
\printgloss[losa]{\@losafiles}
}%
\newpage
\fi
}