\documentclass[12pt] {book}
\usepackage{makeidx} % follow try index format makeidx and hyper ref together
\usepackage{hyperref}
\makeindex % 17 Nov 2014
\begin{document}
My main \index{motivation} is to address the plunging state of the education
\printindex
\end{document}
答案1
如果我使用pdflatex
-> makeindex
->编译您的代码pdflatex
,我就能得到正确生成的索引:
然而,这可能并不是您在文档正文中想要的内容:
\index{motivation}
添加motivation
到索引中。就是这样。它也不会在文本中排版单词。因此,您可能需要类似这样的内容:
\documentclass[12pt] {book}
\usepackage{makeidx} % follow try index format makeidx and hyper ref together
\usepackage{hyperref}
\makeindex % 17 Nov 2014
\begin{document}
My main \index{motivation}motivation is to address the plunging state of the education
\printindex
\end{document}
这会为你提供索引中的术语和文本: