|
如题,代码如下:
- \documentclass[12pt]{book}
- \usepackage{amsmath,bm,yhmath,amssymb,etoolbox,esvect,stmaryrd,cite,enumitem,extarrows,mathtools,ifthen}
- \usepackage[amsmath, thmmarks]{ntheorem}
- {
- \theoremstyle{nonumberplain}
- \theoremheaderfont{\indent\bfseries}
- \theorembodyfont{\normalfont}
- \theoremsymbol{\ensuremath{\Box}}
- \newtheorem{proof}{证明}
- }
- %使用索引
- \usepackage{makeidx}
- \usepackage[pdfencoding=auto,psdextra,colorlinks,linkcolor=red,anchorcolor=blue,citecolor=blue]{hyperref}
- \makeindex
- \begin{document}
- \tableofcontents
- \mainmatter
- \chapter{First}
- \section{First of First}
- some text.\index{some text}
- \newpage
- aaa\index{aaa}
- \backmatter
- \addcontentsline{toc}{chapter}{索引}
- \renewcommand{\indexname}{索引}
- \printindex
- \end{document}
复制代码
用xelatex my,然后用makeindex my,最后再用xelatex my,生成my.pdf文件。文件的末尾是两个索引,对于aaa的索引,点击页码2后能正确跳到第2页,但是some text的索引就不能正确跳转,它跳到了第1页,就是目录页,请教这个要怎么解决呢?是不是我哪里写得不对? |
|