From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: surprise export in html Date: Mon, 3 Dec 2018 15:59:23 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001a6f57057c246d0d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTvJa-0004qx-Qs for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 15:59:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTvJZ-0007s5-Li for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 15:59:38 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:40420) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTvJZ-0007pS-BH for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 15:59:37 -0500 Received: by mail-wr1-x435.google.com with SMTP id p4so13652885wrt.7 for ; Mon, 03 Dec 2018 12:59:36 -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 --0000000000001a6f57057c246d0d Content-Type: text/plain; charset="UTF-8" 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 > > --0000000000001a6f57057c246d0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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?

J= ohn

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


On Mon, Dec 3, 2018 at 3:54 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
If I ha= ve this=C2=A0 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 t= o dvisgm, then the backslashed path seems to get removed. Is this as surpri= sing as it seems to be?


*%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 e= macs-lisp
(let ((org-html-with-latex 'dvipng))
=C2= =A0 (with-current-buffer (org-export-to-buffer 'html "*Formatted C= opy*" nil nil t t)
=C2=A0 =C2=A0 (buffer-string)))
#+END_SRC

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


#+BEGIN_SRC emacs-lisp
(let ((org-html-wit= h-latex 'dvisgm))
=C2=A0 (with-current-buffer (org-export-to-= buffer 'html "*Formatted Copy*" nil nil t t)
=C2=A0= =C2=A0 (buffer-string)))
#+END_SRC

#+RE= SULTS:
: <p>
: <b>%appdata%\Path\Path\Path&= lt;/b>
: </p>

John

-----------------------------------
Professor Jo= hn Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical Engineerin= g
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803=
--0000000000001a6f57057c246d0d--