
由於我的文件不是用德語編寫的,我想我應該卸載該dehyph
軟體包。但顯然運行 pdfLaTeX 時需要這個包。為什麼?它包含什麼如此重要?
我在 Windows 10 中使用 MikTeX 系統,如果它有什麼區別的話。這是我的 MWE:
\documentclass{article}
\begin{document}
Testing test test.
\end{document}
當我對此文件運行 pdfLaTeX 時,MikTeX 提示我缺少包dehypht.tex
中找到的文件dehyph
。當我拒絕安裝它時,我收到以下錯誤訊息“... pdflatex.exe 未成功。”
有趣的是,如果我使用 XeLaTeX 運行相同的文件,該文件可以正常編譯。
更新elhyphen
對於(希臘語連字符模式)、ruhyphen
(俄語連字符模式)和ukrhyph
(烏克蘭連字符模式)也是如此。
更新2我剛剛意識到幾年前我問了幾乎相同的問題:為什麼原始 LaTeX 需要德語、科普特語、希臘語、烏克蘭語和俄語的連字符模式才能處理文件?。這個問題最近得到了回答,所以我很想刪除這個問題,除非人們認為這個問題的不同措辭有價值。
答案1
我詢問了tlmgr
有關這些包的資訊(MiKTeX 沒有tlmgr
,但大小是相同的)。我省略了該longdesc
字段,這是無關緊要的,因為我們對大小感興趣。
> tlmgr info dehyph hyphen-greek ruhyphen ukrhyph
package: dehyph
category: Package
shortdesc: German hyphenation patterns for traditional orthography
longdesc: [...]
installed: Yes
revision: 48599
sizes: run: 229k
relocatable: No
cat-license: lppl1
cat-topics: german hyphenation
collection: collection-langgerman
package: hyphen-greek
category: TLCore
shortdesc: Modern Greek hyphenation patterns.
longdesc: [...]
installed: Yes
revision: 58652
sizes: doc: 1853k, run: 81k
relocatable: No
cat-version: 5
cat-license: other-free
cat-topics: greek hyphenation
collection: collection-langgreek
package: ruhyphen
category: Package
shortdesc: Russian hyphenation
longdesc: [...]
installed: Yes
revision: 21081
sizes: src: 61k, run: 249k
relocatable: No
cat-version: 1.6
cat-license: lppl
cat-topics: hyphenation russian
collection: collection-langcyrillic
package: ukrhyph
category: Package
shortdesc: Hyphenation Patterns for Ukrainian
longdesc: A range of patterns, depending on the encoding of the output font (including the standard T2A, so one can use the patterns with free fonts).
installed: Yes
revision: 21081
sizes: doc: 293k, run: 181k
relocatable: No
cat-license: lppl
cat-topics: hyphenation ukrainian
collection: collection-langcyrillic
由此可見,這四個包所佔用的磁碟空間為 2947k,少於 3 MB。
language.dat
您認為編輯文件和重新創建格式的痛苦值得嗎?如果您的文件中碰巧需要德語、俄語、烏克蘭語或希臘語,請撤銷該工作嗎?