ox-latex: Support changable TeX compilers
commit1e4b7e4bec6b6d4351b1e23872b66b0fea4e182c
authorRasmus <rasmus@gmx.us>
Sun, 13 Sep 2015 16:09:03 +0000 (13 18:09 +0200)
committerRasmus <rasmus@gmx.us>
Sun, 27 Sep 2015 21:49:32 +0000 (27 23:49 +0200)
treeb907a9ef5d3124c1e76d94f26eb778521e45caee
parent6f2579b4fca54f0225edc9a5c4a7282d25bf1bb4
ox-latex: Support changable TeX compilers

* org.el (org-latex-default-packages-alist): Only use inputenc
and fontenc in pdftex.
* ox-latex.el (latex): Add :latex-compiler.
(org-latex-compiler): New defcustom.
(org-latex-compilers): New defconst.
(org-latex--remove-packages): New function.
(org-latex-template): Use new function and variables.
(org-latex-pdf-process): Update to use %latex shorthand.
(org-latex-compile): Check and use intended compiler.
* org.texi (@LaTeX{} and PDF export): Document changes.
* ORG-NEWS: Add entry.

Adds #+latex_compiler: keyword.

Note, rubber is dropped from `org-latex-pdf-process' since it does not
allow arbitrary latex commands.

Suggested-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98921>
doc/org.texi
etc/ORG-NEWS
lisp/org.el
lisp/ox-latex.el