emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-preview-latex-fragment for @@latex:stuff@@?
@ 2015-11-22  0:30 John Kitchin
  2015-11-22 13:37 ` Rasmus
  0 siblings, 1 reply; 6+ messages in thread
From: John Kitchin @ 2015-11-22  0:30 UTC (permalink / raw)
  To: org-mode mailing list

Should the inline latex fragments like @@latex:\ce{H_{2}O}@@ be
previewable in org files with org-preview-latex-fragment?

They don't seem to be, and just wanted to confirm that is intended
behavior.

Thanks,
-- 
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

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

* Re: org-preview-latex-fragment for @@latex:stuff@@?
  2015-11-22  0:30 org-preview-latex-fragment for @@latex:stuff@@? John Kitchin
@ 2015-11-22 13:37 ` Rasmus
  2015-11-23 19:42   ` John Kitchin
  0 siblings, 1 reply; 6+ messages in thread
From: Rasmus @ 2015-11-22 13:37 UTC (permalink / raw)
  To: emacs-orgmode

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> Should the inline latex fragments like @@latex:\ce{H_{2}O}@@ be
> previewable in org files with org-preview-latex-fragment?
>
> They don't seem to be, and just wanted to confirm that is intended
> behavior.

Is there a general solution for this?  E.g. how should these cases be
previewed:

    My text @@latex:% my end of line comment@@
    @@latex:\input{myfile}@@

Rasmus

-- 
It was you, Jezebel, it was you

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

* Re: org-preview-latex-fragment for @@latex:stuff@@?
  2015-11-22 13:37 ` Rasmus
@ 2015-11-23 19:42   ` John Kitchin
  2015-11-24  9:00     ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: John Kitchin @ 2015-11-23 19:42 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

True enough! I wasn't thinking very large when I had the question in
mind! I end up with a lot of chemical formulas like this
@@latex:\ce{H_{2}O}@@  in my writing because the {} inside the {} makes
them render incorrectly in LaTeX, and I was looking for a way to
visualize them.

your points are good ones though, there could be many things that don't
make sense to preview in these.



Rasmus writes:

> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> Should the inline latex fragments like @@latex:\ce{H_{2}O}@@ be
>> previewable in org files with org-preview-latex-fragment?
>>
>> They don't seem to be, and just wanted to confirm that is intended
>> behavior.
>
> Is there a general solution for this?  E.g. how should these cases be
> previewed:
>
>     My text @@latex:% my end of line comment@@
>     @@latex:\input{myfile}@@
>
> Rasmus

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

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

* Re: org-preview-latex-fragment for @@latex:stuff@@?
  2015-11-23 19:42   ` John Kitchin
@ 2015-11-24  9:00     ` Eric S Fraga
  2015-11-24 10:57       ` John Kitchin
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2015-11-24  9:00 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode

On Monday, 23 Nov 2015 at 14:42, John Kitchin wrote:
> True enough! I wasn't thinking very large when I had the question in
> mind! I end up with a lot of chemical formulas like this
> @@latex:\ce{H_{2}O}@@  in my writing because the {} inside the {} makes

OT but just wondering: shouldn't this be @@latex:\ce{H2O}@@?  And this
would work just fine without the @@ directive for LaTeX export at least.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-215-gb4af3f

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

* Re: org-preview-latex-fragment for @@latex:stuff@@?
  2015-11-24  9:00     ` Eric S Fraga
@ 2015-11-24 10:57       ` John Kitchin
  2015-11-24 12:20         ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: John Kitchin @ 2015-11-24 10:57 UTC (permalink / raw)
  To: John Kitchin, emacs-orgmode@gnu.org

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

It can be, but a more typical one I use is \ce{Cu_{1-x}Pd_{x}} and that has
to be wrapped 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 Tue, Nov 24, 2015 at 4:00 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> On Monday, 23 Nov 2015 at 14:42, John Kitchin wrote:
> > True enough! I wasn't thinking very large when I had the question in
> > mind! I end up with a lot of chemical formulas like this
> > @@latex:\ce{H_{2}O}@@  in my writing because the {} inside the {} makes
>
> OT but just wondering: shouldn't this be @@latex:\ce{H2O}@@?  And this
> would work just fine without the @@ directive for LaTeX export at least.
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-215-gb4af3f
>

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

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

* Re: org-preview-latex-fragment for @@latex:stuff@@?
  2015-11-24 10:57       ` John Kitchin
@ 2015-11-24 12:20         ` Eric S Fraga
  0 siblings, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2015-11-24 12:20 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org

On Tuesday, 24 Nov 2015 at 05:57, John Kitchin wrote:
> It can be, but a more typical one I use is \ce{Cu_{1-x}Pd_{x}} and that has
> to be wrapped in @@latex:...@@.

Ah, of course!  Sorry for the noise.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3beta-1229-ge900eb

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

end of thread, other threads:[~2015-11-24 12:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-22  0:30 org-preview-latex-fragment for @@latex:stuff@@? John Kitchin
2015-11-22 13:37 ` Rasmus
2015-11-23 19:42   ` John Kitchin
2015-11-24  9:00     ` Eric S Fraga
2015-11-24 10:57       ` John Kitchin
2015-11-24 12:20         ` Eric S Fraga

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).