From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: [solution] Chinese characters in Beamer export Date: Sun, 21 Apr 2013 20:55:54 +0800 Message-ID: <874nf082lh.fsf@news.tumashu-localhost.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTtoa-0000dI-OE for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 08:56:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTtoZ-0007cu-Mo for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 08:56:20 -0400 Received: from mail-da0-x22b.google.com ([2607:f8b0:400e:c00::22b]:44736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTtoZ-0007ci-GL for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 08:56:19 -0400 Received: by mail-da0-f43.google.com with SMTP id u36so2666975dak.16 for ; Sun, 21 Apr 2013 05:56:18 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1UTtoA-0001j8-To for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 20:55:54 +0800 In-Reply-To: (James Harkins's message of "Sun, 21 Apr 2013 09:33:07 +0800") 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 James Harkins writes: Maybe my org config can give you some informations: https://github.com/tumashu/emacs-helper/blob/master/eh-org.el > FWIW, this is what it took for me to get Chinese characters to export > in beamer. (Adding a TODO to write this up for worg.) > > 1. Use texlive 2012. (The Ubuntu packages for 12.04 date back to 2009. > I couldn't get them to work for this.) > > 2. In the preamble of your org document: > > #+LaTeX_HEADER: \usepackage{CJKutf8} > #+BEGIN_LaTeX > \AtBeginDocument{% > \begin{CJK}{UTF8}{gbsn}} > \AtEndDocument{% > \end{CJK}} > #+END_LaTeX > > These LaTeX snippets come from the documentation of the CJK package. > "gbsn" is for simplified Chinese characters (used on the mainland). > Other options for Chinese may be found at: > > http://en.wikibooks.org/wiki/LaTeX/Internationalization#Chinese > > That pretty much did it (although it took quite a bit of sleuthing to > find this, thanks to a fair amount of out of date information that > will never, ever die in the big search engines). > > Except for one problem. LaTeX inputenc will complain about the Chinese > characters being "not set up for use with LaTeX," but the document > does render. I'll have to leave that question aside for the moment, > but this isn't the last time I'll need Chinese characters in a > presentation so I'll come back to that before posting anything on > worg. (Or, maybe a sophisticated LaTeX user knows what is wrong?) > > hjh --