From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin 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 11:12:43 -0400 Message-ID: References: <87tv7o6nki.fsf@mat.ucm.es> <87d0eb7l5b.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008ccef105964a6650" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQYbm-0004iZ-Eo for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 11:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQYbi-0004oA-TC for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 11:13:01 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:53870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQYbi-0004gA-D1 for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 11:12:58 -0400 Received: by mail-wm1-x330.google.com with SMTP id n7so9636967wmc.3 for ; Fri, 01 Nov 2019 08:12:57 -0700 (PDT) In-Reply-To: <87d0eb7l5b.fsf@mat.ucm.es> 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: Uwe Brauer Cc: org-mode-email --0000000000008ccef105964a6650 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think this is happening here: #+BEGIN_SRC emacs-lisp (org-export-string-as "\\begin{displaymath} \\int f dx =3D0 \\end{displaymath}" 'html t ) #+END_SRC #+RESULTS: : :
: : 3D"latex1pIlij_8e5abfd22f18b9fd072a0f1273f49cd3a35040d3.png" : : : 1 : :
#+BEGIN_SRC emacs-lisp (org-export-string-as "$e^x$" 'html t ) #+END_SRC #+RESULTS: :

: 3D"latex4ckMGO_c7e2801d6583d97def1ae1189f6c1ecf1db0d41b.png"

John ----------------------------------- 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 On Fri, Nov 1, 2019 at 9:59 AM Uwe Brauer wrote: > >>> "JK" =3D=3D John Kitchin 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 default= s 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 , . > | > | (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 body. > | > | > `---- > > > I wounder what that is about, @Eric, do have also this setting? John? > --0000000000008ccef105964a6650 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think this is happening=C2=A0here:

#+BEGIN_SRC emacs-lisp
(org-export-string-as "\\begin{disp= laymath}
=C2=A0 \\int =C2=A0 f dx =3D0
\\end{displaymath}"
= =C2=A0 =C2=A0 =C2=A0'html t )
#+END_SRC

#+RESULTS:
:
= : <div class=3D"equation-container">
: <span class=3D= "equation">
: <img src=3D"ltximg/latex1pIlij_8e5abf= d22f18b9fd072a0f1273f49cd3a35040d3.png" alt=3D"latex1pIlij_8e5abf= d22f18b9fd072a0f1273f49cd3a35040d3.png" />
: </span>
: = <span class=3D"equation-label">
: 1
: </span>: </div>


#+BEGIN_SRC emacs-lisp
(org-export-string-as= "$e^x$"
=C2=A0 =C2=A0 =C2=A0'html t )
#+END_SRC
=
#+RESULTS:
: <p>
: <img src=3D"ltximg/latex4ckMGO_c= 7e2801d6583d97def1ae1189f6c1ecf1db0d41b.png" alt=3D"latex4ckMGO_c= 7e2801d6583d97def1ae1189f6c1ecf1db0d41b.png" /></p>
<= div dir=3D"ltr" data-smartmail=3D"gmail_signature">

John

---------------------= --------------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Dep= artment of Chemical Engineering
Carnegie Mellon University
Pittsburgh= , PA 15213
412-268-7803


<= div class=3D"gmail_quote">
On Fri, Nov= 1, 2019 at 9:59 AM Uwe Brauer <oub@mat.ucm.es> wrote:
>>> "JK" =3D=3D John Kitchin &= lt;jkitchin@an= drew.cmu.edu> writes:

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

Good I am relived, I thought it was just me

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

=C2=A0 =C2=A0> 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.=C2=A0 A nil value defa= ults 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= body.
|
|
`----


I wounder what that is about, @Eric, do have also this setting? John?
--0000000000008ccef105964a6650--