From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Bug: ODT export fails if NAME: and ref: equation [9.1.14 (9.1.14-1-g4931fc-elpa @ /home/kdm/.emacs.d/elpa/org-20180910/)] Date: Thu, 8 Nov 2018 16:31:00 -0800 Message-ID: References: <86zhwk60ca.fsf@gmail.com> <87efbztccy.fsf@nicolasgoaziou.fr> <87pnvfcwgr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000060954f057a3079bd" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKuiF-000398-C1 for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 19:31:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKuiC-0002Hr-Do for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 19:31:51 -0500 Received: from mail-yb1-xb44.google.com ([2607:f8b0:4864:20::b44]:36292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKui9-0002CX-MM for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 19:31:47 -0500 Received: by mail-yb1-xb44.google.com with SMTP id g192-v6so128327ybf.3 for ; Thu, 08 Nov 2018 16:31:37 -0800 (PST) In-Reply-To: <87pnvfcwgr.fsf@nicolasgoaziou.fr> 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 --00000000000060954f057a3079bd Content-Type: text/plain; charset="UTF-8" On Thu, Nov 8, 2018 at 9:26 AM Nicolas Goaziou wrote: > > I know. I can reproduce your problem. But I know nothing about ODT, so > it would help if you could tell me what should be the desired output. At > the moment, referencing anything else than a headline or a target is > unsupported in this back-end, AFAICT. > Hi Nicolas, I'd like to see a reference of some sort to the equation. The text should read "See (1)" or "See Equation (1)". BUT, perhaps this bug, like most, was operator error on my part. Without setting up MathML the equation exported as raw LaTeX into the ODT file. This was fine for me. I saw: \begin{equation} 42 \end{equation} I think that ODT does not view this as an actual equation, so the [[eq:foo]] label could not be resolved. Thanks to the hint from Robert Pluim I have it working now. Unlike his solution, setting `org-latex-mathml-convert-command` did not solve it for me, but properly setting `org-latex-to-mathml-convert-command` as per https://www.gnu.org/software/emacs/manual/html_node/org/Working-with-LaTeX-math-snippets.html#Working-with-LaTeX-math-snippets did work for me. Now the equation appears properly formatted, not as LaTeX, *and* the reference works. Thank you (and Robert) for your help with this, -k. --00000000000060954f057a3079bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Nov 8, 2018 at 9:26 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>= wrote:

I know. I can reproduce your problem. But I know nothing about ODT, so
it would help if you could tell me what should be the desired output. At the moment, referencing anything else than a headline or a target is
unsupported in this back-end, AFAICT.

H= i Nicolas,

I'd like to see a reference of some= sort to the equation. The text should read "See (1)" or "Se= e Equation (1)". BUT, perhaps this bug, like most, was operator error = on my part.

Without setting up MathML the equation= exported as raw LaTeX into the ODT file. This was fine for me. I saw:

=09 =09
\b=
egin{equation}
42
\end{equation}
=C2=A0I think that ODT does not view this as an ac= tual equation, so the [[eq:foo]] label could not be resolved.
Thanks to the hint from Robert Pluim I have it working now. Unl= ike his solution, setting `org-latex-mathml-convert-command` did not solve = it for me, but properly setting `org-latex= -to-mathml-convert-command` as per=C2=A0https://www.gnu= .org/software/emacs/manual/html_node/org/Working-with-LaTeX-math-snippets.h= tml#Working-with-LaTeX-math-snippets did work for me. Now the equation = appears properly formatted, not as LaTeX, *and* the reference works.=

Thank you (and Robert) for your help with this,

=C2=A0 = =C2=A0-k.
--00000000000060954f057a3079bd--