Fonts & Character SetsJapanese with MikTex

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
wizardluigi
Posts: 1
Joined: Sat Jan 05, 2013 10:35 pm

Japanese with MikTex

Post by wizardluigi »

I am trying to get Japanese characters output with LaTeX (unsuccessfully) with the following commands:

Code: Select all

\documentclass{article}
\usepackage[utf8]{inputenc} %I also tried with [utf8x]
\usepackage{CJK}

\begin{document}
  \begin{CJK}{UTF8}{min}%
  こんにちは%
  \end{CJK}%
\end{document}
And I obtain a list of multiple errors (I attach the .log file
prueba.log
Log File
(63.89 KiB) Downloaded 352 times
), being the firt one:

Code: Select all

! Undefined control sequence. try@size@range ...extract@rangefontinfo font@info
<-*>@nil <@nnil l.9 こんにちは
and the last but remarkable one:

Code: Select all

LaTeX Font Warning: Font shape `C70/min/m/n' undefined (Font) using `C70/song/m/n' instead on input line 9.
I compile with TexMaker. I also use MikTex and I have installed the packages "cjk" and "cjk-fonts". Actually, I additionally manually installed the fonts from wadalab (http://www.ctan.org/tex-archive/fonts/wadalab), but in fact I consider this step unnecessary.
[first time manually installing a font, so I'm not sure if it is done properly: I merged the folders "doc" and "fonts" downloaded with the ones at C:\Program Files (x86)\MikTex 2.9]

What can I do?? I don't mind which Japanese font to use (Mincho or another), just that characters printed!
Last edited by cgnieder on Sun Jan 06, 2013 12:04 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Japanese with MikTex

Post by cgnieder »

Hi wizardluigi,

Welcome to the LaTeX community!

Your example works for me so there's obviously nothing wrong with the code.

In your log before the undefined control sequence there are these lines:

Code: Select all

LaTeX Font Info:    Try loading font information for C70+min on input line 9.
LaTeX Font Info:    No file C70min.fd. on input line 9.


LaTeX Font Warning: Font shape `C70/min/m/n' undefined
(Font)              using `C70/song/m/n' instead on input line 9.
which suggest that the font definition file is not found. Are you sure you installed the fonts properly in a way LaTeX can find them?

Regards
site moderator & package author
Post Reply