emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lixin Chin <lixinchin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ox-odt.el: Fix LaTeX formulae in opendocument exports
Date: Tue, 29 Nov 2016 11:43:22 +0800	[thread overview]
Message-ID: <1e2aeed7-3164-bfd3-d2eb-fd6a3bff7f90@gmail.com> (raw)

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

             reply	other threads:[~2016-11-29  3:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29  3:43 Lixin Chin [this message]
2016-11-29  8:30 ` [PATCH] ox-odt.el: Fix LaTeX formulae in opendocument exports Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e2aeed7-3164-bfd3-d2eb-fd6a3bff7f90@gmail.com \
    --to=lixinchin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).