我的代码如下:
\documentclass{book}
\usepackage[toc,nonumberlist]{glossaries}
\begin{document}
\newglossaryentry{algorithmic}
{
name=algorithmic trading,
description={a type of trading based on the use of computer algorithms (`algos') to automatically submit, cancel, and otherwise manage order}
}
\newglossaryentry{hidden}
{
name=hidden order,
description={an order type that displays none or only a portion of the order to other market participants}
}
\glossarystyle{altlist}
\glsaddall
\printglossaries
\end{document}
编译后,我运行命令makeindex -s filename.ist -o filename.gls filename.glo
然后我再次重新编译文件,但条目没有出现在输出中,希望我错过了一些步骤,有人可以建议吗?
另请注意,我需要使用主条目名称运行条目,即输出应为:
算法交易。一种基于使用计算机算法(“算法”)自动提交、取消和以其他方式管理订单的交易类型
答案1
您的代码不包含\makeglossaries
。此行是写入辅助文件所必需的(否则您将收到有关“在 filename.aux 中未找到 \@istfilename”的错误)。
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% arara: pdflatex
\documentclass{book}
\usepackage[toc,nonumberlist]{glossaries}
\newglossaryentry{algorithmic}
{
name=algorithmic trading,
description={a type of trading based on the use of computer algorithms (`algos') to automatically submit, cancel, and otherwise manage order}
}
\newglossaryentry{hidden}
{
name=hidden order,
description={an order type that displays none or only a portion of the order to other market participants}
}
\makeglossaries
\begin{document}
Test
\glossarystyle{altlist}
\glsaddall
\printglossaries
\end{document}