From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: XeLaTeX and the new exporter Date: Wed, 22 May 2013 19:07:43 +0200 Message-ID: <20130522170743.GC5171@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfCif-0001nW-Cd for emacs-orgmode@gnu.org; Wed, 22 May 2013 13:20:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfCid-0007Xx-Lp for emacs-orgmode@gnu.org; Wed, 22 May 2013 13:20:57 -0400 Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:61112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfCVx-0002Nr-T1 for emacs-orgmode@gnu.org; Wed, 22 May 2013 13:07:50 -0400 Received: by mail-ea0-f171.google.com with SMTP id b15so1290900eae.2 for ; Wed, 22 May 2013 10:07:48 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3000:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id s43sm11320766eem.13.2013.05.22.10.07.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 22 May 2013 10:07:47 -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 Hi Christopher, On Tue, May 07, 2013 at 05:42:04PM +0200, Christopher Witte wrote: > > I had export working using XeLaTeX using the instructions from the > FAQ(with > some slight modifications), but after upgrading to the new export it > isn't working. It appears the hook > org-export-latex-after-initial-vars-hook isn't defined anymore. > > Any advice on what I need to change to get it to work? I have noticed discussions on this before and I fail to understand the need for all the setup mentioned in the above Worg entry. I use XeLaTeX almost exclusively, and all I have is something like this: ;;; XeLaTeX customisations ;; 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)) (add-to-list 'org-latex-packages-alist '("" "xltxtra" t)) ;; choose Linux Libertine O as serif and Linux Biolinum O as sans-serif fonts (add-to-list 'org-latex-packages-alist '("" "libertineotf" t)) ;; org to latex customisations, -shell-escape needed for minted (setq org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch org-latex-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")) For beamer export I add this line: #+LaTeX_HEADER: \setsansfont{Linux Biolinum O} So far I have not encountered any problems. Although I have to say, I do not use unicode in mathmode. I am curious to know why others need all this elaborate setup to use XeLaTeX. Cheers, -- Suvayu Open source is the future. It sets us free.