You are not logged in.

#1 2009-05-17 14:37:52

Wra!th
Member
Registered: 2009-03-31
Posts: 342

[SOLVED] LaTeX and Japanese hiragana

Ok I started learning Japanese again.
I'd like to keep a few cheatsheets of the stuff I learn so I can go back over them, and since I also learn LaTeX lately, I though I'd mix the two up.
I have working Japanese input using SCIM-anathy, works great everywhere (terminals/gtk).
I can also write the TeX files needed for compilation, but of course compilation fails(I'm just lucky that way)
extra/texlive-langcjk is installed, and I use pdflatex to compile my TeX to pdf
This is the "basic" TeX I am trying to compile (found it somwehere on the net and apparently for that dude it's working...)

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[romanian]{babel}
\usepackage[overlap, CJK]{ruby}
\usepackage{CJKulem}
\renewcommand{\rubysep}{-0.2ex}
\newenvironment{Japanese}{%
\CJKfamily{min}%
\CJKtilde
\CJKnospace}{}

\begin{document}
\parskip 3ex
\parindent 0pt
\begin{CJK}{UTF8}{}
\begin{Japanese}
ねこ
\end{Japanese}
\end{CJK}
\end{document}

The error I get is something like

texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./lessons.aux) ){/usr/share/tex
mf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+120/600 --dpi 720 dmjhira
mktexpk: don't know how to create bitmap font for dmjhira.
kpathsea: Appending font creation commands to missfont.log.

!pdfTeX error: pdflatex (file dmjhira): Font dmjhira at 720 not found
 ==> Fatal error occurred, no output PDF file produced!

Now I can see that in some way pdflatex tries to use some font that's not there...but it's not in the repos either...
So...any of you using Japanese with LaTeX documents please guide me through this

どうも in advance smile

Last edited by Wra!th (2009-05-19 18:50:44)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#2 2009-05-17 14:51:39

dodobas
Member
From: Croatia
Registered: 2009-04-21
Posts: 12

Re: [SOLVED] LaTeX and Japanese hiragana

im no expert, but did you install texlive-fontsextra package?


It would also be great to have my computer built into my skull. That way I could surf the Net during useless periods of life, such as when people talk to me.

Offline

#3 2009-05-17 15:00:25

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: [SOLVED] LaTeX and Japanese hiragana

dodobas wrote:

im no expert, but did you install texlive-fontsextra package?

Nope..installed..same thing


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#4 2009-05-17 15:08:52

dodobas
Member
From: Croatia
Registered: 2009-04-21
Posts: 12

Re: [SOLVED] LaTeX and Japanese hiragana

what about texlive-langcjk -  TeX Live - CJK (Chinese, Japanese, Korean) macros and fonts

smile


It would also be great to have my computer built into my skull. That way I could surf the Net during useless periods of life, such as when people talk to me.

Offline

#5 2009-05-17 15:15:05

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: [SOLVED] LaTeX and Japanese hiragana

dodobas wrote:

what about texlive-langcjk -  TeX Live - CJK (Chinese, Japanese, Korean) macros and fonts

smile

I did say I have "extra/texlive-langcjk" installed in my initial post


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#6 2009-05-17 15:29:07

dodobas
Member
From: Croatia
Registered: 2009-04-21
Posts: 12

Re: [SOLVED] LaTeX and Japanese hiragana

oops, kinda missed that hmm


It would also be great to have my computer built into my skull. That way I could surf the Net during useless periods of life, such as when people talk to me.

Offline

#7 2009-05-18 16:44:24

CuleX
Member
Registered: 2007-09-15
Posts: 107

Re: [SOLVED] LaTeX and Japanese hiragana

I installed texlive-langcjk to play around with your problem. Unfortunately, it works for me and I have the following TeXlive packages installed:
texlive-bibtexextra texlive-bin texlive-core texlive-fontsextra texlive-formatsextra texlive-games texlive-genericextra texlive-htmlxml texlive-humanities texlive-langcjk texlive-latex3 texlive-latexextra texlive-music texlive-pictures texlive-plainextra texlive-pstricks texlive-publishers texlive-science

Try issuing "updmap --syncwithtrees" as root.

Offline

#8 2009-05-19 09:44:00

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] LaTeX and Japanese hiragana

I guess I had a similar problem when I used unusual fractured fonts. Try to delete or rename the file pdftex.map under

/opt/texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map

(not the ones und other paths!!!).

Last edited by Stefan Husmann (2009-05-19 09:51:52)

Offline

#9 2009-05-19 10:44:29

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: [SOLVED] LaTeX and Japanese hiragana

CuleX wrote:

I installed texlive-langcjk to play around with your problem. Unfortunately, it works for me and I have the following TeXlive packages installed:
texlive-bibtexextra texlive-bin texlive-core texlive-fontsextra texlive-formatsextra texlive-games texlive-genericextra texlive-htmlxml texlive-humanities texlive-langcjk texlive-latex3 texlive-latexextra texlive-music texlive-pictures texlive-plainextra texlive-pstricks texlive-publishers texlive-science

Try issuing "updmap --syncwithtrees" as root.

Did everything and installed all those packages and nothing. Did you by any chance modify anything in the file, and also how are you compiling?


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#10 2009-05-19 17:40:13

CuleX
Member
Registered: 2007-09-15
Posts: 107

Re: [SOLVED] LaTeX and Japanese hiragana

I never touched any files belonging to LaTeX or the file to compile itself. It was copy and paste.

Compiling issued with "latex hiragana.tex", edited in VIM in UTF-8 mode.

Last edited by CuleX (2009-05-19 17:40:35)

Offline

#11 2009-05-19 18:01:31

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] LaTeX and Japanese hiragana

The error I had only appears when using pdflatex, not latex.

Offline

#12 2009-05-19 18:49:45

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: [SOLVED] LaTeX and Japanese hiragana

Yeah works with latex <file>.tex. so it's pdflatex's fault...thanks guys smile


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#13 2009-05-19 22:24:58

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] LaTeX and Japanese hiragana

So, really try to delete /opt/texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map.

Offline

#14 2009-05-20 07:37:00

CuleX
Member
Registered: 2007-09-15
Posts: 107

Re: [SOLVED] LaTeX and Japanese hiragana

I just noticed, dvipdf doesn't work. dvipdfm, dvipdfmx and dvipdft work fine.

Offline

#15 2009-05-20 08:05:59

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: [SOLVED] LaTeX and Japanese hiragana

Stefan Husmann wrote:

So, really try to delete /opt/texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map.

I have, and no dice (was found in /usr/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map though)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#16 2009-09-20 20:29:04

M1zut4m4
Member
From: Fukuoka, Kyushu, Japan, Earth
Registered: 2009-06-23
Posts: 5
Website

Re: [SOLVED] LaTeX and Japanese hiragana

Just to notice that it's work also under pdflatex
I just modify a little bit the code to get a unicode utf8 encoding file format using the package ucs
http://en.wikibooks.org/wiki/LaTeX/Internationalization cool

\documentclass[12pt]{article}
%-------
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
%-------
\usepackage[overlap, CJK]{ruby}
\usepackage{CJKulem}
\renewcommand{\rubysep}{-0.2ex}
\newenvironment{Japanese}{%
\CJKfamily{min}%
\CJKtilde
\CJKnospace}{}

\begin{document}
\parskip 3ex
\parindent 0pt
\begin{CJK}{UTF8}{}
\begin{Japanese}
日本Linux : 愛してる。
Note : English works too
\end{Japanese}
\end{CJK}
writting english here is also possible but not kanji and furigana...
\end{document}

So maybe your problem come with the file encoding/decoding... big_smile


ArchLinux ASUS N10J-HV020CS (9300M GS 256, atom N270, 2 Go)
ArchLinux ASUS N10JB-HV001U (G105M 512, atom N280, 2 Go)
佳名子 愛してる♪♪♪♪ \\(^3^)//

Offline

#17 2009-10-13 03:06:35

Gnurou
Member
From: Tokyo
Registered: 2009-07-20
Posts: 25
Website

Re: [SOLVED] LaTeX and Japanese hiragana

Got the same problem - solved it with the following command:

sudo updmap-sys --syncwithtrees

Afterwards, both latex and pdflatex works.

Last edited by Gnurou (2009-10-13 03:06:53)

Offline

Board footer

Powered by FluxBB