emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How can I use xelatex with the new latex exporter?
Date: Fri, 9 Nov 2012 08:22:49 +0100	[thread overview]
Message-ID: <20121109072249.GB29495@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <87k3tvlic1.fsf@gmail.com>

On Fri, Nov 09, 2012 at 01:40:14AM +0100, Nicolas Goaziou wrote:
> Hello,
> 
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> 
> > I'm playing with the new latex exporter, and I'd like to use xelated
> > with it. I used to follow the instructions from worg
> > (http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export), but
> > it seems that the hook org-export-latex-after-initial-vars-hook is not
> > used for the new exporter. Is there a similar hook I can use?
> 

I never understood that FAQ.  I have been using XeLaTeX for sometime now
with minimal configuration.

> Before using this machinery, is it enough to customize
> `org-e-latex-pdf-process'?
> 

This is pretty much what I do.


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

(add-to-list 'org-export-latex-packages-alist '("" "xltxtra" t))
;; commented for now as preferable to set per file for now
;; (add-to-list 'org-export-latex-packages-alist '("" "unicode-math" t))
;; (add-to-list 'org-export-latex-packages-alist
;; 	     "\\setmathfont{Linux Libertine O}" t) ; needed for unicode-math

;; org to latex customisations, -shell-escape needed for minted
(setq org-latex-to-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")
      org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch
      org-e-latex-pdf-process		; for experimental org-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"))


I do not use unicode-math anymore but the OP can try uncommenting some
of the lines above.

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2012-11-09  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 12:33 How can I use xelatex with the new latex exporter? Alan Schmitt
2012-11-09  0:40 ` Nicolas Goaziou
2012-11-09  7:22   ` Suvayu Ali [this message]
2012-11-09 12:42     ` Alan Schmitt
2012-11-09 11:36   ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121109072249.GB29495@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).