今回はTeXでpdfに索引や参考文献を入れたいときの方法をまとめます。参考文献を入れる方法はBibTeXというやりかたでやります。TeXShopというプラットフォームでやると簡単にできます。
これ。
以下がサンプルです。
\documentclass{article} %preamble \usepackage{makeidx} \makeindex \begin{document} General reference to category theory is Mac Lane \cite{MCWM}. A \textit{category}\index{category} consists of a class of objects and that of arrows with some axioms. A \textit{subcategory}\index{category! subcategory} of a category is a category under the underlying operations. %bibliography \bibliography{this_is_a_sample} \bibliographystyle{plain} %printindex \printindex \end{document}
@book{ MCWM, author = "S. Mac Lane", title = "Categories for the Working Mathematician", publisher = "Springer", year = "1971" }
結果: