You are not logged in.
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
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
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
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
what about texlive-langcjk - TeX Live - CJK (Chinese, Japanese, Korean) macros and fonts
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
what about texlive-langcjk - TeX Live - CJK (Chinese, Japanese, Korean) macros and fonts
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
oops, kinda missed that
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
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
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
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-scienceTry 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
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
The error I had only appears when using pdflatex, not latex.
Offline
Yeah works with latex <file>.tex. so it's pdflatex's fault...thanks guys
MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Offline
So, really try to delete /opt/texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map.
Offline
I just noticed, dvipdf doesn't work. dvipdfm, dvipdfmx and dvipdft work fine.
Offline
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
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
\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...
ArchLinux ASUS N10J-HV020CS (9300M GS 256, atom N270, 2 Go)
ArchLinux ASUS N10JB-HV001U (G105M 512, atom N280, 2 Go)
佳名子 愛してる♪♪♪♪ \\(^3^)//
Offline
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