From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: surprise export in html Date: Mon, 3 Dec 2018 16:18:19 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d423c5057c24b00f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTvbu-0007Te-G6 for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 16:18:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTvbs-0003aN-Vg for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 16:18:34 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:52300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTvbs-0003XF-Jk for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 16:18:32 -0500 Received: by mail-wm1-x32a.google.com with SMTP id r11-v6so7387465wmb.2 for ; Mon, 03 Dec 2018 13:18:32 -0800 (PST) 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: org-mode-email --000000000000d423c5057c24b00f Content-Type: text/plain; charset="UTF-8" ug. Sorry for the noise, the \Path in *%appdata%\Path\Path\Path* is getting interpreted as latex fragments, which don't evaluate to anything I guess. This doesn't happen consistently though, the \Paths get stripped from **, // and __, but not from == and ~~. I am not sure if that is an inconsistency. Does anyone know if there is a way to suppress recognizing these kinds of latex without losing rendering of equations? *%appdata%\Path\Path\Path* /%appdata%\Path\Path\Path/ _%appdata%\Path\Path\Path_ =%appdata%\Path\Path\Path= ~%appdata%\Path\Path\Path~ * Code :noexport: #+BEGIN_SRC emacs-lisp (let ((org-html-with-latex 'dvipng)) (with-current-buffer (org-export-to-buffer 'html "*Formatted Copy*" nil nil t t) (buffer-string))) #+END_SRC #+RESULTS: #+begin_example

%appdata%

%appdata%

%appdata%

%appdata%\Path\Path\Path

%appdata%\Path\Path\Path

#+end_example 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 Mon, Dec 3, 2018 at 3:59 PM John Kitchin wrote: > I see I made a mistake in the second example: > > #+BEGIN_SRC emacs-lisp > (let ((org-html-with-latex 'dvisvgm)) > (with-current-buffer (org-export-to-buffer 'html "*Formatted Copy*" nil > nil t t) > (buffer-string))) > #+END_SRC > > #+RESULTS: > :

> : %appdata% > :

> > Is this just happening because % is a comment character in latex? > > 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 Mon, Dec 3, 2018 at 3:54 PM John Kitchin > wrote: > >> If I have this in an org-file, I was surprised to see different behavior >> of the export depending on the value of org-html-with-latex. Unless I set >> it to dvisgm, then the backslashed path seems to get removed. Is this as >> surprising as it seems to be? >> >> >> *%appdata%\Path\Path\Path* >> >> * Code >> :noexport: >> #+BEGIN_SRC emacs-lisp >> (let ((org-html-with-latex 'dvipng)) >> (with-current-buffer (org-export-to-buffer 'html "*Formatted Copy*" nil >> nil t t) >> (buffer-string))) >> #+END_SRC >> >> #+RESULTS: >> :

>> : %appdata% >> :

>> >> >> #+BEGIN_SRC emacs-lisp >> (let ((org-html-with-latex 'dvisgm)) >> (with-current-buffer (org-export-to-buffer 'html "*Formatted Copy*" nil >> nil t t) >> (buffer-string))) >> #+END_SRC >> >> #+RESULTS: >> :

>> : %appdata%\Path\Path\Path >> :

>> >> 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 >> >> --000000000000d423c5057c24b00f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
ug. Sorry for the noise, the \Path in *%a= ppdata%\Path\Path\Path* is getting interpreted as latex fragments, which do= n't evaluate to anything I guess. This doesn't happen consistently = though, the \Paths get stripped from **, // and __, but not from =3D=3D and= ~~. I am not sure if that is an inconsistency. Does anyone know if there i= s a way to suppress recognizing these kinds of latex without losing renderi= ng of equations?

*%appdata%\Path\Path\Path*

/%appdata%\Path\Path\Path/

_%app= data%\Path\Path\Path_

=3D%appdata%\Path\Path\Path= =3D

~%appdata%\Path\Path\Path~



* Code=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:noexport:
#+BEGIN_SRC emac= s-lisp
(let ((org-html-with-latex 'dvipng))
=C2=A0 = (with-current-buffer (org-export-to-buffer 'html "*Formatted Copy*= " nil nil t t)
=C2=A0 =C2=A0 (buffer-string)))
#+E= ND_SRC

#+RESULTS:
#+begin_example
<= div><p>
<b>%appdata%</b>
</p>

<p>
<i>%appdata%</i>
</p>

<p>
<span cl= ass=3D"underline">%appdata%</span>
</p><= /div>


<p>
<code>%ap= pdata%\Path\Path\Path</code>
</p>


<p>
<code>%appdata%\Path\Path\Pa= th</code>
</p>
#+end_example

=


John

---------------= --------------------
Professor John Kitchin=C2=A0
Doherty Hall A207F<= br>Department of Chemical Engineering
Carnegie Mellon University
Pitt= sburgh, PA 15213
412-268-7803


On Mon, Dec 3, 2018 = at 3:59 PM John Kitchin <jkit= chin@andrew.cmu.edu> wrote:
=
I see I made a mistake in the second exam= ple:

#+BEGIN_SRC emacs-lisp
(let ((org-ht= ml-with-latex 'dvisvgm))
=C2=A0 (with-current-buffer (org-exp= ort-to-buffer 'html "*Formatted Copy*" nil nil t t)
=C2=A0 =C2=A0 (buffer-string)))
#+END_SRC

#+RESULTS:
: <p>
: <b>%appdata%</b>= ;
: </p>

Is this just happening be= cause % is a comment character in latex?

John

-----------------------------------
Prof= essor John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical En= gineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-= 7803


On Mon, Dec 3, 2018 at 3:54 PM John Kitchin <= jkitchin@andre= w.cmu.edu> wrote:
If I have this=C2=A0 in an org-file, I was s= urprised to see different behavior of the export depending on the value of = org-html-with-latex. Unless I set it to dvisgm, then the backslashed path s= eems to get removed. Is this as surprising as it seems to be?

*%appdata%\Path\Path\Path*

<= div>* Code=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0:noexport:
#+BEGIN_SRC emacs-lisp
(let ((org-html= -with-latex 'dvipng))
=C2=A0 (with-current-buffer (org-export= -to-buffer 'html "*Formatted Copy*" nil nil t t)
= =C2=A0 =C2=A0 (buffer-string)))
#+END_SRC

#+RESULTS:
: <p>
: <b>%appdata%</b>=
: </p>


#+BEGIN_SRC= emacs-lisp
(let ((org-html-with-latex 'dvisgm))
= =C2=A0 (with-current-buffer (org-export-to-buffer 'html "*Formatte= d Copy*" nil nil t t)
=C2=A0 =C2=A0 (buffer-string)))
<= div>#+END_SRC

#+RESULTS:
: <p>
: <b>%appdata%\Path\Path\Path</b>
: </p>=

John

-----------------------------------
Professor John Kitchin= =C2=A0
Doherty Hall A207F
Department of Chemical Engineering
Carne= gie Mellon University
Pittsburgh, PA 15213
412-268-7803
--000000000000d423c5057c24b00f--