From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haisheng Wu Subject: OrgMode - Export Simple Chinese text to Latex/PDF Date: Wed, 8 Feb 2012 17:07:20 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf301b685f43300e04b8703afc Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv3VB-0003TF-9H for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 04:07:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rv3V6-0002BM-RV for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 04:07:45 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:41518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv3V6-0002BI-P3 for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 04:07:40 -0500 Received: by yhoo22 with SMTP id o22so116260yho.0 for ; Wed, 08 Feb 2012 01:07:40 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: freizl@gmail.com --20cf301b685f43300e04b8703afc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi guys, What I'd like to do is exporting a Chinese file into latex then convert to a pdf file. It failed to display Chinese characters then I search google for help and finding I need CJK package according to this post. http://www.math.nus.edu.sg/aslaksen/cs/cjk.html Unfortunately it is not that simple to make a UTF8 encoding file which I have. Then I found another way is like this: \documentclass{article} \usepackage{CJK} \begin{document} \begin{CJK}{UTF8}{gbsn} =E9=9D=9E=E5=B8=B8=E6=84=9F test \end{CJK} (this is a test) \end{document} Therefore I add those two lines into the org file: #+LaTeX_HEADER: \usepackage{CJK} #+LaTeX_HEADER: \begin{CJK}{UTF8}{gbsn} it WORKS. However, you might already notice, the `\begin` command is not closed when I check with the generated tex file. Any hints / suggestions on this case? Thanks a lot. -Simon --20cf301b685f43300e04b8703afc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi guys,
=C2=A0 What I'd like to do is exporting a Chinese file into= latex then convert to a pdf file.
=C2=A0 It failed to display Chinese c= haracters then I search google for help and finding I need CJK package acco= rding to this post.
=C2=A0 http://w= ww.math.nus.edu.sg/aslaksen/cs/cjk.html

=C2=A0 Unfortunately it = is not that simple to make a UTF8 encoding file which I have.
=C2=A0 The= n I found another way is like this:
\documentclass{article}
\usepackage{CJK}
\begin{document}\begin{CJK}{UTF8}{gbsn}
=E9=9D=9E=E5=B8=B8=E6=84= =9F test
\end{CJK} (this is a test) \end{document}
=
=C2=A0 Therefore I add those two lines into the org file:
#+LaTeX_HEADER: \usepackage{CJK}
#+LaTeX_HEADER: \begin{CJ= K}{UTF8}{gbsn}

=C2=A0 it WORKS.
=C2=A0 However, you might= already notice, the `\begin` command is not closed when I check with the g= enerated tex file.
=C2=A0 Any hints / suggestions on this case?

Thanks a lot.
-Simon=
--20cf301b685f43300e04b8703afc--