emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: surprise export in html
Date: Mon, 3 Dec 2018 15:59:23 -0500	[thread overview]
Message-ID: <CAJ51ETqMBa_ZZL4DBpUnRRV4oyJxTTjQ1U948Fsb6uDyCkpOkg@mail.gmail.com> (raw)
In-Reply-To: <CAJ51ETpfFJUnViGG9diLGmHSCxOMqT7P7javK2y5Q3+qpdWyDA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]

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:
: <p>
: <b>%appdata%</b>
: </p>

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 <jkitchin@andrew.cmu.edu> 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:
> : <p>
> : <b>%appdata%</b>
> : </p>
>
>
> #+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:
> : <p>
> : <b>%appdata%\Path\Path\Path</b>
> : </p>
>
> 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
>
>

[-- Attachment #2: Type: text/html, Size: 3133 bytes --]

  reply	other threads:[~2018-12-03 20:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03 20:54 surprise export in html John Kitchin
2018-12-03 20:59 ` John Kitchin [this message]
2018-12-03 21:18   ` John Kitchin

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=CAJ51ETqMBa_ZZL4DBpUnRRV4oyJxTTjQ1U948Fsb6uDyCkpOkg@mail.gmail.com \
    --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).