如何启用包 encxvlna?

如何启用包 encxvlna?

Encxvlna 是一个在捷克语文档中插入不间断空格的软件包。但是,它似乎不适用于 texlive-2009-11(Ubuntu Natty 中的版本)。这里有一份手册描述了它的用法:http://www.bakoma-tex.com/doc/generic/encxvlna/encxvlna.pdf

我在我的文档中使用 utf8 编码(即 \usepackage[utf8]{inputenc} )。

如果我正确理解了手册,我应该修改 /etc/texmf/fmt.d 目录中的文件,如下所示:

10texlive-base.cnf 应该是

# 10texlive-base.cnf
# You can change/add entries to this file and changes will be preserved
# over upgrades, even if you have removed the main package prior
# (not if you purged it). You should leave the following pseudo comment
# present in the file!
# -_- DebPkgProvidedMaps -_-
# 
etex pdftex language.def -translate-file=cp227.tcx *etex.ini
pdfetex pdftex language.def -translate-file=cp227.tcx *pdfetex.ini
luatex luatex language.def luatex.ini
dviluatex luatex language.def dviluatex.ini
pdftex pdftex - -enc cslatex-utf8.ini
mf mf-nowin - -translate-file=cp227.tcx mf.ini
tex tex - tex.ini

10texlive-latex-base.cnf 应该是

# 10texlive-latex-base.cnf
# You can change/add entries to this file and changes will be preserved
# over upgrades, even if you have removed the main package prior
# (not if you purged it). You should leave the following pseudo comment
# present in the file!
# -_- DebPkgProvidedMaps -_-
# 
latex pdftex language.dat -enc cslatex-utf8.ini
dvilualatex luatex language.dat dvilualatex.ini
lualatex luatex language.dat lualatex.ini
pdflatex pdftex language.dat -enc  cslatex-utf8.ini

如果我使用 babel 支持捷克语,我不确定是否需要修改 10texlive-lang-czechoslovak.cnf,但它应该不会造成任何损害,但是:

# 10texlive-lang-czechslovak.cnf
# You can change/add entries to this file and changes will be preserved
# over upgrades, even if you have removed the main package prior
# (not if you purged it). You should leave the following pseudo comment
# present in the file!
# -_- DebPkgProvidedMaps -_-
# 
csplain         pdftex         -       -etex -enc csplain-utf8.ini
pdfcsplain      pdftex         -       -etex -enc csplain-utf8.ini
cslatex         pdftex         -       -etex -enc cslatex-utf8.ini
pdfcslatex      pdftex         -       -etex -enc cslatex-utf8.ini

然后我应该使用以下命令应用更改:

sudo update-fmtutil
sudo dpkg-reconfigure texlive-base

但即使是像这样的最小文档:

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc} 
\usepackage{lmodern} 
\usepackage[utf8]{inputenc}
\usepackage[czech]{babel}
\usepackage{encxvlna} 
\begin{document}
bla
\end{document}

触发以下错误信息:

! Package encxvlna Error: encTeX of Feb 2003 or later not detected,
(encxvlna) the rest of the package will be ignored.
See the encxvlna package documentation for explanation.
Type H return for immediate help.
...
l.40 }
% Package error message
This package is implemented by new primitives of encTeX of Feb 2003
but this extension was not detected in your system. You can continue
but all commands of `encxvlna' will be ignored. If your TeX distribution
contains encTeX but does not activate it, you have to create the format
using the -enc switch (e.g. in fmtutils.cnf). If you do not have encTeX
at all, you have to compile it from the source code. You can find
the source code including documentation at
http://math.feld.cvut.cz/olsak/enctex.html

但我不知道该怎么处理它。根据这个邮件列表邮政,它好像坏了,但我不知道如何修复它。

答案1

我不会更改10texlive-base.cnf和中的条目10texlive-latex-base.cnf,它们定义了标准工具 pdftex、latex 和 pdflatex 的行为。

变化10texlive-lang-czechslovak.cnf似乎不太好:我会尝试

csplain    pdftex - -output-format=dvi -enc *csplain-utf8.ini
pdfcsplain pdftex - -output-format=pdf -enc *csplain-utf8.ini
cslatex    pdftex - -output-format=dvi -enc *cslatex-utf8.ini
pdfcslatex pdftex - -output-format=pdf -enc *cslatex-utf8.ini

如果一切顺利,你可以编译pdfcslatex

相关内容