我知道这个线关于在 babel 中更改语言,但我没有看到任何生成的辅助文件。所以无法删除它们。
我的文件
\documentclass{letter}
\usepackage{hyperref}
\usepackage[latvian]{babel}
% \usepackage[T1]{fontenc} % not sure about this, so comment
% \usepackage[utf8]{inputenc} % not sure about this, so comment
\signature{Masi}
\address{123 ABC}
\begin{document}
\begin{letter}{Skolotājs}
\opening{Dear Ms,}
...
\closing{Ar cieņu,}
\end{letter}
\end{document}
我明白了
l.298 \ProcessOptions*
/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty:331: Package bab
el Error: You haven't specified a language option.
See the babel package documentation for explanation.
Type H <return> for immediate help.
你怎么能在 Babel 中使用拉脱维亚语?
答案1
您可以在http://home.lu.lv/~drikis/TeX。刚刚尝试了第一个例子,它有效,只是编码应该是 L7x 而不是 LV。第二个(多语言)示例不行。我可以尝试联系作者,但如果联系不上他们,我可以重新编写和扩展它,然后将其上传到 CTAN。
答案2
这是当前支持的语言列表babel
:
afrikaans.sty
albanian.sty
american.sty
austrian.sty
bahasam.sty
bahasa.sty
basque.sty
breton.sty
british.sty
bulgarian.sty
catalan.sty
croatian.sty
czech.sty
danish.sty
dutch.sty
english.sty
esperanto.sty
estonian.sty
finnish.sty
francais.sty
galician.sty
germanb.sty
greek.sty
hebrew.sty
icelandic.sty
interlingua.sty
irish.sty
italian.sty
latin.sty
lsorbian.sty
magyar.sty
naustrian.sty
ngermanb.sty
norsk.sty
polish.sty
portuges.sty
romanian.sty
russianb.sty
samin.sty
scottish.sty
serbian.sty
slovak.sty
slovene.sty
spanish.sty
swedish.sty
turkish.sty
UKenglish.sty
ukraineb.sty
USenglish.sty
usorbian.sty
welsh.sty
如您所见,拉脱维亚语未包含在内,因此目前不支持它。我不熟悉拉脱维亚语,但它可能与目前支持的语言之一相似,所以您可以使用该模块代替?
我在 中找到了一条 2008 年的旧帖子tug.org
,涉及拉脱维亚语和 babel:Adding latvian language (hyphenation and babel)
您可以联系哈维尔·贝佐斯, 的当前维护者babel
,并向他询问拉脱维亚语的状态。也许有一个正在进行的项目;如果没有,您可以随时自愿做这项工作。
有一个fixlatvian
包装方式安德烈·维赫罗夫与 xelatex 一起使用;这是 README 文件:
The FixLatvian package is an attempt to improve Latvian language support in
LaTeX, most prominently in standard document classes. It extends the
functionality of the polyglossia package and as such requires XeTeX to work.
The new features are implemented either directly or through use of other
packages. Notable improvements are listed below:
* Latvian ordinal number format in headings, contents and labels;
* Latvian word order in part, chapter, float, theorem and other headings;
* additional translations, alphabetic numbering using the Latvian alphabet;
* per-page footnote numbers;
* comma decimal separator;
* support for a few other LaTeX packages.
See the documentation (in Latvian) for detailed description and the source
code. See http://code.google.com/p/fixlatvian/ for new releases, future plans
and bug reports.
答案3
如果您可以选择使用 LuaLaTeX 或 XeLaTeX 代替 pdfLaTeX,请考虑使用包polyglossia
而不是babel
。加载包并按照序言中提供的polyglossia
说明,今天的日期(2014 年 4 月 17 日)将自动呈现为。\setmainlanguage{latvian}
2014. gada 17. aprīlī