使用词汇表包时无法编译 LaTeX 文档(致命错误)

使用词汇表包时无法编译 LaTeX 文档(致命错误)

我只是按照说明设置 TeXnicCenter 以使用词汇表包,如所述latex-community.org。我正在尝试创建一个首字母缩略词列表,但是我不会在文本中使用它们。我的文档如下所示:

\documentclass[bibtotoc,liststotoc,BCOR5mm,DIV12]{scrbook}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{url}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{bold-extra}

\usepackage{array}
\usepackage{algorithmic}
\usepackage[acronym]{glossaries}

\graphicspath{{./Bilder/}}

\makeglossaries

\newacronym{lvm}{LVM}{Logical Volume Manager}

\input{hyphenation}

\begin{document}

% ---------------------------------------------------------------

\frontmatter
\include{./Titel/titel-lmu}
\thispagestyle{empty}
\cleardoublepage
\tableofcontents

% ---------------------------------------------------------------
\mainmatter
\input{chapter1}

% ---------------------------------------------------------------
\backmatter
\printglossaries
\listoftables
\listoffigures
\bibliographystyle{alpha}
\bibliography{./Bib/stud77}
\end{document}

当我尝试编译时,出现以下错误。

)
! Incomplete \iffalse; all text was ignored after line 126.
<inserted text>
                \fi
l.55   \input{chapter2}


The file ended while I was skipping conditional text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.

)
! Incomplete \iffalse; all text was ignored after line 126.
<inserted text>
                \fi
<*> ...itung/stud77/Dokumentation/Latex/stud77.tex

The file ended while I was skipping conditional text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.

! Emergency stop.
<*> ...itung/stud77/Dokumentation/Latex/stud77.tex

*** (job aborted, no legal \end found)

实际上,当我在\usepackage[acronym]{glossaries}设置其他任何内容之前向文档添加行时,我也会收到此错误。我使用的是 MiKTeX 2.9。有人知道这是怎么回事吗?

相关内容