直到昨天我还在使用 Word,但我的导师建议我开始使用 LyX。我使用 Windows,所以我按照他受到推崇的。一切运行正常,除了尝试编译为 pdf 时,我收到错误:
LaTeX 错误:未找到文件“cp1255.def”。
值得一提的是,我尝试卸载并安装 2.0.6 版本,但出现同样的错误,因此我重新安装了 2.2.2。
我该如何解决这个问题?提前致谢。
这是尝试编译希伯来语文档的日志文件:
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100) (preloaded format=pdflatex 2017.1.20) 20 JAN 2017 17:01
entering extended mode
**./newfile1.tex
(newfile1.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"
Package: fontenc 2016/06/19 v1.99m Standard LaTeX package
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"
File: t1enc.def 2016/06/19 v1.99m Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
)) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
Package: inputenc 2015/03/17 v1.2c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\latin9.def"
File: latin9.def 2015/03/17 v1.2c Input encoding file
)
! LaTeX Error: File `cp1255.def' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)
Enter file name:
! Emergency stop.
<read *>
l.158 \endinput
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
449 strings out of 493333
4397 string characters out of 3136605
53242 words of memory out of 3000000
4056 multiletter control sequences out of 15000+200000
4403 words of font info for 15 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
23i,0n,19p,144b,37s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!
答案1
在 Windows 上,通过 MiKTeX 的包管理器安装包“babel-hebrew”。
在 Ubuntu 上,如果您使用来自 Ubuntu 存储库的 TeX Live,请安装包“texlive-lang-other”。
在其他系统上,搜索包含文件“cp1255.def”的包。