emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How can I use xelatex with the new latex exporter?


From: Alan Schmitt
Subject: Re: [O] How can I use xelatex with the new latex exporter?
Date: Fri, 09 Nov 2012 13:42:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin)

Suvayu Ali <address@hidden> writes:

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

Thank you, this is most helpful.

Alan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]