Suvayu Ali <fatkasuvayu+li...@gmail.com> 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