Haskell, Python, Vim, ...

Arch Linux でのtexlive のフォントエラー

Arch Linux でtexlive をアップグレードしたら、dvipdfmx した時にフォントエラーが出るようになったので、その対処法を。

texlive のバージョンはこちらです。

$ pacman -Qi texlive-langcjk

Name           : texlive-langcjk
Version        : 2011.24689-1
URL            :
Licenses       : GPL
Groups         : texlive-lang
Provides       : None
Depends On     : texlive-core
Optional Deps  : None
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 254099.00 KiB
Packager       : R&#233;my Oudompheng <>
Architecture   : any
Build Date     : 2011年12月04日 18時05分59秒
Install Date   : 2012年02月25日 16時24分05秒
Install Reason : Explicitly installed
Install Script : Yes
Description    : TeX Live - CJK (Chinese, Japanese, Korean) macros and fonts

texlive-langcjk インストール直後に、日本語ファイル



$ platex test.tex
This is e-pTeX, Version 3.1415926-p3.2-110825-2.3 (utf8.euc) (TeX Live 2012/dev/Arch Linux)
 restricted \write18 enabled.
entering extended mode
pLaTeX2e <2006/11/10> (based on LaTeX2e <2011/06/27> patch level 0)
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, af
rikaans, arabic, basque, bulgarian, catalan, pinyin, croatian, czech, danish, d
utch, ukenglish, usenglishmax, esperanto, estonian, farsi, finnish, french, gal
ician, german, ngerman, swissgerman, hungarian, icelandic, indonesian, interlin
gua, irish, italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolian
lmc, bokmal, nynorsk, polish, portuguese, romanian, russian, serbian, serbianc,
 slovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian
, welsh, ancientgreek, ibycus, monogreek, greek, coptic, loaded.
Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
(/usr/share/texmf-dist/tex/platex/base/jsize10.clo)) (./test.aux) [1]
(./test.aux) )
Output written on test.dvi (1 page, 272 bytes).
Transcript written on test.log.
$ dvipdfmx
test.dvi -> test.pdf
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+577/600 --dpi 577 rml
mktexpk: don't know how to create bitmap font for rml.
mktexpk: perhaps rml is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.

** WARNING ** Could not locate a virtual/physical font for TFM "rml".
** WARNING ** >> There are no valid font mapping entry for this font.
** WARNING ** >> Font file name "rml" was assumed but failed to locate that font.
** ERROR ** Cannot proceed without .vf or "physical" font for PDF output...

Output file removed.

とdvipdfmx するとエラーが出てしまいます。

対処法は、/etc/texmf/dvipdfmx/dvipdfmx.cfg の設定を以下のように変更します。

%% Put additonal fontmap files here (usually for Type0 fonts)
% 次の行のコメントアウトを外す