TeX/Manual

xindy

makeindexに代わるプログラムです.makeindexより柔軟で,多言語にも対応しています.TeX LiveやW32TeXに含まれています.

.xdyファイルの作成

古典ギリシア語を扱う場合の例.

(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")

コマンドの実行

スタイルはstyle.xdyで定義されているとします.

$ xindy -t test.xlg -M style -I xindy test.raw

規則の追加

http://ftp.jaist.ac.jp/pub/CTAN/indexing/xindy/base/からxindy-make-rules-0.x.tar.gzをダウンロードして展開します

polytonic-utf8-lang.xdyの書き換え

$TEXMF/lang/greek/polytonic-utf8.xdyの記述は不十分なので,書き換える必要があります.xindy-make-rules-0.2.tar.gzをダウンロードして,polytonic-utf8.pl.inを参考に新しいファイル(ここではpolutoniko-utf8.pl.inとします)を同じディレクトリ内に作っておきます.

1つ上のalphabetsディレクトリで

$ make greek/polutoniko-utf8

を実行します.alphabets/greekディレクトリ内にpolutoniko-utf8-test.xdyなどができていますので,これを参考にxdyファイルを作成します.

Tips

頭文字を小文字にする

:downcaseを用います.

 (markup-letter-group :downcase)

参考


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2019-03-30 (土) 04:06:25