
直到昨天我一直在使用 Word,但我的導師建議我開始使用 LyX。我使用 Windows,所以我關注了 wiki 他受到推崇的。一切都運作正常,除了在嘗試編譯為 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」的套件。