emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: begin_src latex -> pdf
Date: Fri, 27 Dec 2019 08:25:48 +0100	[thread overview]
Message-ID: <87eewqtekj.wl@c0t0d0s0.de> (raw)

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	other threads:[~2019-12-27  7:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eewqtekj.wl@c0t0d0s0.de \
    --to=mwe012008@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).