将索引条目放入链接不起作用

将索引条目放入链接不起作用

常见问题:使索引条目可点击。无法找到针对我特定情况的解决方案,尽管此问题已在此网站上多次提及。我已确保\usepackage{hyperref}随后会出现这种情况\usepackage{imakeidx}...但我什么也没得到。

任何帮助都值得欢迎。谢谢。

% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[a4paper,oneside,centered]{bookest}

\usepackage[english]{babel}
\usepackage{newpxtext} % Font for document instead of obsolete Palatino
\usepackage{tocloft} % Customization of TOC LOF LOT
\usepackage[table,xcdraw]{xcolor} % For shading in tables
\usepackage{pdfcolmk}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage{ltablex}
\usepackage{nicefrac} % to write fractions
\usepackage{attrib} % For source of quotations
\usepackage{lettrine} % For NewThought formatting
\usepackage{array} % To define width of columns in long table
\usepackage{booktabs} % Nicer spacing in columns
\usepackage{siunitx} % To write Celsius, etc.
\usepackage{enumitem} % To create item lists
\usepackage{caption} % To change way captions are labelled
\usepackage{scrextend}
\usepackage{threeparttable} % For table notes + To allow footnote material to stay with the tabular environment
\usepackage{etoolbox} % To make table footnote font smaller
\usepackage{threeparttablex}
\appto\TPTnoteSettings{\footnotesize}

%%%%%TEST_ZONE%%%%%%

\usepackage{imakeidx}
%\indexsetup{othercode=\small}
\makeindex[columns=3,title=Super Big Index,intoc]
%\usepackage{showidx} %To print all index entries in right margin to proofread entries

\usepackage{hyperref} % Hyperlinks

%%%%%TEST_ZONE%%%%%%

\usepackage{blindtext}
%\usepackage{showframe}

%\usepackage{chngcntr} % For continuous numbering of tables
%\counterwithout{table}{chapter}

% To change the style of the caption numbering.
%\renewcommand{\thetable}{\arabic{table}}

% To format the paragraphs
\setlength{\parindent}{4em} % For indentations
\setlength{\parskip}{1em} % For space between paragrpahs

% Defining how Celsius and Fahrenheit appear
\def\degC{$^\circ\kern-0.06em\rm{C}$}
\def\degF{$^\circ\kern-0.06em\rm{F}$}

%Table of Content depth
\geometry{verbose}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{5}
\setlength{\parindent}{15pt}

%Hyperlinks for TOC
\makeatletter
\hypersetup{
    colorlinks,
    citecolor=blue,
    filecolor=blue,
    linkcolor=blue,
    urlcolor=blue
}

% Change footnotes from numbers to symbols
\makeatletter
\def\@xfootnote[#1]{%
    \protected@xdef\@thefnmark{#1}%
    \@footnotemark\@footnotetext}
\makeatother

% To sign quotes properly
%\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
%       \hbox{}\nobreak\hfil(#1)%
%       \parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
%
%\newsavebox\mybox
%\newenvironment{aquote}[1]
%{\savebox\mybox{#1}\begin{quote}}
%   {\signed{\usebox\mybox}\end{quote}}

\begin{document}

% FRONTMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tableofcontents
\clearpage

\listoftables
\clearpage

\thispagestyle{plain} % To not have "List of Tables appear" at the top of the "Preface" page
\section*{Preface}
\blindtext
\clearpage

\thispagestyle{plain} % To not have "List of Tables appear" at the top of the "Preface" page
\section*{Introduction}
\blindtext
\clearpage

% MAINMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\chapter{The Mighty Chapter}
\index{nskfs}
\index{Nsfsjkfns}
\index{Nagag}

\index{qlsjbfz}

\index{Tly{\"a}nu|textbf}

\index{Goy{\'e}l}

\index{Aejhgjlh@{\ae}jhgjlh}

\index{Ald@{\'A}ld}

\printindex

\end{document}

答案1

bookest加载hyperref,这是非常糟糕的事情,因为它会早于文档中所有的包加载,并限制了用户。

手动实现类的功能并不困难。使用book或制作 的本地副本bookest.cls,从中删除 的调用hyperref;最好也更改名称。

相关内容