emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

begin_src latex -> pdf


From: Michael Welle
Subject: begin_src latex -> pdf
Date: Fri, 27 Dec 2019 08:25:48 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/26.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Hello,

this works as expected:

#+begin_src latex  :file foo.png :exports results :results file raw
Hello, crude world
#+end_src

foo.png is created in the org file's directory. Shouldn't the
following do the same, except with a pdf file?

#+begin_src latex  :file foo.pdf :exports results :results file raw
Hello, crude world
#+end_src

When cc'ing that block I got this message:

Evaluate this latex code block on your system? (y or n) y
executing Latex code block...
Processing LaTeX file /tmp/tmp_welle/latex-sCpRjQ.tex...
org-compile-file: File "/tmp/tmp_welle/latex-sCpRjQ.pdf" wasn’t produced.  See 
"*Org PDF LaTeX Output*" for details

The mentioned log buffer doesn't indicate an error.

In the org file's directory I find

 -rw-rw----  1 welle welle      8 Dec 27 08:14 latex-sCpRjQ.aux
 -rw-rw----  1 welle welle  34823 Dec 27 08:14 latex-sCpRjQ.log
 -rw-rw----  1 welle welle  12433 Dec 27 08:14 latex-sCpRjQ.pdf

The pdf file is correct.

I /tmp/tmp_welle I find

 -rw-------  1 welle welle      907 Dec 27 08:14 latex-sCpRjQ.tex

It seems like parts of org think the compilation is done in the tmp
dir, while the cwd (where compilation results are stored) is the org
file's dir. 


Regards
hmw



reply via email to

[Prev in Thread] Current Thread [Next in Thread]