解决了
问题的原因是
include(s)
我的主 tex 文件的顶部,我将其更改为input
,现在它可以正常工作。
我已经阅读了词汇表包的文档和大量示例(ge这, 或者这),但我的词汇表条目将被引用,否则词汇表本身将不会被打印。所有其他索引/目录均正常工作。有人有想法吗?
最小工作示例:
\documentclass{scrreprt}
\usepackage[toc,acronym]{glossaries}
\makeglossaries
\newglossaryentry{bar}{name={bar}, description={\ldots}}
\newglossaryentry{baz}{name={baz},description={\ldots}}
\newacronym{foobar}{foobar}{\ldots}
\begin{document}
\section{foo section}
Lorem ipsum \gls{bar} \gls{baz} and \gls{foobar}.
\printglossary[type=main,title={Glossary},toctitle={Glossary}]
\thispagestyle{empty}\cleardoublepage
\printglossary[type=\acronymtype,title={List of Abbreviations},toctitle={List of Abbreviations}]
\end{document}
下面是产生问题的部分:
生成文件:
all:
xelatex thesis
biber thesis
makeglossaries thesis
xelatex thesis
论文.tex
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[a4paper]{scrreprt}
\include{header/header}
\include{header/commands}
\include{header/settings}
\makeglossaries
\bibliography{bibliography/thesisbib}
\include{appendix/glossary}
\begin{document}
\input{variables/global}
\pagenumbering{roman}
\begin{titlepage}
\input{frontpage/frontpage}
\end{titlepage}
\newpage
\input{frontpage/title_backside}
\newpage
{
\onehalfspacing
\input{abstract}
}
\blankpage{\thesisBlankPageText}
\tableofcontents
\blankpage{\thesisBlankPageText}
\pagenumbering{arabic}
\chapter{foo}
\section{bar}
\gls{computer} is a machine and \gls{mah}, \gls{aca}.
\blankpage
\appendix
\pagenumbering{Alph}
\cleardoublepage
%\addcontentsline{toc}{subsection}{Glossar}
\glsaddall
\printglossary[type=main,title={Glossary},toctitle={Glossary}]
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\addcontentsline{toc}{chapter}{\bibname}
\input{bibliography/bibliography}
\end{document}
词汇表.tex:
\newglossaryentry{computer}
{
name=computer,
description={\ldots}
}
\newglossaryentry{mah}
{
name=mah,
description={\ldots}
}
\newacronym{aca}{aca}{a contrived acronym}