From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: XeLaTeX and the new exporter Date: Fri, 31 May 2013 09:58:57 +0200 Message-ID: References: <20130522170743.GC5171@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15fffdb4c88904ddfefcf8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiKEn-0003TY-NU for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiKEm-0006Kp-2F for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:59:01 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:53304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiKEl-0006Ka-No for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:58:59 -0400 Received: by mail-pd0-f170.google.com with SMTP id x10so1790176pdj.15 for ; Fri, 31 May 2013 00:58:58 -0700 (PDT) In-Reply-To: <20130522170743.GC5171@kuru.dyndns-at-home.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: Suvayu Ali Cc: Org Mode --047d7b15fffdb4c88904ddfefcf8 Content-Type: text/plain; charset=ISO-8859-1 Sorry for the late reply. I'm not entirely sure either, I pretty much just blindly followed the instructions on the FAQ. I don't think this is at all the minimum you need to get xelatex working, it also sets up a few other things. For instance it used latexmk instead of just recompiling a few times. Perhaps the FAQ should be split up into a few different questions: 1. minimum setup for XeLaTeX, something similar to your setup 2. how to use latexmk Cheers, Chris On 22 May 2013 19:07, Suvayu Ali wrote: > 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. > > --047d7b15fffdb4c88904ddfefcf8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sorry for the late reply.

I'= ;m not entirely sure either, I pretty much just blindly followed the instru= ctions on the FAQ.=A0 I don't think this is at all the minimum you need= to get xelatex working, it also sets up a few other things.=A0 For instanc= e it used latexmk instead of just recompiling a few times.=A0 Perhaps the F= AQ should be split up into a few different questions:
1. minimum setup for XeLaTeX, something similar to your setup
2. how to use latexmk

Cheers,
Chris



On 22 May 2013 19:07, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
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<http://orgmode.org/worg/org-faq.html= #using-xelatex-for-pdf-export>(with
> some slight modifications), but after upgrading to t= he new export it
> isn't working. =A0It 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 th= e
need for all the setup mentioned in the above Worg entry. =A0I use XeLaTeX<= br> almost exclusively, and all I have is something like this:

=A0 ;;; XeLaTeX customisations
=A0 ;; remove "inputenc" from default packages as it clashes with= xelatex
=A0 (setf org-latex-default-packages-alist
=A0 =A0 =A0 =A0 (remove '("AUTO" "inputenc" t) org-= latex-default-packages-alist))

=A0 (add-to-list 'org-latex-packages-alist '("" "xlt= xtra" t))
=A0 ;; choose Linux Libertine O as serif and Linux Biolinum O as sans-serif= fonts
=A0 (add-to-list 'org-latex-packages-alist '("" "lib= ertineotf" t))

=A0 ;; org to latex customisations, -shell-escape needed for minted
=A0 (setq org-export-dispatch-use-expert-ui t ; non-intrusive export dispat= ch
=A0 =A0 =A0 =A0 org-latex-pdf-process =A0 =A0 =A0 =A0 =A0 =A0 =A0 ; for reg= ular export
=A0 =A0 =A0 =A0 '("xelatex -shell-escape -interaction nonstopmode = -output-directory %o %f"
=A0 =A0 =A0 =A0 =A0 "xelatex -shell-escape -interaction nonstopmode -o= utput-directory %o %f"
=A0 =A0 =A0 =A0 =A0 "xelatex -shell-escape -interaction nonstopmode -o= utput-directory %o %f"))

For beamer export I add this line:

=A0 #+LaTeX_HEADER: \setsansfont{Linux Biolinum O}

So far I have not encountered any problems. =A0Although 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.


--047d7b15fffdb4c88904ddfefcf8--