From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: begin_src latex -> pdf Date: Fri, 27 Dec 2019 08:25:48 +0100 Message-ID: <87eewqtekj.wl@c0t0d0s0.de> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34252) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikk0S-0003wE-2v for emacs-orgmode@gnu.org; Fri, 27 Dec 2019 02:25:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikk0Q-0003IK-VI for emacs-orgmode@gnu.org; Fri, 27 Dec 2019 02:25:55 -0500 Received: from mout.gmx.net ([212.227.17.22]:46673) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ikk0Q-0003Ht-IO for emacs-orgmode@gnu.org; Fri, 27 Dec 2019 02:25:54 -0500 Received: from Stella.c0t0d0s0.de ([2.247.252.79]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MCbIx-1itmXs2tgh-009gay for ; Fri, 27 Dec 2019 08:25:51 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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=A2t 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.=20 Regards hmw