[Tex/LaTex] miktex can’t find udmj.cfg

cjkmiktex

I'm trying very hard to compile the minimal document in this example. I just want to use CJK on my Windows install of Miktex and it always fails with this message:

miktex-makemf: The udmj source file could not be found.
Running hbf2gf.exe...

hbf2gf (CJK ver. 4.8.0)

Couldn't find `udmj.cfg'
miktex-maketfm: No creation rule for font udmj67.

! Font C70/min/m/n/10/67=udmj67 at 10.0pt not loadable: Metric (TFM) file not f
ound.
<to be read again>
                   relax
l.7 \begin{CJK}{UTF8}{min}未
                             t+¦pü¬püŵòúpééµí£pü»püòpüÅpéësôë\end{CJK} \\
?

Any ideas on how to fix this?

Best Answer

There are some problem with MiKTeX's cjk-fonts package. Unicode Japanese fonts for wadalab are missing.

In MiKTeX now, you can only use C42 and C52 font encoding for wadalab fonts, say, use

\begin{CJK}{JISdnp}{min}

or

\begin{CJK}{JIS2dnp}{min}

with proper input encoding will work. It is really not enough, I think.


An alternative is to use xeCJK with XeLaTeX. For example,

% UTF-8 Encoding, compile with XeLaTeX
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{MS Mincho} % for \rmfamily
\begin{document}
おはよう
\end{document}