LaTeX forum ⇒ XeTeXWriting Japanese with XeTeX

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

Writing Japanese with XeTeX

Postby MoonKid » Wed Jan 22, 2014 1:00 am

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
  1. \documentclass[20pt]{scrartcl}
  2.  
  3. \usepackage{xltxtra}
  4. \defaultfontfeatures{Mapping=tex-text}
  5. \usepackage{polyglossia}
  6.  
  7. \setmainfont{TakaoMincho}
  8.  
  9. \begin{document}
  10. 日本語
  11.  
  12. ドイツ語
  13. \end{document}


btw: I read about the package xeCJK http://www.ctan.org/tex-archive/macros/xetex/latex/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

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Wed Jan 22, 2014 9:36 am

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

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 2 guests