複数の索引を用意する
1冊に複数の索引を用意する。
プリアンブル:
\usepackage{makeidx}\makeindex % 索引を宣言する \usepackage{index} \newindex{A}{aidx}{aind}{索引A} \newindex{B}{bidx}{bind}{索引B} \begin{document} \backmatter \renewcommand{\indexname}{索引A} \printindex[A] \renewcommand{\indexname}{索引B} \printindex[B] \end{document}
jsbookを使っているときには、索引の見出しが「索引」に固定されるので、\indexnameの上書きが必要。
.tex:
\index[A]{Index} \index[B]{さくいん@索引}
mendex:
platex -kanji=utf8 somebook mendex -U -s indexstyle.ist -o somebook.aind somebook.aidx mendex -U -s indexstyle.ist -o somebook.bind somebook.bidx platex -kanji=utf8 somebook mendex -U -s indexstyle.ist -o somebook.aind somebook.aidx mendex -U -s indexstyle.ist -o somebook.bind somebook.bidx pbibtex -kanji=utf8 somebook platex -kanji=utf8 somebook
こちらを参照。
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/book3.html
mendexのエンコード
mendexでUTF-8を指定するときには、-Uオプションをつける。
mendex -U -s indexstyle.ist -o somebook.aind somebook.aidx
こちらを参照。
https://texwiki.texjp.org/?LaTeX%E5%85%A5%E9%96%80%2F%E7%99%BA%E5%B1%95%E7%B7%A8
indexstyle.ist
とりあえずこんな感じ。
lethead_flag 1 symbol "数字・記号" letter_head 2 lethead_prefix "\n{\\textsf{\\color[gray]{0.6} ■}~\\sffamily " lethead_suffix "}\\par\\nobreak"