From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer 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, 1 Nov 2019 16:32:50 +0100 Message-ID: <7AC024E4-8B26-4FC5-B56E-BB7A0EA29FBE@mat.ucm.es> References: Mime-Version: 1.0 (1.0) Content-Type: multipart/signed; boundary=Apple-Mail-C9C91F62-D290-49F3-B54C-0339D2116E81; protocol="application/pkcs7-signature"; micalg=sha-256 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51475) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQYv6-00071A-3m for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 11:33:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQYv3-00056e-EF for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 11:32:59 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:40839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQYv2-0004lP-RS for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 11:32:57 -0400 Received: by mail-wr1-x431.google.com with SMTP id o28so10009509wro.7 for ; Fri, 01 Nov 2019 08:32:54 -0700 (PDT) In-Reply-To: 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: John Kitchin Cc: org-mode-email --Apple-Mail-C9C91F62-D290-49F3-B54C-0339D2116E81 Content-Type: multipart/alternative; boundary=Apple-Mail-396153E7-2A46-4A7B-8874-9A44E3F8F406 Content-Transfer-Encoding: 7bit --Apple-Mail-396153E7-2A46-4A7B-8874-9A44E3F8F406 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Aha. I started to debug it but you were faster. @eric can you confirm this? Sent from my iPhone > On 1 Nov 2019, at 16:12, John Kitchin wrote: >=20 > =EF=BB=BF > I think this is happening here: >=20 > #+BEGIN_SRC emacs-lisp > (org-export-string-as "\\begin{displaymath} > \\int f dx =3D0 > \\end{displaymath}" > 'html t ) > #+END_SRC >=20 > #+RESULTS: > :=20 > :
> : > : 3D"latex1pIlij_8e5abfd22f18b9fd072a0f1273f49cd3a35040d3.png" > : > : > : 1 > : > :
>=20 >=20 > #+BEGIN_SRC emacs-lisp > (org-export-string-as "$e^x$" > 'html t ) > #+END_SRC >=20 > #+RESULTS: > :

> : 3D"latex4ckMGO_c7e2801d6583d97def1ae1189f6c1ecf1db0d41b.png"

= >=20 > John >=20 > ----------------------------------- > Professor John Kitchin=20 > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu >=20 >=20 >=20 >> On Fri, Nov 1, 2019 at 9:59 AM Uwe Brauer wrote: >> >>> "JK" =3D=3D John Kitchin writes: >>=20 >> > I also see this. I wonder if you use any scimax functions? >>=20 >> Good I am relived, I thought it was just me >>=20 >> > Do you see any advice on org-create-formula-image: >>=20 >> > C-h f org-create-formula-image >> no=20 >>=20 >> ,---- >> | org-create-formula-image is a compiled Lisp function in >> | =E2=80=98~/ALLES/emacs/site-lisp/packages/org/org.el=E2=80=99. >> |=20 >> | (org-create-formula-image STRING TOFILE OPTIONS BUFFER &optional >> | PROCESSING-TYPE) >> |=20 >> | Create an image from LaTeX source using external processes. >> |=20 >> | The LaTeX STRING is saved to a temporary LaTeX file, then >> | converted to an image file by process PROCESSING-TYPE defined in >> | =E2=80=98org-preview-latex-process-alist=E2=80=99. A nil value default= s to >> | =E2=80=98org-preview-latex-default-process=E2=80=99. >> |=20 >> | The generated image file is eventually moved to TOFILE. >> |=20 >> | The OPTIONS argument controls the size, foreground color and >> | background color of the generated image. >> |=20 >> | When BUFFER non-nil, this function is used for LaTeX previewing. >> | Otherwise, it is used to deal with LaTeX snippets showed in >> | a HTML file. >> `---- >>=20 >> But I have this=20 >> ,---- >> |=20 >> | org-mime-htmlize is an autoloaded interactive compiled Lisp function >> | in =E2=80=98~/ALLES/.emacs.d/elpa/org-mime-20190805.57/org-mime.el=E2=80= =99. >> |=20 >> | It is bound to , . >> |=20 >> | (org-mime-htmlize) >> |=20 >> | This function has :around advice: =E2=80=98ad-Advice-org-mime-htmlize=E2= =80=99. >> |=20 >> | Export a portion of an email to html using =E2=80=98org-mode=E2=80=99. >> | If called with an active region only export that region, otherwise enti= re body. >> |=20 >> |=20 >> `---- >>=20 >>=20 >> I wounder what that is about, @Eric, do have also this setting? John? --Apple-Mail-396153E7-2A46-4A7B-8874-9A44E3F8F406 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Aha. I started to debug it but you were fas= ter.

@eric can you confirm this?

= Sent from my iPhone

On 1= Nov 2019, at 16:12, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
=
=EF=BB=BF<= div dir=3D"ltr">
I think this is happening here:

#+BEGIN_SRC emacs-lisp
(org-export-string-as "\\begin{displaymath}=
  \\int   f dx =3D0
\\end{displaymath}"
&n= bsp;    'html t )
#+END_SRC

#+RESULTS:
:
: <di= v class=3D"equation-container">
: <span class=3D"equation">
:= <img src=3D"ltximg/latex1pIlij_8e5abfd22f18b9fd072a0f1273f49cd3a35040d3.= png" alt=3D"latex1pIlij_8e5abfd22f18b9fd072a0f1273f49cd3a35040d3.png" /><= br>: </span>
: <span class=3D"equation-label">
: 1
: &l= t;/span>
: </div>


#+BEGIN_SRC emacs-lisp
(org-expo= rt-string-as "$e^x$"
     'html t )
#= +END_SRC

#+RESULTS:
: <p>
: <img src=3D"ltximg/latex4c= kMGO_c7e2801d6583d97def1ae1189f6c1ecf1db0d41b.png" alt=3D"latex4ckMGO_c7e280= 1d6583d97def1ae1189f6c1ecf1db0d41b.png" /></p>

John

----------------------------------= -
Professor John Kitchin 
Doherty Hall A207F
Department of Che= mical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
4= 12-268-7803


On Fri, Nov 1, 2019 at 9:59 AM= Uwe Brauer <oub@mat.= ucm.es> wrote:
>>> "JK" =3D=3D John Kitchin <jkitchin@andrew.cmu.edu> writes:

   > I also see this. I wonder if you use any scimax functions?=

Good I am relived, I thought it was just me

   > Do you see any advice on org-create-formula-image:

   > C-h f org-create-formula-image
no

,----
| org-create-formula-image is a compiled Lisp function in
| =E2=80=98~/ALLES/emacs/site-lisp/packages/org/org.el=E2=80=99.
|
| (org-create-formula-image STRING TOFILE OPTIONS BUFFER &optional
| PROCESSING-TYPE)
|
| Create an image from LaTeX source using external processes.
|
| The LaTeX STRING is saved to a temporary LaTeX file, then
| converted to an image file by process PROCESSING-TYPE defined in
| =E2=80=98org-preview-latex-process-alist=E2=80=99.  A nil value defau= lts to
| =E2=80=98org-preview-latex-default-process=E2=80=99.
|
| The generated image file is eventually moved to TOFILE.
|
| The OPTIONS argument controls the size, foreground color and
| background color of the generated image.
|
| When BUFFER non-nil, this function is used for LaTeX previewing.
| Otherwise, it is used to deal with LaTeX snippets showed in
| a HTML file.
`----

But I have this
,----
|
| org-mime-htmlize is an autoloaded interactive compiled Lisp function
| in =E2=80=98~/ALLES/.emacs.d/elpa/org-mime-20190805.57/org-mime.el=E2=80=99= .
|
| It is bound to <C-f31>, <C-next>.
|
| (org-mime-htmlize)
|
| This function has :around advice: =E2=80=98ad-Advice-org-mime-htmlize=E2=80= =99.
|
| Export a portion of an email to html using =E2=80=98org-mode=E2=80=99.
= | If called with an active region only export that region, otherwise entire b= ody.
|
|
`----


I wounder what that is about, @Eric, do have also this setting? John?
= --Apple-Mail-396153E7-2A46-4A7B-8874-9A44E3F8F406-- --Apple-Mail-C9C91F62-D290-49F3-B54C-0339D2116E81 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition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