From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lixin Chin Subject: [PATCH] ox-odt.el: Fix LaTeX formulae in opendocument exports Date: Tue, 29 Nov 2016 11:43:22 +0800 Message-ID: <1e2aeed7-3164-bfd3-d2eb-fd6a3bff7f90@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBZKP-0007Nq-O8 for emacs-orgmode@gnu.org; Mon, 28 Nov 2016 22:43:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBZKL-0007mK-SA for emacs-orgmode@gnu.org; Mon, 28 Nov 2016 22:43:33 -0500 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:35145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBZKL-0007lx-Id for emacs-orgmode@gnu.org; Mon, 28 Nov 2016 22:43:29 -0500 Received: by mail-pg0-x241.google.com with SMTP id p66so14955135pga.2 for ; Mon, 28 Nov 2016 19:43:28 -0800 (PST) Received: from [130.95.28.187] ([130.95.28.187]) by smtp.gmail.com with ESMTPSA id r74sm90404887pfl.79.2016.11.28.19.43.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 19:43:26 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi everyone, Fixing a bug in org-mode 9.0 where setting a LaTeX -> MathML converter (`org-latex-to-mathml-convert-command') and exporting an org-mode document containing LaTeX equations to opendocument fails. Thank you, Lixin Chin * 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. --- lisp/ox-odt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 05d86bf..e240dd7 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -3741,7 +3741,8 @@ contextual information." (org-link (let ((link (with-temp-buffer (insert latex-frag) - (org-format-latex cache-subdir cache-dir + (org-format-latex cache-subdir nil nil + cache-dir nil display-msg nil processing-type) (buffer-substring-no-properties -- 2.10.2