MiKTeX 今天的更新包括 Xindy(终于!)。这是个好消息,但不幸的是我无法让它工作。以下是最简单的示例:
\documentclass{article}
\usepackage[xindy]{glossaries}
\newacronym{AKA}{AKA}{Also Known As}
\makeglossaries
\begin{document}
\glsaddall
\printglossaries
\end{document}
makeglossaries
失败,退出代码为 25。这是文件的内容.glg
:
;; This logfile was generated automatically by `xindy'
;; at 20.06.2015 07:29:59
;; Indexstyle: "5i3SDna0ed", Rawindex: "Yl65BHMXsP", Output: "test1.gls"
ERROR: "" is not a valid filename !
*** Unable to execute: '"xindy" -L english -I xindy -M "test1" -t "test1.glg" -o "test1.gls" "test1.glo"' ***
Failed with error code 1.
Status report:
Opening logfile "test1.glg" (done)
Reading indexstyle...
Loading module "5i3SDna0ed"...
Error in line 1:
(require "")
ERROR: "" is not a valid filename !
5i3SDna0ed
这是生成的文件的内容
(require "")
(require "test1.xdy")
我需要配置一些东西才能让 Xindy 工作吗?
答案1
问题确实与 MiKTeX 安装在包含空格的路径中有关。可以通过在C:\Program Files\MiKTeX2.9\scripts\xindy\xindy.pl
替换第 779 行
@styles = glob("$lang_dir/$variant$cp*-lang.xdy");
经过
@styles = glob("'$lang_dir/$variant$cp*-lang.xdy'");