emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org mode and preview-latex
@ 2009-05-29 21:51 Marvin Doyley
  2009-05-30  5:02 ` Carsten Dominik
  0 siblings, 1 reply; 12+ messages in thread
From: Marvin Doyley @ 2009-05-29 21:51 UTC (permalink / raw)
  To: emacs-orgmode

Dear all,

Is there a way to visualize latex snippets on the fly using auctex's  
latex-preview ?

It would appear the only way to do this is select latex-mode once I  
have finished completed my notes, it would be nice to do this on the  
fly when I am drafting articles.


thanks

MMD

]

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

* Re: org mode and preview-latex
  2009-05-29 21:51 org mode and preview-latex Marvin Doyley
@ 2009-05-30  5:02 ` Carsten Dominik
  2009-05-30 12:54   ` Marvin Doyley
  0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-05-30  5:02 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode


On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:

> Dear all,
>
> Is there a way to visualize latex snippets on the fly using auctex's  
> latex-preview ?
>
> It would appear the only way to do this is select latex-mode once I  
> have finished completed my notes, it would be nice to do this on the  
> fly when I am drafting articles.

Not with preview-latex, but Org has a similar mechanism built-in.

http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments

- Carsten

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

* Re: org mode and preview-latex
  2009-05-30  5:02 ` Carsten Dominik
@ 2009-05-30 12:54   ` Marvin Doyley
  2009-05-30 13:17     ` Carsten Dominik
  0 siblings, 1 reply; 12+ messages in thread
From: Marvin Doyley @ 2009-05-30 12:54 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi Carsten,

I tried this but for some reason it didn't work. More specifically, I  
was unable to visualize my latex snippet. Could this be a limitation  
of carbon emacs or maybe I didn't configured org properly ?

thanks

M
On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:

>
> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>
>> Dear all,
>>
>> Is there a way to visualize latex snippets on the fly using  
>> auctex's latex-preview ?
>>
>> It would appear the only way to do this is select latex-mode once I  
>> have finished completed my notes, it would be nice to do this on  
>> the fly when I am drafting articles.
>
> Not with preview-latex, but Org has a similar mechanism built-in.
>
> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>
> - Carsten
>
>

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

* Re: org mode and preview-latex
  2009-05-30 12:54   ` Marvin Doyley
@ 2009-05-30 13:17     ` Carsten Dominik
  2009-05-30 22:12       ` Marvin Doyley
  0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-05-30 13:17 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode


On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:

> Hi Carsten,
>
> I tried this but for some reason it didn't work. More specifically,  
> I was unable to visualize my latex snippet. Could this be a  
> limitation of carbon emacs or maybe I didn't configured org properly ?

Do you have dvipng installed?

- Carsten

>
> thanks
>
> M
> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>
>>
>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>
>>> Dear all,
>>>
>>> Is there a way to visualize latex snippets on the fly using  
>>> auctex's latex-preview ?
>>>
>>> It would appear the only way to do this is select latex-mode once  
>>> I have finished completed my notes, it would be nice to do this on  
>>> the fly when I am drafting articles.
>>
>> Not with preview-latex, but Org has a similar mechanism built-in.
>>
>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>
>> - Carsten
>>
>>
>

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

* Re: org mode and preview-latex
  2009-05-30 13:17     ` Carsten Dominik
@ 2009-05-30 22:12       ` Marvin Doyley
  2009-06-02  9:46         ` Carsten Dominik
  0 siblings, 1 reply; 12+ messages in thread
From: Marvin Doyley @ 2009-05-30 22:12 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

dvipng is installed on my system, it is included with texlive 2008
I am curious to know if anybody got this work with carbon emacs on the  
mac.

thanks
MMD
On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:

>
> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>
>> Hi Carsten,
>>
>> I tried this but for some reason it didn't work. More specifically,  
>> I was unable to visualize my latex snippet. Could this be a  
>> limitation of carbon emacs or maybe I didn't configured org  
>> properly ?
>
> Do you have dvipng installed?
>
> - Carsten
>
>>
>> thanks
>>
>> M
>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>
>>>
>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>
>>>> Dear all,
>>>>
>>>> Is there a way to visualize latex snippets on the fly using  
>>>> auctex's latex-preview ?
>>>>
>>>> It would appear the only way to do this is select latex-mode once  
>>>> I have finished completed my notes, it would be nice to do this  
>>>> on the fly when I am drafting articles.
>>>
>>> Not with preview-latex, but Org has a similar mechanism built-in.
>>>
>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>
>>> - Carsten
>>>
>>>
>>
>
>

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

* Re: org mode and preview-latex
  2009-05-30 22:12       ` Marvin Doyley
@ 2009-06-02  9:46         ` Carsten Dominik
  2009-06-02 15:44           ` Marvin Doyley
  0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-06-02  9:46 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode

What is your value of

org-export-with-LaTeX-fragments

??

- Carsten
On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:

> dvipng is installed on my system, it is included with texlive 2008
> I am curious to know if anybody got this work with carbon emacs on  
> the mac.
>
> thanks
> MMD
> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>
>>
>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>
>>> Hi Carsten,
>>>
>>> I tried this but for some reason it didn't work. More  
>>> specifically, I was unable to visualize my latex snippet. Could  
>>> this be a limitation of carbon emacs or maybe I didn't configured  
>>> org properly ?
>>
>> Do you have dvipng installed?
>>
>> - Carsten
>>
>>>
>>> thanks
>>>
>>> M
>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>
>>>>
>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>
>>>>> Dear all,
>>>>>
>>>>> Is there a way to visualize latex snippets on the fly using  
>>>>> auctex's latex-preview ?
>>>>>
>>>>> It would appear the only way to do this is select latex-mode  
>>>>> once I have finished completed my notes, it would be nice to do  
>>>>> this on the fly when I am drafting articles.
>>>>
>>>> Not with preview-latex, but Org has a similar mechanism built-in.
>>>>
>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>
>>>> - Carsten
>>>>
>>>>
>>>
>>
>>
>

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

* Re: org mode and preview-latex
  2009-06-02  9:46         ` Carsten Dominik
@ 2009-06-02 15:44           ` Marvin Doyley
  2009-06-04  9:44             ` Carsten Dominik
  0 siblings, 1 reply; 12+ messages in thread
From: Marvin Doyley @ 2009-06-02 15:44 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

(setq org-export-with-LaTeX-fragments t)

thanks
M
On Jun 2, 2009, at 5:46 AM, Carsten Dominik wrote:

> What is your value of
>
> org-export-with-LaTeX-fragments
>
> ??
>
> - Carsten
> On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:
>
>> dvipng is installed on my system, it is included with texlive 2008
>> I am curious to know if anybody got this work with carbon emacs on  
>> the mac.
>>
>> thanks
>> MMD
>> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>>
>>>
>>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>>
>>>> Hi Carsten,
>>>>
>>>> I tried this but for some reason it didn't work. More  
>>>> specifically, I was unable to visualize my latex snippet. Could  
>>>> this be a limitation of carbon emacs or maybe I didn't configured  
>>>> org properly ?
>>>
>>> Do you have dvipng installed?
>>>
>>> - Carsten
>>>
>>>>
>>>> thanks
>>>>
>>>> M
>>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>>
>>>>>
>>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>>
>>>>>> Dear all,
>>>>>>
>>>>>> Is there a way to visualize latex snippets on the fly using  
>>>>>> auctex's latex-preview ?
>>>>>>
>>>>>> It would appear the only way to do this is select latex-mode  
>>>>>> once I have finished completed my notes, it would be nice to do  
>>>>>> this on the fly when I am drafting articles.
>>>>>
>>>>> Not with preview-latex, but Org has a similar mechanism built-in.
>>>>>
>>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>>
>>>>> - Carsten
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>

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

