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--