Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
a87c1cc2
Commit
a87c1cc2
authored
Sep 15, 2017
by
Stefan Tauner
Browse files
Tex: load hyperref before glossaries to produce links to abbreviations (again)
parent
4045bda2
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/tex_common/header.tex
View file @
a87c1cc2
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment