XeTeXWriting Japanese with XeTeX

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
MoonKid
Posts: 8
Joined: Sun Nov 18, 2012 4:21 pm

Writing Japanese with XeTeX

Post by MoonKid »

I want to write Japanese with XeTeX.

The tex file is UTF-8 coded of course.

1.
I want the traditional reading from top to bottom and right to left. How can I realize it?

2.
In my example I have to set explicite a font. It is because the default font doesn't support japanese characters. I tried Arial (for example) but it doesn't work. But using Arial in LibreOffice work fine with japanese characters. So why can LibreOffice display japanese characters with Arial but XeTeX can not?

That is the code

Code: Select all

\documentclass[20pt]{scrartcl}

\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{polyglossia}

\setmainfont{TakaoMincho}

\begin{document}
日本語

ドイツ語
\end{document}
btw: I read about the package xeCJK http://www.ctan.org/tex-archive/macros/ ... tex/xecjk/. But against the information on the CTAN website there is no english documentation availabe. So I am not able to use or understand it.
XeLaTeX from CTAN TeX-Live
with vim-latexsuite from an Ubuntu-based OS

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Writing Japanese with XeTeX

Post by cgnieder »

Just for information for potential answerers: this has also been asked on TeXwelt. and on golatex.

Regards
site moderator & package author
Post Reply