Fix acronym hyperlinks

This commit is contained in:
Raffaele Mignone 2021-06-05 16:33:09 +02:00
parent b1f12a4a24
commit 945682f272
Signed by: norangebit
GPG Key ID: F5255658CB220573

View File

@ -53,14 +53,14 @@ $if(linestretch)$
\usepackage{setspace} \usepackage{setspace}
$endif$ $endif$
\usepackage{amssymb,amsmath} \usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex} \usepackage{iftex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex \ifPDFTeX
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex \else % if luatex or xetex
$if(mathspec)$ $if(mathspec)$
\ifxetex \ifXeTeX
\usepackage{mathspec} \usepackage{mathspec}
\else \else
\usepackage{unicode-math} \usepackage{unicode-math}
@ -84,7 +84,7 @@ $for(fontfamilies)$
$endfor$ $endfor$
$if(mathfont)$ $if(mathfont)$
$if(mathspec)$ $if(mathspec)$
\ifxetex \ifXeTeX
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
\else \else
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
@ -94,18 +94,18 @@ $else$
$endif$ $endif$
$endif$ $endif$
$if(CJKmainfont)$ $if(CJKmainfont)$
\ifxetex \ifXeTeX
\usepackage{xeCJK} \usepackage{xeCJK}
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
\fi \fi
$endif$ $endif$
$if(luatexjapresetoptions)$ $if(luatexjapresetoptions)$
\ifluatex \ifLuaTeX
\usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset} \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
\fi \fi
$endif$ $endif$
$if(CJKmainfont)$ $if(CJKmainfont)$
\ifluatex \ifLuaTeX
\usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec} \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
\setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
\fi \fi
@ -216,7 +216,7 @@ $for(header-includes)$
$header-includes$ $header-includes$
$endfor$ $endfor$
$if(lang)$ $if(lang)$
\ifxetex \ifXeTeX
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
\usepackage{polyglossia} \usepackage{polyglossia}
\setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$} \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
@ -224,21 +224,24 @@ $for(polyglossia-otherlangs)$
\setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$} \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
$endfor$ $endfor$
\else \else
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
% get rid of language-specific shorthands (see #6817):
\let\LanguageShortHands\languageshorthands
\def\languageshorthands#1{}
$if(babel-newcommands)$ $if(babel-newcommands)$
$babel-newcommands$ $babel-newcommands$
$endif$ $endif$
\fi \fi
$endif$ $endif$
\ifluatex \ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures \usepackage{selnolig} % disable illegal ligatures
\fi \fi
$if(dir)$ $if(dir)$
\ifxetex \ifXeTeX
% Load bidi as late as possible as it modifies e.g. graphicx % Load bidi as late as possible as it modifies e.g. graphicx
\usepackage{bidi} \usepackage{bidi}
\fi \fi
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex \ifPDFTeX
\TeXXeTstate=1 \TeXXeTstate=1
\newcommand{\RL}[1]{\beginR #1\endR} \newcommand{\RL}[1]{\beginR #1\endR}
\newcommand{\LR}[1]{\beginL #1\endL} \newcommand{\LR}[1]{\beginL #1\endL}
@ -313,7 +316,6 @@ $endif$
$endif$ $endif$
}{classicthesis} }{classicthesis}
\usepackage{classicthesis} \usepackage{classicthesis}
\usepackage{graphicx} \usepackage{graphicx}
$if(acronym)$ $if(acronym)$
@ -556,13 +558,11 @@ $if(ac-title)$
$else$ $else$
\chapter*{Acronyms} \chapter*{Acronyms}
$endif$ $endif$
\begin{NoHyper}
\begin{acronym}[TDMA] \begin{acronym}[TDMA]
$for(acronym)$ $for(acronym)$
\acro{$acronym.short$}{$acronym.long$} \acro{$acronym.short$}{$acronym.long$}
$endfor$ $endfor$
\end{acronym} \end{acronym}
\end{NoHyper}
\cleardoublepage \cleardoublepage
$endif$ $endif$
%******************************************************* %*******************************************************