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