emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Feng Shu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: why I can not output my file to PDF in Chinese?
Date: Mon, 20 May 2013 07:51:25 +0800	[thread overview]
Message-ID: <87a9nqbkaq.fsf@news.tumashu-localhost.org> (raw)
In-Reply-To: <20130520014634.8EA6.E7003441@gmail.com> (Yingjie Sun's message of "Mon, 20 May 2013 01:46:39 +0800")

Yingjie Sun <reboothit@gmail.com> writes:

> why I can not output my file to PDF in Chinese? Can you handle this?
> thanks

You need many special setting in both org and texlive
1. you should let texlive  correct resolve chinese(for example: use ctexkit)
2. you should install chinese fonts (simsun, microhei or adobe fonts)
3. you should let org export correct chinese latex file which can
   compile to pdf by latex


My configure can  export chinese correctly, may be it can help you :


https://github.com/tumashu/emacs-helper/blob/master/eh-org.el

Note:  you need config xelatex correctly

------------------------------------------------------------------------------------

#+LaTeX_CLASS: ctexart
#+LATEX_HEADER: \setCJKmainfont[ItalicFont={AR PL UKai CN}]{SimSun}% 文鼎宋体和楷书
#+LATEX_HEADER: \setCJKsansfont{WenQuanYi Micro Hei}% 文泉驿的黑体
#+LATEX_HEADER: \setCJKmonofont{WenQuanYi Micro Hei}

-----------------------------------------------------------------------------------



-- 

      reply	other threads:[~2013-05-19 23:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19 17:46 why I can not output my file to PDF in Chinese? Yingjie Sun
2013-05-19 23:51 ` Feng Shu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9nqbkaq.fsf@news.tumashu-localhost.org \
    --to=tumashu@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).