From: John Kitchin <jkitchin@andrew.cmu.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)]
Date: Fri, 01 Nov 2019 14:33:00 -0400 [thread overview]
Message-ID: <m2r22rbg6b.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <8736f7vaue.fsf@mat.ucm.es>
Odd indeed. I have restarted Emacs and saw the same thing. But now I
have a more clear picture. I think what is happening is in
org-html--wrap-latex-environment, there is a caption provided which are
the numbers. This only affects latex environments, and does not affect
$$ (//), etc.
If you have org-html-with-latex set to t or mathjax, you get this behavior:
#+BEGIN_SRC emacs-lisp
(org-export-string-as "\\begin{displaymath}
\\int f dx =0
\\end{displaymath}"
'html t)
#+END_SRC
#+RESULTS:
: \begin{displaymath}
: \int f dx =0
: \end{displaymath}
but, in org-mime this is overridden by setting that to dvipng. That
isn't what causes the numbers to appear though, at least not directly.
Somehow, this triggers a call to org-html--wrap-latex-environment where
the new caption gets inserted.
#+BEGIN_SRC emacs-lisp
(org-export-string-as "\\begin{displaymath}
\\int f dx =0
\\end{displaymath}"
'html t '(:with-latex dvipng))
#+END_SRC
#+RESULTS:
:
: <div class="equation-container">
: <span class="equation">
: <img src="ltximg/latexS2DUgE_8e5abfd22f18b9fd072a0f1273f49cd3a35040d3.png" alt="latexS2DUgE_8e5abfd22f18b9fd072a0f1273f49cd3a35040d3.png" />
: </span>
: <span class="equation-label">
: 1
: </span>
: </div>
Uwe Brauer <oub@mat.ucm.es> writes:
>>>> "JK" == John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
> > I think this is happening here:
> > #+BEGIN_SRC emacs-lisp
> > (org-export-string-as "\\begin{displaymath}
> > \\int f dx =0
> > \\end{displaymath}"
> > 'html t )
> > #+END_SRC
>
> Well now this is very odd, I obtain
>
>
> #+BEGIN_SRC emacs-lisp
> (org-export-string-as "\\begin{displaymath}
> \\int f dx =0
> \\end{displaymath}"
> 'html t )
> #+END_SRC
>
> #+RESULTS:
> : \begin{displaymath}
> : \int f dx =0
> : \end{displaymath}
>
> But org-mime-htmlsize still inserts
>
> <span class="equation-label">
> 1
> </span>
>
>
> I am now very confused and will try to debug it again.
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
next prev parent reply other threads:[~2019-11-01 18:33 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-01 7:52 Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)] Uwe Brauer
2019-11-01 8:49 ` Fraga, Eric
2019-11-01 13:55 ` Uwe Brauer
2019-11-02 6:22 ` Thibault Marin
2019-11-02 9:38 ` Uwe Brauer
2019-11-02 10:22 ` Fraga, Eric
2019-11-02 17:13 ` Uwe Brauer
2019-12-08 18:08 ` Thibault Marin
2019-12-08 20:40 ` Nicolas Goaziou
2019-12-08 23:44 ` Thibault Marin
2019-12-09 20:34 ` Nicolas Goaziou
2019-11-01 13:01 ` John Kitchin
2019-11-01 13:59 ` Uwe Brauer
2019-11-01 15:12 ` John Kitchin
2019-11-01 15:32 ` Uwe Brauer
2019-11-01 16:07 ` Uwe Brauer
2019-11-01 16:16 ` [debugger] (was: Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)]) Uwe Brauer
2019-11-01 18:33 ` John Kitchin [this message]
2019-11-02 9:18 ` Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)] Uwe Brauer
2020-02-11 8:20 ` Bastien
2020-02-11 9:24 ` Uwe Brauer
2020-02-11 9:45 ` Bastien
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=m2r22rbg6b.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--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).