我想使用模板硕士博士论文不幸的是,它创建了一个错误消息,我无法调试。此模板的主要结构是一个 main.tex 文件,它调用一个类 MastersDoctoralThesis.cls。
当我在文档类选项中选择一种语言(比如 ngerman)时,方式如下:
\documentclass[
11pt, % The default document font size, options: 10pt, 11pt, 12pt
ngerman, % ngerman for German, english for English
singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing not load the hyperref package
headsepline, % Uncomment to get a line under the header
]{MastersDoctoralThesis} % The class file specifying the document structure
它发出以下信息
Error: Undefined control sequence. \begin{document}
:
Warning: file 'translations-basic-dictionary-german.trsl' does not appear to be a dictionary
当我将语言更改为时,english,
错误仍然存在,但警告更改为
Warning: file
translations-basic-dictionary-english.trsl'似乎不是字典'
当我根本不使用 documentclass 中的选项而只是传入\RequirePackage[english,ngerman]{babel}
MastersDoctoralThesis.cls 时,我收到: ,,
Error: Undefined control sequence. \begin{document}
translations -basic-dictionary-german.trsl' 似乎不是字典警告:文件Error: Undefined control sequence. \begin{document}
Warning: file
,
translations-basic-dictionary-english.trsl' does not appear to be a dictionary
偶然地,我大部分时间都忘记了,直到现在,,
奇怪的是,语言工作正常,直到现在我想使用依赖于该选项的类中的命令。这些基本上改变了文档中的描述。
该问题独立于编译器 Latex、Lualatex 和 PDFLatex 发生
请帮我找到解决方案。
舒张功能
编辑: 在日志文件中有趣的部分如下所示:
("C:/Program Files/MiKTeX 2.9/tex/latex/psnfss/t1ppl.fd"
File: t1ppl.fd 2001/06/04 font definitions for T1/ppl.
)
! Undefined control sequence.
\@trnslt@check@dictionary #1#2->\AddToHook
{file/after/#1-\@trnslt@language ...
l.90 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Package translations Warning: file `translations-basic-dictionary-english.trsl'
does not appear to be a dictionary on input line 90.
(D:/Users/user/AppData/Roaming/MiKTeX/2.9/tex/latex/translations/dicts/tran
slations-basic-dictionary-english.trsl
File: translations-basic-dictionary-english.trsl (english translation file `tran
slations-basic-dictionary')
)
编辑2:
现在,我检查了一下,这是否是我的语言风格的问题。我创建了两个应用类scrreprt
和的最小文档示例MastersDoctoralThesis
。第一个运行正常,第二个再次抛出错误。