branch: externals/org commit f30f6dc4bc50490c7e1b7e406994b9713880b413 Author: Billy Lei <leiyixi...@outlook.com> Commit: Ihor Radchenko <yanta...@posteo.net>
org-preview-latex-process-alist: Add xelatex support for latex preview * lisp/org.el (org-preview-latex-process-alist): Add new process "xelatex" to allow using xelatex to generate latex preview. TINYCHANGE --- etc/ORG-NEWS | 8 ++++++++ lisp/org.el | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 919dea33d2..1b9dc70300 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -237,6 +237,14 @@ You may return to the previous behaviour by setting Note that Emacs warnings can always be suppressed by clicking on ⛔ symbol or by customizing ~warning-suppress-types~. +*** Allow using =xelatex= for LaTeX preview + +A new process =xelatex= is added to ~org-preview-process-alist~ to +allow generating LaTeX fragment preview through =xdv= file produced by +XeLaTeX, which has better support for Unicode. + +You can now set ~org-preview-latex-default-process~ to ~'xelatex~. + *** New option ~org-edit-keep-region~ Since Org 9.7, structure editing commands do not deactivate region diff --git a/lisp/org.el b/lisp/org.el index 3fcc036970..f73e4f70e7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3392,6 +3392,15 @@ All available processes and theirs documents can be found in :image-size-adjust (1.7 . 1.5) :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O")) + (xelatex + :programs ("xelatex" "dvisvgm") + :description "xdv > svg" + :message "you need to install the programs: xelatex and dvisvgm." + :image-input-type "xdv" + :image-output-type "svg" + :image-size-adjust (1.7 . 1.5) + :latex-compiler ("xelatex -no-pdf -interaction nonstopmode -output-directory %o %f") + :image-converter ("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O")) (imagemagick :programs ("latex" "convert") :description "pdf > png" @@ -3453,7 +3462,7 @@ Place-holders only used by `:image-converter': %S the image size scale ratio, which is used to adjust image size by some processing commands." :group 'org-latex - :package-version '(Org . "9.6") + :package-version '(Org . "9.8") :type '(alist :tag "LaTeX to image backends" :value-type (plist)))