From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: How can I use xelatex with the new latex exporter? Date: Fri, 09 Nov 2012 13:42:13 +0100 Message-ID: References: <87k3tvlic1.fsf@gmail.com> <20121109072249.GB29495@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWnuf-0007cr-Pv for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 07:42:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWnuZ-0004XM-5a for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 07:42:21 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:36837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWnuY-0004Wv-VX for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 07:42:15 -0500 In-Reply-To: <20121109072249.GB29495@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Fri, 9 Nov 2012 08:22:49 +0100") 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: Suvayu Ali Cc: emacs-orgmode@gnu.org Suvayu Ali writes: >> 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. Thank you, this is most helpful. Alan