This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Robert Marcano's blog
Get Firefox Use OpenOffice.org hacker emblem

Japanese and LaTeX

robert | 28 June, 2006 13:15

I learned how to install support for Asian languages to LaTeX using the CJK Extensions and adding the required fonts. Something like this:

\documentclass{article}
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}
\usepackage{CJK}
\usepackage{ruby}
\renewcommand{\rubysep}{-0.1ex}
\usepackage[spanish,english]{babel}
\usepackage[utf8]{inputenc}
\newcommand{\jap}[1]{\begin{CJK}{UTF8}{sazanami-mincho}#1\end{CJK}}

\begin{document}
A very simple document made with \LaTeX\ including Japanese text with \emph{furigana}:
\jap{\ruby{日本語}{にほんご}の\ruby{学生}{がくせい}}

\end{document}

is converted to a nice PDF.

Comments

Nice.

Victor. | 28/06/2006, 15:44

Nice to see some good Initial Latex Script
Just for me (Can you do something more complex using pictures and Diagrams)
Thanks
Victor.

Add comment
 authimage
 
Valid XHTML 1.0 Strict and CSS.
Copyright 2003-2009 Robert Marcano. All Rights Reserved
Powered by LifeType