我正在运行 Arch Linux 并通过 安装了 texlive 2013 tlmgr
。
我的文件是这样的:
\documentclass{paper}
\usepackage{lipsum}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setmainlanguage{english}
\begin{document}
\lipsum[1]
\end{document}
运行xelatex
我的文件得到以下结果:
Package polyglossia Warning: No hyphenation patterns were loaded for `English'
(polyglossia) I will use \language=\l@nohyphenation instead on i
nput line 6.
! Undefined control sequence.
<recently read> \adddialect
我查阅了其他处理类似问题的答案。大多数与 babel 有关,但我没有使用它。有些人建议安装一种语言,但这个错误只与英语有关(而且我无论如何都安装了 collection-langenglish)。我尝试运行tlmgr fmtutil --all
,但这没有任何变化。我该如何解决这个问题?
答案1
您需要安装这些texlive-hyphen-*
软件包。
在 Fedora 上可以通过以下方式实现:
sudo dnf install texlive-hyphen-*
答案2
我在尝试修复texlive-polyglossia
GNU Guix 软件包时偶然发现了这样的错误。那里的基本 texlive 包非常小,不包含所有支持连字的格式,所以我不得不将所有连字包和 babel 添加到环境中并重建我感兴趣的格式:
fmtutil-sys --byfmt xelatex
我遇到的主要问题是构建环境中缺少 babel 包。我终于成功构建了它,以下是所需的各种 Guix TexLive 包和字体:
(native-inputs (list fontconfig ;for XDG_DATA_DIRS (to locate fonts)
font-amiri
font-dejavu
font-gfs-ambrosia
font-gnu-freefont
font-linuxlibertine
font-sil-ezra
texlive-latex-base
texlive-babel
texlive-bin ;for fmtutil.cnf
texlive-bidi
texlive-booktabs
texlive-caption
texlive-context
texlive-cm
texlive-latex-fancyvrb
texlive-etoolbox
texlive-fonts-latex
texlive-fontspec
texlive-hyphen-base
texlive-hyphen-afrikaans
texlive-hyphen-ancientgreek
texlive-hyphen-armenian
texlive-hyphen-basque
texlive-hyphen-belarusian
texlive-hyphen-bulgarian
texlive-hyphen-catalan
texlive-hyphen-chinese
texlive-hyphen-churchslavonic
texlive-hyphen-coptic
texlive-hyphen-croatian
texlive-hyphen-czech
texlive-hyphen-danish
texlive-hyphen-dutch
texlive-hyphen-english
texlive-hyphen-esperanto
texlive-hyphen-estonian
texlive-hyphen-ethiopic
texlive-hyphen-finnish
texlive-hyphen-schoolfinnish
texlive-hyphen-french
texlive-hyphen-friulan
texlive-hyphen-galician
texlive-hyphen-georgian
texlive-hyphen-german
texlive-hyphen-greek
texlive-hyphen-hungarian
texlive-hyphen-icelandic
texlive-hyphen-indic
texlive-hyphen-indonesian
texlive-hyphen-interlingua
texlive-hyphen-irish
texlive-hyphen-italian
texlive-hyphen-kurmanji
texlive-hyphen-latin
texlive-hyphen-latvian
texlive-hyphen-lithuanian
texlive-hyphen-macedonian
texlive-hyphen-mongolian
texlive-hyphen-norwegian
texlive-hyphen-occitan
texlive-hyphen-pali
texlive-hyphen-piedmontese
texlive-hyphen-polish
texlive-hyphen-portuguese
texlive-hyphen-romanian
texlive-hyphen-romansh
texlive-hyphen-russian
texlive-hyphen-sanskrit
texlive-hyphen-serbian
texlive-hyphen-slovak
texlive-hyphen-slovenian
texlive-hyphen-spanish
texlive-hyphen-swedish
texlive-hyphen-thai
texlive-hyphen-turkish
texlive-hyphen-turkmen
texlive-hyphen-ukrainian
texlive-hyphen-uppersorbian
texlive-hyphen-welsh
texlive-latex-graphics
texlive-hyperref
texlive-kpathsea ;for cp227.tcx & friends
texlive-lm
texlive-makecmds
texlive-metalogo
texlive-microtype
texlive-paralist
texlive-latex-tools
texlive-latex-xkeyval
texlive-stringenc
texlive-tex-ini-files ;for pdftexconfig
texlive-zapfding
texlive-zref))
我希望这能有所帮助。