From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: A book produced using Org Date: Tue, 22 Sep 2015 00:50:53 +0200 Message-ID: <20150921225053.GC6415@chitra.no-ip.org> References: <6F8ECF8A-D17C-4A27-878B-D0C98E064C77@agrarianresearch.org> <4E150C01-A716-43C9-91E7-2D18655A8E2C@agrarianresearch.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze9vH-0001Ph-HQ for emacs-orgmode@gnu.org; Mon, 21 Sep 2015 18:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze9vE-0000nL-BY for emacs-orgmode@gnu.org; Mon, 21 Sep 2015 18:50:59 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:38714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze9vE-0000ma-4V for emacs-orgmode@gnu.org; Mon, 21 Sep 2015 18:50:56 -0400 Received: by wiclk2 with SMTP id lk2so132704448wic.1 for ; Mon, 21 Sep 2015 15:50:55 -0700 (PDT) Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl. [80.114.132.14]) by smtp.gmail.com with ESMTPSA id wj4sm26316355wjb.10.2015.09.21.15.50.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 15:50:54 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 On Mon, Sep 21, 2015 at 02:51:13PM -0500, Grant Rettke wrote: > Where is your Emacs+OrgMode configuration file? > > I want to see what it takes to compile using xelatex; utf8 support > seems like a great idea. Until recently, it used be just this: ;; remove "inputenc" from default packages as it clashes with xelatex (setf org-latex-default-packages-alist (remove '("AUTO" "inputenc" t) org-latex-default-packages-alist)) ;; replace fontenc, with fontspec (let ((pos (position '("T1" "fontenc" t) ; T1 -> utf8 for pdflatex org-latex-default-packages-alist :test 'equal))) (if pos (setf (nth pos org-latex-default-packages-alist) '("" "fontspec" t)))) (setq org-latex-pdf-process ; -shell-escape needed for minted '("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f" "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f" "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f") ;; org-latex-pdf-process '("sh -v -x texi2dvi -p -b -c -V %f") ; historical ;; TODO: maybe use arara, that probably requires export changes ) After this patch from Rasmus: it's as simple as adding a #+latex_program: xelatex Hope this helps, -- Suvayu Open source is the future. It sets us free.