* Re: org mode and preview-latex
  2009-06-02 15:44           ` Marvin Doyley
@ 2009-06-04  9:44             ` Carsten Dominik
  2009-06-04 12:11               ` Marvin Doyley
  0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-06-04  9:44 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode


On Jun 2, 2009, at 5:44 PM, Marvin Doyley wrote:

> (setq org-export-with-LaTeX-fragments t)
>
> thanks
> M


Does that mean doing this did solve your problems, or does that mean  
you already had it set to t?
Please take the time to reply with enough information so that I can  
figure out what you are talking about.

- Carsten

> On Jun 2, 2009, at 5:46 AM, Carsten Dominik wrote:
>
>> What is your value of
>>
>> org-export-with-LaTeX-fragments
>>
>> ??
>>
>> - Carsten
>> On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:
>>
>>> dvipng is installed on my system, it is included with texlive 2008
>>> I am curious to know if anybody got this work with carbon emacs on  
>>> the mac.
>>>
>>> thanks
>>> MMD
>>> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>>>
>>>>
>>>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>>>
>>>>> Hi Carsten,
>>>>>
>>>>> I tried this but for some reason it didn't work. More  
>>>>> specifically, I was unable to visualize my latex snippet. Could  
>>>>> this be a limitation of carbon emacs or maybe I didn't  
>>>>> configured org properly ?
>>>>
>>>> Do you have dvipng installed?
>>>>
>>>> - Carsten
>>>>
>>>>>
>>>>> thanks
>>>>>
>>>>> M
>>>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>>>
>>>>>>
>>>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>>>
>>>>>>> Dear all,
>>>>>>>
>>>>>>> Is there a way to visualize latex snippets on the fly using  
>>>>>>> auctex's latex-preview ?
>>>>>>>
>>>>>>> It would appear the only way to do this is select latex-mode  
>>>>>>> once I have finished completed my notes, it would be nice to  
>>>>>>> do this on the fly when I am drafting articles.
>>>>>>
>>>>>> Not with preview-latex, but Org has a similar mechanism built-in.
>>>>>>
>>>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>>>
>>>>>> - Carsten
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>

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

* Re: org mode and preview-latex
  2009-06-04  9:44             ` Carsten Dominik
@ 2009-06-04 12:11               ` Marvin Doyley
  2009-06-05  7:23                 ` Carsten Dominik
  0 siblings, 1 reply; 12+ messages in thread
From: Marvin Doyley @ 2009-06-04 12:11 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Sorry Carsten,

What I meant to say was that org-export-with-Latex-fragment was set to  
t. The problem still continues :(

Should I try a different value ?
thanks

M
On Jun 4, 2009, at 5:44 AM, Carsten Dominik wrote:

>
> On Jun 2, 2009, at 5:44 PM, Marvin Doyley wrote:
>
>> (setq org-export-with-LaTeX-fragments t)
>>
>> thanks
>> M
>
>
> Does that mean doing this did solve your problems, or does that mean  
> you already had it set to t?
> Please take the time to reply with enough information so that I can  
> figure out what you are talking about.
>
> - Carsten
>
>> On Jun 2, 2009, at 5:46 AM, Carsten Dominik wrote:
>>
>>> What is your value of
>>>
>>> org-export-with-LaTeX-fragments
>>>
>>> ??
>>>
>>> - Carsten
>>> On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:
>>>
>>>> dvipng is installed on my system, it is included with texlive 2008
>>>> I am curious to know if anybody got this work with carbon emacs  
>>>> on the mac.
>>>>
>>>> thanks
>>>> MMD
>>>> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>>>>
>>>>>
>>>>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>>>>
>>>>>> Hi Carsten,
>>>>>>
>>>>>> I tried this but for some reason it didn't work. More  
>>>>>> specifically, I was unable to visualize my latex snippet. Could  
>>>>>> this be a limitation of carbon emacs or maybe I didn't  
>>>>>> configured org properly ?
>>>>>
>>>>> Do you have dvipng installed?
>>>>>
>>>>> - Carsten
>>>>>
>>>>>>
>>>>>> thanks
>>>>>>
>>>>>> M
>>>>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>>>>
>>>>>>>
>>>>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>>>>
>>>>>>>> Dear all,
>>>>>>>>
>>>>>>>> Is there a way to visualize latex snippets on the fly using  
>>>>>>>> auctex's latex-preview ?
>>>>>>>>
>>>>>>>> It would appear the only way to do this is select latex-mode  
>>>>>>>> once I have finished completed my notes, it would be nice to  
>>>>>>>> do this on the fly when I am drafting articles.
>>>>>>>
>>>>>>> Not with preview-latex, but Org has a similar mechanism built- 
>>>>>>> in.
>>>>>>>
>>>>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>>>>
>>>>>>> - Carsten
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>

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

* Re: org mode and preview-latex
  2009-06-04 12:11               ` Marvin Doyley
@ 2009-06-05  7:23                 ` Carsten Dominik
  2009-06-05  8:27                   ` Marvin Doyley
  0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-06-05  7:23 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode


On Jun 4, 2009, at 2:11 PM, Marvin Doyley wrote:

> Sorry Carsten,
>
> What I meant to say was that org-export-with-Latex-fragment was set  
> to t. The problem still continues :(
>
> Should I try a different value ?

No.

Can you see anything in the *Messages* buffer after you tried `C-c C-x  
C-l'
on a LaTeX fragment?

If it says "failed to Failed to create png file from .....

then try to go to this directory and to process that file by hand,
first with latex file.tex and then with dvipng file.dvi.
Does that work?

- Carsten


> thanks
>
> M
> On Jun 4, 2009, at 5:44 AM, Carsten Dominik wrote:
>
>>
>> On Jun 2, 2009, at 5:44 PM, Marvin Doyley wrote:
>>
>>> (setq org-export-with-LaTeX-fragments t)
>>>
>>> thanks
>>> M
>>
>>
>> Does that mean doing this did solve your problems, or does that  
>> mean you already had it set to t?
>> Please take the time to reply with enough information so that I can  
>> figure out what you are talking about.
>>
>> - Carsten
>>
>>> On Jun 2, 2009, at 5:46 AM, Carsten Dominik wrote:
>>>
>>>> What is your value of
>>>>
>>>> org-export-with-LaTeX-fragments
>>>>
>>>> ??
>>>>
>>>> - Carsten
>>>> On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:
>>>>
>>>>> dvipng is installed on my system, it is included with texlive 2008
>>>>> I am curious to know if anybody got this work with carbon emacs  
>>>>> on the mac.
>>>>>
>>>>> thanks
>>>>> MMD
>>>>> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>>>>>
>>>>>>
>>>>>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>>>>>
>>>>>>> Hi Carsten,
>>>>>>>
>>>>>>> I tried this but for some reason it didn't work. More  
>>>>>>> specifically, I was unable to visualize my latex snippet.  
>>>>>>> Could this be a limitation of carbon emacs or maybe I didn't  
>>>>>>> configured org properly ?
>>>>>>
>>>>>> Do you have dvipng installed?
>>>>>>
>>>>>> - Carsten
>>>>>>
>>>>>>>
>>>>>>> thanks
>>>>>>>
>>>>>>> M
>>>>>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>>>>>
>>>>>>>>> Dear all,
>>>>>>>>>
>>>>>>>>> Is there a way to visualize latex snippets on the fly using  
>>>>>>>>> auctex's latex-preview ?
>>>>>>>>>
>>>>>>>>> It would appear the only way to do this is select latex-mode  
>>>>>>>>> once I have finished completed my notes, it would be nice to  
>>>>>>>>> do this on the fly when I am drafting articles.
>>>>>>>>
>>>>>>>> Not with preview-latex, but Org has a similar mechanism built- 
>>>>>>>> in.
>>>>>>>>
>>>>>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>>>>>
>>>>>>>> - Carsten
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>

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

* Re: org mode and preview-latex
  2009-06-05  7:23                 ` Carsten Dominik
@ 2009-06-05  8:27                   ` Marvin Doyley
  2009-06-05  9:01                     ` Carsten Dominik
  0 siblings, 1 reply; 12+ messages in thread
From: Marvin Doyley @ 2009-06-05  8:27 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi Carsten,

The message displayed in the buffer is as follows:
"Creating image for buffer...done. Use `C-c C-C' to remove image"

Ha ha, I think I solved the problem. I have to switch to math mode in  
org i.e., $\alpha$ not  \alpha then C-c C-x C-l works likes a charm.

Thanks

cheers
M
On Jun 5, 2009, at 3:23 AM, Carsten Dominik wrote:

>
> On Jun 4, 2009, at 2:11 PM, Marvin Doyley wrote:
>
>> Sorry Carsten,
>>
>> What I meant to say was that org-export-with-Latex-fragment was set  
>> to t. The problem still continues :(
>>
>> Should I try a different value ?
>
> No.
>
> Can you see anything in the *Messages* buffer after you tried `C-c C- 
> x C-l'
> on a LaTeX fragment?
>
> If it says "failed to Failed to create png file from .....
>
> then try to go to this directory and to process that file by hand,
> first with latex file.tex and then with dvipng file.dvi.
> Does that work?
>
> - Carsten
>
>
>> thanks
>>
>> M
>> On Jun 4, 2009, at 5:44 AM, Carsten Dominik wrote:
>>
>>>
>>> On Jun 2, 2009, at 5:44 PM, Marvin Doyley wrote:
>>>
>>>> (setq org-export-with-LaTeX-fragments t)
>>>>
>>>> thanks
>>>> M
>>>
>>>
>>> Does that mean doing this did solve your problems, or does that  
>>> mean you already had it set to t?
>>> Please take the time to reply with enough information so that I  
>>> can figure out what you are talking about.
>>>
>>> - Carsten
>>>
>>>> On Jun 2, 2009, at 5:46 AM, Carsten Dominik wrote:
>>>>
>>>>> What is your value of
>>>>>
>>>>> org-export-with-LaTeX-fragments
>>>>>
>>>>> ??
>>>>>
>>>>> - Carsten
>>>>> On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:
>>>>>
>>>>>> dvipng is installed on my system, it is included with texlive  
>>>>>> 2008
>>>>>> I am curious to know if anybody got this work with carbon emacs  
>>>>>> on the mac.
>>>>>>
>>>>>> thanks
>>>>>> MMD
>>>>>> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>>>>>>
>>>>>>>
>>>>>>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>>>>>>
>>>>>>>> Hi Carsten,
>>>>>>>>
>>>>>>>> I tried this but for some reason it didn't work. More  
>>>>>>>> specifically, I was unable to visualize my latex snippet.  
>>>>>>>> Could this be a limitation of carbon emacs or maybe I didn't  
>>>>>>>> configured org properly ?
>>>>>>>
>>>>>>> Do you have dvipng installed?
>>>>>>>
>>>>>>> - Carsten
>>>>>>>
>>>>>>>>
>>>>>>>> thanks
>>>>>>>>
>>>>>>>> M
>>>>>>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>>>>>>
>>>>>>>>>> Dear all,
>>>>>>>>>>
>>>>>>>>>> Is there a way to visualize latex snippets on the fly using  
>>>>>>>>>> auctex's latex-preview ?
>>>>>>>>>>
>>>>>>>>>> It would appear the only way to do this is select latex- 
>>>>>>>>>> mode once I have finished completed my notes, it would be  
>>>>>>>>>> nice to do this on the fly when I am drafting articles.
>>>>>>>>>
>>>>>>>>> Not with preview-latex, but Org has a similar mechanism  
>>>>>>>>> built-in.
>>>>>>>>>
>>>>>>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>>>>>>
>>>>>>>>> - Carsten
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>

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

* Re: org mode and preview-latex
  2009-06-05  8:27                   ` Marvin Doyley
@ 2009-06-05  9:01                     ` Carsten Dominik
  0 siblings, 0 replies; 12+ messages in thread
From: Carsten Dominik @ 2009-06-05  9:01 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode


On Jun 5, 2009, at 10:27 AM, Marvin Doyley wrote:

> Hi Carsten,
>
> The message displayed in the buffer is as follows:
> "Creating image for buffer...done. Use `C-c C-C' to remove image"
>
> Ha ha, I think I solved the problem. I have to switch to math mode  
> in org i.e., $\alpha$ not  \alpha then C-c C-x C-l works likes a  
> charm.

Yes, this will only work for things that are identified as
quoted LaTeX, i.e. things in LaTeX math delimiters,
and also full environments like

\begin{tabular}
......
\end{tabular}


Is the documentation unclear about this?  What documentation
should be added where so that you would have seen it?

- Carsten

>
> Thanks
>
> cheers
> M
> On Jun 5, 2009, at 3:23 AM, Carsten Dominik wrote:
>
>>
>> On Jun 4, 2009, at 2:11 PM, Marvin Doyley wrote:
>>
>>> Sorry Carsten,
>>>
>>> What I meant to say was that org-export-with-Latex-fragment was  
>>> set to t. The problem still continues :(
>>>
>>> Should I try a different value ?
>>
>> No.
>>
>> Can you see anything in the *Messages* buffer after you tried `C-c  
>> C-x C-l'
>> on a LaTeX fragment?
>>
>> If it says "failed to Failed to create png file from .....
>>
>> then try to go to this directory and to process that file by hand,
>> first with latex file.tex and then with dvipng file.dvi.
>> Does that work?
>>
>> - Carsten
>>
>>
>>> thanks
>>>
>>> M
>>> On Jun 4, 2009, at 5:44 AM, Carsten Dominik wrote:
>>>
>>>>
>>>> On Jun 2, 2009, at 5:44 PM, Marvin Doyley wrote:
>>>>
>>>>> (setq org-export-with-LaTeX-fragments t)
>>>>>
>>>>> thanks
>>>>> M
>>>>
>>>>
>>>> Does that mean doing this did solve your problems, or does that  
>>>> mean you already had it set to t?
>>>> Please take the time to reply with enough information so that I  
>>>> can figure out what you are talking about.
>>>>
>>>> - Carsten
>>>>
>>>>> On Jun 2, 2009, at 5:46 AM, Carsten Dominik wrote:
>>>>>
>>>>>> What is your value of
>>>>>>
>>>>>> org-export-with-LaTeX-fragments
>>>>>>
>>>>>> ??
>>>>>>
>>>>>> - Carsten
>>>>>> On May 31, 2009, at 12:12 AM, Marvin Doyley wrote:
>>>>>>
>>>>>>> dvipng is installed on my system, it is included with texlive  
>>>>>>> 2008
>>>>>>> I am curious to know if anybody got this work with carbon  
>>>>>>> emacs on the mac.
>>>>>>>
>>>>>>> thanks
>>>>>>> MMD
>>>>>>> On May 30, 2009, at 9:17 AM, Carsten Dominik wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> On May 30, 2009, at 2:54 PM, Marvin Doyley wrote:
>>>>>>>>
>>>>>>>>> Hi Carsten,
>>>>>>>>>
>>>>>>>>> I tried this but for some reason it didn't work. More  
>>>>>>>>> specifically, I was unable to visualize my latex snippet.  
>>>>>>>>> Could this be a limitation of carbon emacs or maybe I didn't  
>>>>>>>>> configured org properly ?
>>>>>>>>
>>>>>>>> Do you have dvipng installed?
>>>>>>>>
>>>>>>>> - Carsten
>>>>>>>>
>>>>>>>>>
>>>>>>>>> thanks
>>>>>>>>>
>>>>>>>>> M
>>>>>>>>> On May 30, 2009, at 1:02 AM, Carsten Dominik wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On May 29, 2009, at 11:51 PM, Marvin Doyley wrote:
>>>>>>>>>>
>>>>>>>>>>> Dear all,
>>>>>>>>>>>
>>>>>>>>>>> Is there a way to visualize latex snippets on the fly  
>>>>>>>>>>> using auctex's latex-preview ?
>>>>>>>>>>>
>>>>>>>>>>> It would appear the only way to do this is select latex- 
>>>>>>>>>>> mode once I have finished completed my notes, it would be  
>>>>>>>>>>> nice to do this on the fly when I am drafting articles.
>>>>>>>>>>
>>>>>>>>>> Not with preview-latex, but Org has a similar mechanism  
>>>>>>>>>> built-in.
>>>>>>>>>>
>>>>>>>>>> http://orgmode.org/manual/Processing-LaTeX-fragments.html#Processing-LaTeX-fragments
>>>>>>>>>>
>>>>>>>>>> - Carsten
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>

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

end of thread, other threads:[~2009-06-05  9:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-29 21:51 org mode and preview-latex Marvin Doyley
2009-05-30  5:02 ` Carsten Dominik
2009-05-30 12:54   ` Marvin Doyley
2009-05-30 13:17     ` Carsten Dominik
2009-05-30 22:12       ` Marvin Doyley
2009-06-02  9:46         ` Carsten Dominik
2009-06-02 15:44           ` Marvin Doyley
2009-06-04  9:44             ` Carsten Dominik
2009-06-04 12:11               ` Marvin Doyley
2009-06-05  7:23                 ` Carsten Dominik
2009-06-05  8:27                   ` Marvin Doyley
2009-06-05  9:01                     ` Carsten Dominik

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