我最近开始在 Xubuntu 16.04 下工作,我在使用波兰语 Babel 包时遇到了问题,尽管它之前可以正常工作。
我准备了一个非常简单的乳胶示例来展示这个问题:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[polish]{babel}
\usepackage[T1]{fontenc}
\begin{document}
This is an example.
\end{document}
以下是系统重播:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./mintest.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
! Package babel Error: Unknown option `polish'. Either you misspelled it
(babel) or the language definition file polish.ldf was not found
.
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.310 \ProcessOptions*
?
你能帮我解决这个问题吗?
答案1
错误消息表明你的 TeX 安装不完整;请执行以下操作
apt-get install texlive-lang-polish
除了磁盘空间限制外,完整安装 TeX Live 通常更好。