[[TeX/Manual]] *xindy [#ab0a1ec9] makeindexに代わるプログラムです.makeindexより柔軟で,多言語にも対応しています.TeXLive2012やW32TeXに含まれています. **.xdyファイルの作成 [#f518df14] 古典ギリシア語を扱う場合の例. (define-location-class "page-numbers" ("arabic-numbers")) (define-attributes (("definition" "usage"))) (markup-index :open "~n\begin{theindex}~n" :close "~n\end{theindex}~n" :tree) (markup-locref :class "page-numbers" :attr "definition" :open "{\bf " :close "}") (markup-locclass-list :open "\quad{}") (markup-locref-list :sep ", ") (markup-indexentry :open "~n \item " :depth 0) (markup-indexentry :open "~n \subitem " :depth 1) (markup-indexentry :open "~n \subsubitem " :depth 2) (require "lang/greek/polytonic-utf8-lang.xdy") **コマンドの実行 [#h9ed8bab] スタイルはstyle.xdyで定義されているとします. $ xindy -t test.xlg -M style -I xindy test.raw **polytonic-utf8-lang.xdyの書き換え [#cf222f8a] $TEXMF/lang/gree/polytonic-utf8.xdyの記述は不十分なので,書き換える必要があります.xindy-make-rules-0.2.tar.gzをダウンロードして,polytonic-utf8.pl.inを参考に新しいファイル(ここではpolutoniko-utf8.pl.inとします)を作り,同じディレクトリにtest.xdyとmake-rules.plをコピーして $ perl polutoniko-utf8.pl.in polutoniko-utf8 を実行します. //+`deffine-letter-group'は普通の用法ではこれで十分です. //+`el-alphabetize'の項目は,アクセント(等)付の文字がどの文字に属するかを決めます(たとえば`ἄ'なら`α'). //+`el-resolve-diacritics'の項目は,文字が同じ場合に,どのアクセント(等)付文字を先に並べるかを決めます(たとえば`ἰ'が先で`ἱ'が後,など). //+`el-resolve-case'は大文字と小文字を区別します.大文字なら値は`8',小文字なら`9'です. **参考 [#e8fc5fdc] -http://tex.stackexchange.com/questions/17890/xindy-how-to-add-new-letters-and-lettergroups-to-the-alphabet?rq=1