Commit 7b01dba0 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

Tex: load hyperref before glossaries to produce links to abbreviations (again)

parent 6982428d
......@@ -20,27 +20,9 @@
\usepackage{ulem} % make \emph underlined instead of italics
% Use more powerful glossaries instead of acronym (requires a "makeglossary") %
\usepackage[acronym,toc,shortcuts,nomain,nonumberlist]{glossaries}
% Use multicol for the definition of the glossary style %
\usepackage{multicol}
% Define the look of the glossary %
\newglossarystyle{myAcroStyle}{%
\setglossarystyle{list}%
\renewcommand*{\glspostdescription}{}%
\renewcommand*{\glsgroupskip}{}%
\renewcommand*{\glossarypreamble}{\setlength\columnsep{1cm}
\begin{multicols*}{2}
\setlist{leftmargin=3.7em}
}%
\renewcommand*{\glossarypostamble}{\end{multicols*}}%
}
% Redefine the acro command (from acronym) to be used with glossaries %
\newcommand{\acro}[2]{\newacronym{#1}{#1}{#2}}
% Initiate glossaries %
\makeglossaries
% Load acronym definitions from separate file %
\input{../tex_common/abbreviations.tex}
\usepackage{float}
% Can be used to generate blindtext to get a preliminary "look and feel" %
......@@ -92,6 +74,26 @@
\usepackage{caption}
\captionsetup[table]{singlelinecheck=false}
% Use more powerful glossaries instead of acronym (requires a "makeglossary") %
\usepackage[acronym,toc,shortcuts,nomain,nonumberlist]{glossaries}
% Define the look of the glossary %
\newglossarystyle{myAcroStyle}{%
\setglossarystyle{list}%
\renewcommand*{\glspostdescription}{}%
\renewcommand*{\glsgroupskip}{}%
\renewcommand*{\glossarypreamble}{\setlength\columnsep{1cm}
\begin{multicols*}{2}
\setlist{leftmargin=3.7em}
}%
\renewcommand*{\glossarypostamble}{\end{multicols*}}%
}
% Redefine the acro command (from acronym) to be used with glossaries %
\newcommand{\acro}[2]{\newacronym{#1}{#1}{#2}}
% Initiate glossaries %
\makeglossaries
% Load acronym definitions from separate file %
\input{../tex_common/abbreviations.tex}
% Use cleveref to reference sections, chapters, etc. (\cref{} & \Cref{}) %
\usepackage{cleveref}
\crefname{lstlisting}{listing}{listings}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment