From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: XeLaTeX and the new exporter Date: Tue, 7 May 2013 17:42:04 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b86e598b51f6e04dc22a81e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZk1n-0001V7-PO for emacs-orgmode@gnu.org; Tue, 07 May 2013 11:42:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZk1m-0005V2-5k for emacs-orgmode@gnu.org; Tue, 07 May 2013 11:42:07 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:43284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZk1l-0005UZ-Vg for emacs-orgmode@gnu.org; Tue, 07 May 2013 11:42:06 -0400 Received: by mail-pa0-f52.google.com with SMTP id bg2so585007pad.25 for ; Tue, 07 May 2013 08:42:04 -0700 (PDT) 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: Org Mode --047d7b86e598b51f6e04dc22a81e Content-Type: text/plain; charset=ISO-8859-1 Hi all, 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? Thanks Chris. --047d7b86e598b51f6e04dc22a81e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

I had export working u= sing XeLaTeX using the instructions from the FAQ (with some slight m= odifications), but after upgrading to the new export it isn't working.= =A0 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?

Thanks<= br>
Chris.
--047d7b86e598b51f6e04dc22a81e-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?S=F8ren_Mikkelsen?= Subject: Re: XeLaTeX and the new exporter Date: Tue, 14 May 2013 12:04:06 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcC5m-0005r3-Un for emacs-orgmode@gnu.org; Tue, 14 May 2013 06:04:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcC5l-0001NE-KN for emacs-orgmode@gnu.org; Tue, 14 May 2013 06:04:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:41708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcC5l-0001N7-De for emacs-orgmode@gnu.org; Tue, 14 May 2013 06:04:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UcC5g-0006xe-Il for emacs-orgmode@gnu.org; Tue, 14 May 2013 12:04:16 +0200 Received: from iha-nat.iha.dk ([130.225.184.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 May 2013 12:04:16 +0200 Received: from soren by iha-nat.iha.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 May 2013 12:04:16 +0200 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 Chris I asked the question a couple of weeks ago. Take a look at the hook: org-export-before-parsing-hook It worked for me. Best regards Søren On 2013-05-07 17:42, Christopher Witte wrote: > Hi all, > > 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? > > Thanks > Chris. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: XeLaTeX and the new exporter Date: Wed, 22 May 2013 18:35:24 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d66641745a204dd512701 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfC0h-00078I-JJ for emacs-orgmode@gnu.org; Wed, 22 May 2013 12:35:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfC0c-0006yq-RI for emacs-orgmode@gnu.org; Wed, 22 May 2013 12:35:31 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:56653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfC0c-0006yX-Kx for emacs-orgmode@gnu.org; Wed, 22 May 2013 12:35:26 -0400 Received: by mail-pa0-f46.google.com with SMTP id fa10so1968352pad.5 for ; Wed, 22 May 2013 09:35:24 -0700 (PDT) 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: =?ISO-8859-1?Q?S=F8ren_Mikkelsen?= Cc: Org Mode --047d7b5d66641745a204dd512701 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, that fixed it. On 14 May 2013 12:04, S=F8ren Mikkelsen wrote: > Hi Chris > > I asked the question a couple of weeks ago. Take a look at the hook: > > org-export-before-parsing-hook > > It worked for me. > > Best regards > S=F8ren > > > On 2013-05-07 17:42, Christopher Witte wrote: > >> Hi all, >> >> 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? >> >> Thanks >> Chris. >> > > > --047d7b5d66641745a204dd512701 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks, that fixed it.


On 14 May 2013 12:04, S=F8ren Mikkelsen= <soren@aamikkelsen.dk> wrote:
Hi Chris

I asked the question a couple of weeks ago. Take a look at the hook:

org-export-before-parsing-hook

It worked for me.

Best regards
S=F8ren


On 2013-05-07 17:42, Christopher Witte wrote:
Hi all,

I had export working using XeLaTeX using the instructions from the FAQ
<= /div> <http://orgmode.org/worg/org-faq.html#using-= xelatex-for-pdf-export>

(with some slight modifications), but after upgrading to the new export
it isn't working. =A0It appears the hook
org-export-latex-after-initial-vars-hook isn't defined anymore.<= br>
Any advice on what I need to change to get it to work?

Thanks
Chris.



--047d7b5d66641745a204dd512701-- 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. 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: XeLaTeX and the new exporter Date: Sat, 1 Jun 2013 08:43:52 +0200 Message-ID: <67D9EAE4-448F-4A6B-9319-42D357AEEBA0@gmail.com> References: <20130522170743.GC5171@kuru.dyndns-at-home.com> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_88F0F87E-DBB8-4C2F-84DC-2CC44E282DEC" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UifXi-0004Wr-HA for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 02:43:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UifXh-0002fD-58 for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 02:43:58 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:38316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UifXg-0002eq-SF for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 02:43:57 -0400 Received: by mail-wg0-f52.google.com with SMTP id z11so1790067wgg.31 for ; Fri, 31 May 2013 23:43:56 -0700 (PDT) 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: Christopher Witte Cc: Org Mode --Apple-Mail=_88F0F87E-DBB8-4C2F-84DC-2CC44E282DEC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi Christopher, Would you like to provide a patch? - Carsten On 31.5.2013, at 09:58, Christopher Witte wrote: > Sorry for the late reply. >=20 > 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 >=20 > Cheers, > Chris >=20 >=20 >=20 > On 22 May 2013 19:07, Suvayu Ali wrote: > Hi Christopher, >=20 > 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(wit= h > > 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? >=20 > 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: >=20 > ;;; 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)) >=20 > (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)) >=20 > ;; 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")) >=20 > For beamer export I add this line: >=20 > #+LaTeX_HEADER: \setsansfont{Linux Biolinum O} >=20 > So far I have not encountered any problems. Although I have to say, I > do not use unicode in mathmode. >=20 > I am curious to know why others need all this elaborate setup to use > XeLaTeX. >=20 > Cheers, >=20 > -- > Suvayu >=20 > Open source is the future. It sets us free. >=20 >=20 --Apple-Mail=_88F0F87E-DBB8-4C2F-84DC-2CC44E282DEC Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
Hi Christopher,

