emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* latex to png not working
@ 2013-10-13 15:54 Vicente Vera
  2013-10-15  3:03 ` Vicente Vera
  0 siblings, 1 reply; 2+ messages in thread
From: Vicente Vera @ 2013-10-13 15:54 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello. I'm trying to export an Org file with some basic latex code (block
with "#+BEGIN_SRC latex :file block1.png" and "tex:dvipng" in "#+OPTIONS:")
but this shows up in the *Messages* buffer:

>org-babel-exp processing...
>executing Latex code block (block1)...
>Failed to create dvi file from
c:/DOCUME~1/User1/CONFIG~1/Temp/orgtex1376-zt.tex
>Code block evaluation complete.
>Formatting LaTeX using dvipng

The ODT document is created but, obviously, without the PNG formulas. It
happens too with inline LaTeX fragments:

>Creating LaTeX Image 1...
>Failed to create dvi file from
c:/DOCUME~1/User1/CONFIG~1/Temp/orgtex124_dQ.tex
>Embedding c:/Documents and Settings/User1/My
documents/testodt/ltxpng/testodt_0d00b93575360a27f804d102a03f4e2d4ee0f915.png
as Images/0001.png...
>OpenDocument export failed: Copying file: no such file or directory,
c:/Documents and Settings/User1/My
documents/testodt/ltxpng/testodt_0d00b93575360a27f804d102a03f4e2d4ee0f915.png,
c:/DOCUME~1/User1/CONFIG~1/Temp/odt-124Zro/Images/0001.png

Org's LaTeX preview doesn't work either. The dvi files are not being
created.

My setup includes:
- Windows XP SP3
- Emacs 24.3.1 with Org 8.2.1 (20131007 from ELPA) and AUCTeX 11.87.1 (from
ELPA); everything correctly (and cleanly) installed
- TeX Live 2013 (full install), on Windows' PATH

Standalone dvipng works ok (tried it with a small dvi file through Windows
command line) and latex too (through cmd, Org---latex & pdf export--- and
AUCTeX).

Thanks for reading.

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

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

* Re: latex to png not working
  2013-10-13 15:54 latex to png not working Vicente Vera
@ 2013-10-15  3:03 ` Vicente Vera
  0 siblings, 0 replies; 2+ messages in thread
From: Vicente Vera @ 2013-10-15  3:03 UTC (permalink / raw)
  To: emacs-orgmode

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

The problem went away once i changed the values for both TEMP and TMP
environment variables to "C:\Temp" (without quotation marks). This---i
think---has to do with long filenames (path to TEMP folder).

Great, great job by the way. Org makes so much things easier. Thank you
very much!


2013/10/13 Vicente Vera <vicentemvp@gmail.com>

> Hello. I'm trying to export an Org file with some basic latex code (block
> with "#+BEGIN_SRC latex :file block1.png" and "tex:dvipng" in "#+OPTIONS:")
> but this shows up in the *Messages* buffer:
>
> >org-babel-exp processing...
> >executing Latex code block (block1)...
> >Failed to create dvi file from
> c:/DOCUME~1/User1/CONFIG~1/Temp/orgtex1376-zt.tex
> >Code block evaluation complete.
> >Formatting LaTeX using dvipng
>
> The ODT document is created but, obviously, without the PNG formulas. It
> happens too with inline LaTeX fragments:
>
> >Creating LaTeX Image 1...
> >Failed to create dvi file from
> c:/DOCUME~1/User1/CONFIG~1/Temp/orgtex124_dQ.tex
> >Embedding c:/Documents and Settings/User1/My
> documents/testodt/ltxpng/testodt_0d00b93575360a27f804d102a03f4e2d4ee0f915.png
> as Images/0001.png...
> >OpenDocument export failed: Copying file: no such file or directory,
> c:/Documents and Settings/User1/My
> documents/testodt/ltxpng/testodt_0d00b93575360a27f804d102a03f4e2d4ee0f915.png,
> c:/DOCUME~1/User1/CONFIG~1/Temp/odt-124Zro/Images/0001.png
>
> Org's LaTeX preview doesn't work either. The dvi files are not being
> created.
>
> My setup includes:
> - Windows XP SP3
> - Emacs 24.3.1 with Org 8.2.1 (20131007 from ELPA) and AUCTeX 11.87.1
> (from ELPA); everything correctly (and cleanly) installed
> - TeX Live 2013 (full install), on Windows' PATH
>
> Standalone dvipng works ok (tried it with a small dvi file through Windows
> command line) and latex too (through cmd, Org---latex & pdf export--- and
> AUCTeX).
>
> Thanks for reading.
>

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

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

end of thread, other threads:[~2013-10-15  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-13 15:54 latex to png not working Vicente Vera
2013-10-15  3:03 ` Vicente Vera

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