* begin_src latex -> pdf
@ 2019-12-27 7:25 Michael Welle
0 siblings, 0 replies; only message in thread
From: Michael Welle @ 2019-12-27 7:25 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-27 7:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-27 7:25 begin_src latex -> pdf Michael Welle
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).