xelatex
在 Ubuntu 上使用以下 tex :
\usepackage[english]{babel}
\babelprovide[import]{tamil}
我收到以下错误:
! Package babel Error: There is no ini file for the requested language
(babel) (). Perhaps you misspelled it or your installation
(babel) is not complete..
我应该如何在我的系统上正确安装/配置以允许 xelatex 使用 babel 包呈现泰米尔语文本?
编辑:
更简洁的 MWE 如下:
\usepackage[tamil]{babel}
得出以下结论:
! Package babel Error: Unknown option `tamil'. Either you misspelled it
(babel) or the language definition file tamil.ldf was not found.
编辑2:
下面显示texlive-lang-indic - TeX Live: transitional dummy package
... 看起来不太令人鼓舞。texlive 和 babel 不支持泰米尔语(和其他印度语言)吗?
$ sudo apt-cache search texlive-lang
debiandoc-sgml - DebianDoc SGML DTD and formatting tools
texlive-lang-african - TeX Live: transitional dummy package
texlive-lang-all - TeX Live: metapackage depending on all TeX Live language packages
texlive-lang-arabic - TeX Live: Arabic
texlive-lang-chinese - TeX Live: Chinese
texlive-lang-cjk - TeX Live: Chinese/Japanese/Korean (base)
texlive-lang-cyrillic - TeX Live: Cyrillic
texlive-lang-czechslovak - TeX Live: Czech/Slovak
texlive-lang-english - TeX Live: US and UK English
texlive-lang-european - TeX Live: Other European languages
texlive-lang-french - TeX Live: French
texlive-lang-german - TeX Live: German
texlive-lang-greek - TeX Live: Greek
texlive-lang-indic - TeX Live: transitional dummy package
texlive-lang-italian - TeX Live: Italian
texlive-lang-japanese - TeX Live: Japanese
texlive-lang-korean - TeX Live: Korean
texlive-lang-other - TeX Live: Other languages
texlive-lang-polish - TeX Live: Polish
texlive-lang-portuguese - TeX Live: Portuguese
texlive-lang-spanish - TeX Live: Spanish
语境:
我已经安装了泰米尔字体(Ubuntu 默认):
$ fc-list | grep tamil
/usr/share/fonts/truetype/lohit-tamil-classical/Lohit-Tamil-Classical.ttf: Lohit Tamil Classical:style=Regular
/usr/share/fonts/truetype/lohit-tamil/Lohit-Tamil.ttf: Lohit Tamil:style=Regular
另外,我已经安装了适当的 texlive 包:
sudo apt install texlive-lang-indic
我的 tex 文件也包含以下内容,请注意,删除它们似乎不会影响结果。
\defaultfontfeatures{Scale=MatchLowercase}
\babelfont{rm}[Scale=1.0]{Latin Modern Roman}
\babelfont[tamil]{rm}{Lohit Tamil}