From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: How can I use xelatex with the new latex exporter? Date: Fri, 9 Nov 2012 08:22:49 +0100 Message-ID: <20121109072249.GB29495@kuru.dyndns-at-home.com> References: <87k3tvlic1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWivY-0007I8-G7 for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 02:22:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWivX-0004j0-1m for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 02:22:56 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:60879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWivW-0004ib-QW for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 02:22:54 -0500 Received: by mail-we0-f169.google.com with SMTP id u3so1929871wey.0 for ; Thu, 08 Nov 2012 23:22:53 -0800 (PST) Content-Disposition: inline In-Reply-To: <87k3tvlic1.fsf@gmail.com> 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 Fri, Nov 09, 2012 at 01:40:14AM +0100, Nicolas Goaziou wrote: > Hello, > > Alan Schmitt writes: > > > I'm playing with the new latex exporter, and I'd like to use xelated > > with it. I used to follow the instructions from worg > > (http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export), but > > it seems that the hook org-export-latex-after-initial-vars-hook is not > > used for the new exporter. Is there a similar hook I can use? > I never understood that FAQ. I have been using XeLaTeX for sometime now with minimal configuration. > Before using this machinery, is it enough to customize > `org-e-latex-pdf-process'? > This is pretty much what I do. ;;; XeLaTeX customisations ;; remove "inputenc" from default packages as it clashes with xelatex (setf org-export-latex-default-packages-alist (remove '("AUTO" "inputenc" t) org-export-latex-default-packages-alist)) (add-to-list 'org-export-latex-packages-alist '("" "xltxtra" t)) ;; commented for now as preferable to set per file for now ;; (add-to-list 'org-export-latex-packages-alist '("" "unicode-math" t)) ;; (add-to-list 'org-export-latex-packages-alist ;; "\\setmathfont{Linux Libertine O}" t) ; needed for unicode-math ;; org to latex customisations, -shell-escape needed for minted (setq org-latex-to-pdf-process ; for regular export '("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-export-dispatch-use-expert-ui t ; non-intrusive export dispatch org-e-latex-pdf-process ; for experimental org-export '("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")) I do not use unicode-math anymore but the OP can try uncommenting some of the lines above. Hope this helps. -- Suvayu Open source is the future. It sets us free.