emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Cc: Loris Bennett <loris.bennett@fu-berlin.de>
Subject: Re: Generated graphic not included in exported TeX/PDF
Date: Sat, 09 Jan 2021 14:51:54 +0000	[thread overview]
Message-ID: <8735za88ol.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87v9c9rwd4.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Thu, 07 Jan 2021 09:20:55 +0100")

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

Loris (& the list),

did you get this sorted?  It seems that I am running into the same
problem now.

What seems to be happening is that the LaTeX file is created in
/tmp/babel-XXXXXX/latex-YYYYYY.tex but the log, aux, etc. files are
being created in the current directory (where the file with the LaTeX
src block is).  Although the PDF file is created properly, it is not
where org would expect it to be (maybe)?

The LaTeX file in /tmp/ compiles perfectly fine when I compile it
manually.  Attached is /tmp/ecm.org and here is a screenshot of my /tmp
directory:


[-- Attachment #2: Type: image/png, Size: 54795 bytes --]

[-- Attachment #3: Type: text/plain, Size: 316 bytes --]


Note that latex-iLJhcd.tex is in /tmp/babel-falBv7/ but the
{log,pdf,out} files are in /tmp/.

The backtrace on error is also attached.

This has been done with org from git updated a few minutes ago.  Emacs
from a few days ago.

Thank you,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-179-g5b5c42

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: ecm.org --]
[-- Type: text/x-org, Size: 534 bytes --]

title: ECM
* black box model
This is a graphical representation of \(y=f(x)\):

#+header: :exports results
#+header: :results raw
#+header: :file blackboxmodel.png
#+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 400
#+header: :fit yes
#+begin_src latex
\begin{tikzpicture}[node distance=2cm, shorten >=2pt, shorten <=2pt]
  \node (x) {$x$};
  \node[fill=yellow!10!black,draw=white] (box) [right of=x] {Model} edge [<-] (x);
  \node (f) [right of=box] {$f(x)$} edge [<-] (box);
\end{tikzpicture}
#+end_src

[-- Attachment #5: trace.txt --]
[-- Type: text/plain, Size: 1702 bytes --]

Debugger entered--Lisp error: (error "File \"/tmp/babel-falBv7/latex-iLJhcd.pdf\" wasn’t p...")
  signal(error ("File \"/tmp/babel-falBv7/latex-iLJhcd.pdf\" wasn’t p..."))
  error("File \"/tmp/babel-falBv7/latex-iLJhcd.pdf\" wasn't p...")
  org-compile-file("/tmp/babel-falBv7/latex-iLJhcd.tex" ("pdflatex %f" "bibtex %b" "pdflatex %f" "pdflatex %f") "pdf" "See \"*Org PDF LaTeX Output*\" for details" #<buffer *Org PDF LaTeX Output*> ((66 . "bibtex") (76 . "pdflatex")))
  org-latex-compile("/tmp/babel-falBv7/latex-iLJhcd.tex")
  org-babel-latex-tex-to-pdf("/tmp/babel-falBv7/latex-iLJhcd.tex")
  org-babel-execute:latex("\\begin{tikzpicture}[node distance=2cm, shorten >=2..." ((:colname-names) (:rowname-names) (:result-params "replace" "raw") (:result-type . value) (:results . "replace raw") (:exports . "results") (:session . "none") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no") (:fit . "yes") (:imagemagick . "yes") (:iminoptions . "-density 600") (:imoutoptions . "-geometry 400") (:file . "blackboxmodel.png")))
  org-babel-execute-src-block(nil ("latex" "\\begin{tikzpicture}[node distance=2cm, shorten >=2..." ((:colname-names) (:rowname-names) (:result-params "raw" "replace") (:result-type . value) (:results . "raw replace") (:exports . "results") (:file . "blackboxmodel.png") (:imoutoptions . "-geometry 400") (:iminoptions . "-density 600") (:imagemagick . "yes") (:fit . "yes") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none")) "" nil 265 "(ref:%s)"))
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
  command-execute(org-ctrl-c-ctrl-c)

  parent reply	other threads:[~2021-01-09 15:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07  8:20 Generated graphic not included in exported TeX/PDF Loris Bennett
2021-01-07  8:29 ` Loris Bennett
2021-01-07  9:12   ` Loris Bennett
2021-01-07 10:03     ` Loris Bennett
2021-01-07 10:09 ` Eric S Fraga
2021-01-09 14:51 ` Eric S Fraga [this message]
2021-01-10 14:06   ` Eric S Fraga
2021-01-11  6:56     ` Loris Bennett
2021-01-11  9:47       ` Eric S Fraga
2021-01-11 11:49         ` Loris Bennett
2021-01-11 12:41           ` Eric S Fraga
2021-01-11 13:08             ` Loris Bennett
2021-01-11 13:31               ` Eric S Fraga
2021-01-11 14:03                 ` Loris Bennett
2021-01-11 14:41                   ` Eric S Fraga
2021-01-11 15:36                     ` Loris Bennett
2021-01-11 15:54                       ` Eric S Fraga

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=8735za88ol.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=loris.bennett@fu-berlin.de \
    /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).