在此示例中,命名法的 pdfbookmark 链接到表格列表。如何在此处创建正确的书签?
\documentclass[listof=totoc,]{scrbook}
\usepackage{makeidx}
\usepackage{nomencl}
\makenomenclature
\usepackage{hyperref}
\begin{document}
\cleardoublepage\pdfbookmark{\contentsname}{toc}\tableofcontents
\listoffigures
\listoftables
\cleardoublepage\addcontentsline{toc}{chapter}{Nomenclature}\markboth{Nomenclature}{Nomenclature}
\printnomenclature
\chapter{Chapter One}
Test\nomenclature{i.e.}{id est}
\end{document}
答案1
该包nomencl
提供了选项intoc
。因此,您可以在目录和书签中获得正确的条目:
% arara: pdflatex
% arara: nomencl
% arara: pdflatex
% arara: pdflatex
\documentclass[listof=totoc,]{scrbook}
\usepackage{makeidx}
\usepackage[intoc]{nomencl}
\makenomenclature
\usepackage{hyperref}
\begin{document}
\pdfbookmark{\contentsname}{toc}
\tableofcontents
\listoffigures
\listoftables
\printnomenclature
\chapter{Chapter One}
Test\nomenclature{i.e.}{id est}
\end{document}