all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* surprise export in html
@ 2018-12-03 20:54 John Kitchin
  2018-12-03 20:59 ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2018-12-03 20:54 UTC (permalink / raw)
  To: org-mode-email

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

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: 1759 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: surprise export in html
  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
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2018-12-03 20:59 UTC (permalink / raw)
  To: org-mode-email

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: surprise export in html
  2018-12-03 20:59 ` John Kitchin
@ 2018-12-03 21:18   ` John Kitchin
  0 siblings, 0 replies; 3+ messages in thread
From: John Kitchin @ 2018-12-03 21:18 UTC (permalink / raw)
  To: org-mode-email

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-03 21:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.