Next: ODT export commands, Previous: Structure of ELPA tar, Up: OpenDocument Text Exporter for Emacs’ Org Mode [Contents][Index]
The ODT backend depends on the following programs
Program | Purpose |
---|---|
‘zip’1 | To produce OpenDocument files |
‘unzip’2 | To unzip custom styles |
‘identify’3 | To identify the size of an inline image |
‘latex’4 | To compile LaTeX fragments to ‘dvi’ images |
‘dvisgm’5 | To convert ‘dvi’ images to ‘svg’ |
‘dvipng’6 | To convert ‘dvi’ images to ‘png’ |
‘convert’7 | To convert inline ‘pdf’ to ‘png’ |
‘latexmlmath’8 | To convert LaTeX math snippets to MathML |
‘mathtoweb’9 | 〃 |
Of these, ‘zip’ is essential. Rest are optional.
You can install the OpenDocument Text export backend using the Emacs package manager. The archive URL for the package is https://kjambunathan.github.io/elpa/.
A typical configuration look like this
(custom-set-variables '(package-archives (quote (("gnu" . "https://elpa.gnu.org/packages/") ("ox-odt" . "https://kjambunathan.github.io/elpa/")))))
In the ‘*Packages*’ buffer, packages from this archive show up as below
ox-odt 9.2.6.263 ... OpenDocument Text Exporter for Org Mode
Here is a sample configuration.
(custom-set-variables '(org-odt-convert-process "LibreOffice") '(org-odt-preferred-output-format "docx") '(org-odt-transform-processes '(("Optimize Column Width of all Tables" "soffice" "--norestore" "--invisible" "--headless" "macro:///OrgMode.Utilities.OptimizeColumnWidth(%I)") ("Update All" "soffice" "--norestore" "--invisible" "--headless" "macro:///OrgMode.Utilities.UpdateAll(%I)") ("Reload" "soffice" "--norestore" "--invisible" "--headless" "macro:///OrgMode.Utilities.Reload(%I)"))) '(org-latex-to-mathml-convert-command "java -jar %j -unicode -force -df %o %I") '(org-latex-to-mathml-jar-file "/home/kjambunathan/Downloads/mathtoweb.jar")) (require 'ox-odt) ;; (setcdr (assq 'system org-file-apps-defaults-gnu) "xdg-open %s") (setcdr (assq 'system org-file-apps-gnu) "xdg-open %s") (advice-add 'org-open-file :around (lambda (orig-fun &rest args) ;; Work around a weird problem with xdg-open. (let ((process-connection-type nil)) (apply orig-fun args))))
Above configuration sets up the ODT backend as follows:
https://sourceforge.net/projects/mathtoweb/. See also MathToWeb.
Next: ODT export commands, Previous: Structure of ELPA tar, Up: OpenDocument Text Exporter for Emacs’ Org Mode [Contents][Index]