词汇表附加功能未生成首字母缩略词列表

词汇表附加功能未生成首字母缩略词列表

我正在尝试使用该包构建文档glossaries-extra。但是,每当我尝试使用它构建时\makeglossaries\printglossaries我的文档中都会出现以下内容:

"
This document is incomplete. The external file associated with the glossary
`acronym' (which should be called Thesis.acr) hasn't been created.

Check the contents of the file Thesis.acn. If it's empty, that means you
haven't indexed any of your entries in this glossary (using commands like \gls
or \glsadd) so this list can't be generated. If the file isn't empty, the document
build process hasn't been completed.

Try one of the following:

 Add automake to your package option list when you load glossaries-extra.sty.

For example:

\usepackage[automake]{glossaries-extra}

 Run the external (Lua) application:

makeglossaries-lite.lua "Thesis"

 Run the external (Perl) application:

makeglossaries "Thesis"

Then rerun LATEX on this document.

This message will be removed once the problem has been xed.[type=acronym,

title=List of acronyms]"

.acn文件中有生成的条目,但没有.acr文件。我在 Windows 10 上使用 TexStudio。每当我运行词汇表工具时,我都会收到以下消息:

"Your document has used \makenoidxglossaries You don't need makeindex or xindy."

尽管我没有使用\makenoidxglossaries。我可以使用和成功显示首字母缩略词\makenoidxglossaries\printnoidxglossaries但我想使用命令中可用的选项\makeglossaries。我安装了 perl 解释器。

这是我的 MWE:

\documentclass[12pt]{report}


\usepackage[acronym,toc=true,nomain,xindy]{glossaries-extra}
\setabbreviationstyle[acronym]{long-short}


\makeglossaries
\newacronym{ac:test}{test}{test acronym please ignore}


\begin{document}



\printglossaries[type=\acronymtype, title={List of acronyms}]

\gls{ac:test}
\end{document}

这确实可以正确打印首字母缩略词“test”,但仍然显示首字母缩略词错误消息。

任何帮助都将不胜感激。谢谢

答案1

在 Venez 的评论之后,我摆弄了一下,意识到破坏我的主要构建的原因是文件.aux没有更新/生成某些使用 导入的章节\include。而旧.aux文件之前是使用 构建的\printnoidxglossary。它们没有更新的原因是它们被命令从构建中排除\includeonly。删除它后,它工作正常。

相关内容