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 16:18:19 -0500	[thread overview]
Message-ID: <CAJ51EToZDbb1VfKLgq4DG_6aZDpPqOjqK=pU0ZG30VfUWjaGpg@mail.gmail.com> (raw)
In-Reply-To: <CAJ51ETqMBa_ZZL4DBpUnRRV4oyJxTTjQ1U948Fsb6uDyCkpOkg@mail.gmail.com>

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

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

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

<p>
<span class="underline">%appdata%</span>
</p>


<p>
<code>%appdata%\Path\Path\Path</code>
</p>


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

      reply	other threads:[~2018-12-03 21:18 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
2018-12-03 21:18   ` John Kitchin [this message]

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='CAJ51EToZDbb1VfKLgq4DG_6aZDpPqOjqK=pU0ZG30VfUWjaGpg@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).