emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: org-latex error message when image file not found
Date: Mon, 25 Mar 2013 18:47:25 -0500	[thread overview]
Message-ID: <CA+M2ft9U6TWkx1-aycKfPOwbYUjb==K5mD_-pa1BHMoM9yXt3A@mail.gmail.com> (raw)

When I go to export a file and the image path I've specified is wrong,
the minibuffer displays:

Process completed with errors: [package error]


The actual LaTeX error is:

LaTeX Warning: File `./path/to/file.png' not found on input line 180.
! Package pdftex.def Error: File `./path/to/file.png' not found.


While not unfathomably useful, I'd love it if this could be parsed
into something like "image/file not found" instead of "package error."
I connote "package error" with my efforts to switch from a
distro-specific (Arch Linux) installation of TexLive to the official
installation. I got a lot of "missing package" errors until I finally
had everything installed that Org wanted.

If I immediately saw a "missing file" error, it might save me having
to =C-x C-b *Org TAB RET= to the buffer followed by =M->= to the end
of the file to see what the error actually was. In a lot of cases, I'm
re-using stuff from other documents and I'd catch the mistake of using
the wrong relative path, fix it, and re-export.

I figure this to be one of more common LaTeX errors, so thought I'd
mention my experience/suggestion. Maybe hard to implement than I
realize!


Thanks,
John

             reply	other threads:[~2013-03-25 23:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25 23:47 John Hendy [this message]
2013-03-27 14:42 ` org-latex error message when image file not found Nicolas Goaziou

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='CA+M2ft9U6TWkx1-aycKfPOwbYUjb==K5mD_-pa1BHMoM9yXt3A@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --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).