Would you like to provide a patch?

- Carsten

On 31.5.2013, at 09:58, Christopher Witte <chris@witte.net.au> wrote:

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 instan ce 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 <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 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.



--Apple-Mail=_88F0F87E-DBB8-4C2F-84DC-2CC44E282DEC-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: XeLaTeX and the new exporter Date: Mon, 3 Jun 2013 12:47:32 +0200 Message-ID: References: <20130522170743.GC5171@kuru.dyndns-at-home.com> <67D9EAE4-448F-4A6B-9319-42D357AEEBA0@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d7c5a1dc5bd04de3db1a1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjSIf-0007VR-36 for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 06:47:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjSIZ-0003ka-6J for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 06:47:41 -0400 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:39330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjSIY-0003kF-TP for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 06:47:35 -0400 Received: by mail-pb0-f42.google.com with SMTP id uo1so5533628pbc.15 for ; Mon, 03 Jun 2013 03:47:32 -0700 (PDT) In-Reply-To: <67D9EAE4-448F-4A6B-9319-42D357AEEBA0@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: Carsten Dominik Cc: Org Mode --047d7b6d7c5a1dc5bd04de3db1a1 Content-Type: text/plain; charset=ISO-8859-1 Sure, I'll give it a try, but I might not get around to it for a few days. Cheers, Chris. On 1 June 2013 08:43, Carsten Dominik wrote: > Hi Christopher, > > Would you like to provide a patch? > > - Carsten > > On 31.5.2013, at 09:58, Christopher Witte wrote: > > 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. >> >> > > --047d7b6d7c5a1dc5bd04de3db1a1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sure, I'll give it a try, but I might not get around t= o it for a few days.

Cheers,
Chris.


On 1 June 2013 08:43, Carsten Dom= inik <carsten.dominik@gmail.com> wrote:
Hi = Christopher,

Would you like to provide a patch?

- Carsten
On 31.5.2013, at 09:58, Christopher Witte <chris@witte.net.au> wrote:
Sorry fo= r the late reply.

I'm not entirely sure either, I pretty much ju= st blindly followed the instructions 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 fe= w other things.=A0 For instance it used latexmk instead of just recompiling= a few times.=A0 Perhaps the FAQ should be split up into a few different qu= estions:
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 the 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.




--047d7b6d7c5a1dc5bd04de3db1a1--