summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLixin Chin <lixinchin@gmail.com>2016-11-29 09:24:11 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-11-29 09:24:11 +0100
commit73694b21d7233c88bbd6e67eefaf8f4c321e4863 (patch)
tree890243d5fbf358f41fb984158fd8249920421201
parent6983f8e8bfce12a35b1a87d5298efde3eace7c6f (diff)
downloadorg-mode-73694b21d7233c88bbd6e67eefaf8f4c321e4863.tar.gz
ox-odt.el: Fix LaTeX formulae in opendocument exports
* lisp/ox-odt.el (org-odt--translate-latex-fragments): Apply signature change for `org-format-latex'. Commit a24f339f58a5a97a813514b8768faf9131c83dd0 changed the signature for `org-format-latex' (lisp/org.el) to add `beg' and `end' optional parameters. This led to an error in ox-odt.el when exporting an odt document containing LaTeX formulae.
-rw-r--r--lisp/ox-odt.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 05d86bf..a705b68 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -3741,9 +3741,9 @@ contextual information."
(org-link
(let ((link (with-temp-buffer
(insert latex-frag)
- (org-format-latex cache-subdir cache-dir
- nil display-msg
- nil processing-type)
+ (org-format-latex cache-subdir nil nil cache-dir
+ nil display-msg nil
+ processing-type)
(buffer-substring-no-properties
(point-min) (point-max)))))
(if (string-match-p "file:\\([^]]*\\)" link) link