December 16, 2007

Using Platex For Writing Japanese In Ubuntu

The task was to make it possible to write a document in Japanese Language and compile it with platex.

First there are some packages you need to install. I don’t really know if you need anthy to be setup at this point, but it was already setup on my machine.

Get:

% sudo apt-get install ptex-bin ptex-base okumura-clsfiles
% sudo apt-get install ptex-base ptex-bin ptex-jisfonts
% sudo apt-get install xdvik-ja dvipsk-ja dvi2ps gv gnome-gv
% sudo apt-get install jbibtex-bin jmpost mendexk
% sudo apt-get install okumura-clsfiles vfdata-morisawa5 dvi2ps-fontdesc-morisawa5
% sudo jisftconfig add

After that you can fire up emacs. Go to Options->MULE and set Language Environment to Japanese.
Now you can just start writing the document. To start withI suggest using jarticle as the documentclass.

When you are done with it run platex yourfile.tex and if you are not getting any missing font errors your are nearly done with everything. The next step is to view the *.dvi file. For that use xdvi-ja yourfile.dvi and everything should show up correctly.

Leave me a comment if problems occur.