目标

目标

目标

我正在尝试使用以下 MWE 创建词汇表:

\documentclass{article}

\usepackage{glossaries}

\makeglossaries
\loadglsentries{foo}
\begin{document}

\gls{foobar} is a strange animal

\gls{foo} is another strange animal
\printglossaries

\end{document}

其中词汇表项位于单独的foo.tex

\newglossaryentry{foobar}{%
  name={Foobar},
  description={A strange animal, not to be confused with \gls{foo}}
}

\newglossaryentry{foo}{%
  name={Foo},
  description={A strange animal, not to be confused with \gls{foobar}}
}

困难

我的独特之处在于我将所有中间文件(例如.aux)放入一个单独的build/目录中,这使得我的目录如下所示:

.
├── build
├── foo.tex
└── test.tex

以下是我使用的命令

  • xelatex -synctex=1 -interaction=nonstopmode -shell-escape -output-directory=build %.tex
  • makeglossaries build/%
  • 构建和查看:txs:///compile | txs:///makeglossaries | txs:///compile | txs:///view

然而,我观察到以下情况

  • 当我按下 时F5,没有生成词汇表,并提示以下错误消息:
Process started: makeglossaries build/"test"

***Call to makeindex failed*** Possible cause of problem: Style file not found. (Have you used \noist by mistake?) Check 'build/test.glg' for details
Process exited with error(s)


Process started: xelatex -synctex=1 -interaction=nonstopmode -shell-escape -output-directory=build "test".tex

Index style file test.ist not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
system returned with code 256
Process exited normally
  • 当我进入build/目录,makeglossaries test然后F5,可以生成词汇表,但错误消息仍然存在。

我是否错误地设置了makeglossaries命令?我该怎么做才能解决这个问题?

相关内容