emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dereje Tefera <tefera@ualberta.ca>
To: John Hendy <jw.hendy@gmail.com>
Cc: R Jain <rjain.ece@gmail.com>,
	"emacs-orgmode gnu.org" <emacs-orgmode@gnu.org>,
	John Kitchin <jkitchin@andrew.cmu.edu>
Subject: Re: org mode error "pdf wasn't produced"
Date: Wed, 14 Mar 2018 11:39:31 -0600	[thread overview]
Message-ID: <CAFn=5+EiQYRCsjbmKb8qAxTJu9p4fL7LAO4rZw9r9FjPF1ggrQ@mail.gmail.com> (raw)
In-Reply-To: <CA+M2ft-E3MjmmTterDP0TVUzd78_bW6QNhBVoXS6+Pi7w1GPSg@mail.gmail.com>

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

Dear John and R Jain,

I have done all required installation for the Latex and it worked for a
couple of times but it  then crashes. This is the error message I am
getting while trying to export to Latex PDF or Beamer. I really appreciate
your cooperation but I completely if you are busy.



Debugger entered--Lisp error: (error "File
\"c:/Users/deret/Desktop/examp3.pdf\" wasn’t produced.  See \"*Org PDF
LaTeX Output*\" for details")
  signal(error ("File \"c:/Users/deret/Desktop/examp3.pdf\" wasn’t
produced.  See \"*Org PDF LaTeX Output*\" for details"))
  error("File \"c:/Users/deret/Desktop/examp3.pdf\" wasn't produced.  See
\"*Org PDF LaTeX Output*\" for details")
  org-compile-file("examp3.tex" ("xelatex -shell-escape -interaction
nonstopmode -output-directory %o %f" "xelatex -shell-escape -interaction
nonstopmode -output-directory %o %f" "xelatex -shell-escape -interaction
nonstopmode -output-directory %o %f") "pdf" "See \"*Org PDF LaTeX Output*\"
for details" #<buffer *Org PDF LaTeX Output*> ((66 . "\"bibtex\"") (76 .
"\"pdflatex\"")))
  (let* ((compiler (or (let ((temp-buffer (generate-new-buffer " *temp*")))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ...
...) (and ... ...)))) "pdflatex")) (process (if (functionp
org-latex-pdf-process) org-latex-pdf-process (mapcar (function (lambda
(command) (replace-regexp-in-string "%\\(?:bib\\|la\\)tex\\>" ...
command))) org-latex-pdf-process))) (spec (list (cons 66
(shell-quote-argument org-latex-bib-compiler)) (cons 76
(shell-quote-argument compiler)))) (log-buf-name "*Org PDF LaTeX Output*")
(log-buf (and (not snippet) (get-buffer-create log-buf-name))) (outfile
(org-compile-file texfile process "pdf" (format "See %S for details"
log-buf-name) log-buf spec))) (if snippet nil (if org-latex-remove-logfiles
(progn (mapc (function delete-file) (directory-files (file-name-directory
outfile) t (concat (regexp-quote ...) "\\(?:\\.[0-9]+\\)?\\." (regexp-opt
org-latex-logfiles-extensions)) t)))) (let ((warnings
(org-latex--collect-warnings log-buf))) (message (concat "PDF file
produced" (cond ((eq warnings ...) " with errors.") (warnings (concat "
with warnings: " warnings)) (t ".")))))) outfile)
  org-latex-compile("examp3.tex")
  (closure ((outfile . "examp3.tex") (ext-plist) (body-only) (visible-only)
(subtreep) (async) t) (file) (org-latex-compile file))("examp3.tex")
  funcall((closure ((outfile . "examp3.tex") (ext-plist) (body-only)
(visible-only) (subtreep) (async) t) (file) (org-latex-compile file))
"examp3.tex")
  (and (functionp post-process) (funcall post-process file))
  (or (and (functionp post-process) (funcall post-process file)) file)
  (let ((output (org-export-as backend subtreep visible-only body-only
ext-plist))) (let ((temp-buffer (generate-new-buffer " *temp*")))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(insert output) (let ((coding-system-for-write encoding)) (write-file
file))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))) (if
(and (org-export--copy-to-kill-ring-p) (org-string-nw-p output)) (progn
(org-kill-new output))) (or (and (functionp post-process) (funcall
post-process file)) file))
  (if async (let ((with-temp-message "Initializing asynchronous export
process") (current-message)) (unwind-protect (progn (if with-temp-message
(progn (setq current-message (current-message)) (message "%s"
with-temp-message))) (let ((--copy-fun (org-export--generate-copy-script
...)) (--temp-file (make-temp-file "org-export-process")) (--coding
buffer-file-coding-system)) (let ((temp-file --temp-file) (temp-buffer
...)) (unwind-protect (prog1 ... ...) (and ... ...))) (let*
((process-connection-type nil) (--proc-buffer ...) (--process ...))
(org-export-add-to-stack (get-buffer --proc-buffer) nil --process) (let
(...) (set-process-sentinel --process ...))))) (and with-temp-message (if
current-message (message "%s" current-message) (message nil))))) (let
((output (org-export-as backend subtreep visible-only body-only
ext-plist))) (let ((temp-buffer (generate-new-buffer " *temp*")))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(insert output) (let (...) (write-file file))) (and (buffer-name
temp-buffer) (kill-buffer temp-buffer))))) (if (and
(org-export--copy-to-kill-ring-p) (org-string-nw-p output)) (progn
(org-kill-new output))) (or (and (functionp post-process) (funcall
post-process file)) file)))
  (let ((ext-plist (org-combine-plists (list (quote :output-file) file)
ext-plist)) (encoding (or org-export-coding-system
buffer-file-coding-system))) (if async (let ((with-temp-message
"Initializing asynchronous export process") (current-message))
(unwind-protect (progn (if with-temp-message (progn (setq current-message
...) (message "%s" with-temp-message))) (let ((--copy-fun ...) (--temp-file
...) (--coding buffer-file-coding-system)) (let (... ...) (unwind-protect
... ...)) (let* (... ... ...) (org-export-add-to-stack ... nil --process)
(let ... ...)))) (and with-temp-message (if current-message (message "%s"
current-message) (message nil))))) (let ((output (org-export-as backend
subtreep visible-only body-only ext-plist))) (let ((temp-buffer
(generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer
temp-buffer) (unwind-protect (progn (insert output) (let ... ...)) (and
(buffer-name temp-buffer) (kill-buffer temp-buffer))))) (if (and
(org-export--copy-to-kill-ring-p) (org-string-nw-p output)) (progn
(org-kill-new output))) (or (and (functionp post-process) (funcall
post-process file)) file))))
  (if (not (file-writable-p file)) (error "Output file not writable") (let
((ext-plist (org-combine-plists (list (quote :output-file) file)
ext-plist)) (encoding (or org-export-coding-system
buffer-file-coding-system))) (if async (let ((with-temp-message
"Initializing asynchronous export process") (current-message))
(unwind-protect (progn (if with-temp-message (progn ... ...)) (let (... ...
...) (let ... ...) (let* ... ... ...))) (and with-temp-message (if
current-message (message "%s" current-message) (message nil))))) (let
((output (org-export-as backend subtreep visible-only body-only
ext-plist))) (let ((temp-buffer (generate-new-buffer " *temp*")))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ...
...) (and ... ...)))) (if (and (org-export--copy-to-kill-ring-p)
(org-string-nw-p output)) (progn (org-kill-new output))) (or (and
(functionp post-process) (funcall post-process file)) file)))))
  org-export-to-file(latex "examp3.tex" nil nil nil nil nil (closure
((outfile . "examp3.tex") (ext-plist) (body-only) (visible-only) (subtreep)
(async) t) (file) (org-latex-compile file)))
  (let ((outfile (org-export-output-file-name ".tex" subtreep)))
(org-export-to-file (quote latex) outfile async subtreep visible-only
body-only ext-plist (function (lambda (file) (org-latex-compile file)))))
  org-latex-export-to-pdf(nil nil nil nil)
  (org-open-file (org-latex-export-to-pdf nil s v b))
  (if a (org-latex-export-to-pdf t s v b) (org-open-file
(org-latex-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file
(org-latex-export-to-pdf nil s v b))))(nil nil nil nil)
  funcall((lambda (a s v b) (if a (org-latex-export-to-pdf t s v b)
(org-open-file (org-latex-export-to-pdf nil s v b)))) nil nil nil nil)
  (save-excursion (if arg (progn (if (eq (marker-buffer
org-export-dispatch-last-position) (org-base-buffer (current-buffer)))
(goto-char org-export-dispatch-last-position) (move-marker
org-export-dispatch-last-position nil)))) (funcall action (and (memq (quote
async) optns) t) (and (memq (quote subtree) optns) t) (and (memq (quote
visible) optns) t) (and (memq (quote body) optns) t)))
  (cond ((eql action (quote template)) (org-export-insert-default-template
nil optns)) ((eql action (quote stack)) (org-export-stack)) ((eql action
(quote publish-current-file)) (org-publish-current-file (memq (quote force)
optns) (memq (quote async) optns))) ((eql action (quote
publish-current-project)) (org-publish-current-project (memq (quote force)
optns) (memq (quote async) optns))) ((eql action (quote
publish-choose-project)) (org-publish (assoc (completing-read "Publish
project: " org-publish-project-alist nil t) org-publish-project-alist)
(memq (quote force) optns) (memq (quote async) optns))) ((eql action (quote
publish-all)) (org-publish-all (memq (quote force) optns) (memq (quote
async) optns))) (t (save-excursion (if arg (progn (if (eq (marker-buffer
org-export-dispatch-last-position) (org-base-buffer ...)) (goto-char
org-export-dispatch-last-position) (move-marker
org-export-dispatch-last-position nil)))) (funcall action (and (memq (quote
async) optns) t) (and (memq (quote subtree) optns) t) (and (memq (quote
visible) optns) t) (and (memq (quote body) optns) t)))))
  (let* ((input (cond ((equal arg (quote (16))) (quote (stack))) ((and arg
org-export-dispatch-last-action)) (t (let ((wconfig ...)) (unwind-protect
(progn ...) (set-window-configuration wconfig)))))) (action (car input))
(optns (cdr input))) (if (memq (quote subtree) optns) nil (move-marker
org-export-dispatch-last-position nil)) (cond ((eql action (quote
template)) (org-export-insert-default-template nil optns)) ((eql action
(quote stack)) (org-export-stack)) ((eql action (quote
publish-current-file)) (org-publish-current-file (memq (quote force) optns)
(memq (quote async) optns))) ((eql action (quote publish-current-project))
(org-publish-current-project (memq (quote force) optns) (memq (quote async)
optns))) ((eql action (quote publish-choose-project)) (org-publish (assoc
(completing-read "Publish project: " org-publish-project-alist nil t)
org-publish-project-alist) (memq (quote force) optns) (memq (quote async)
optns))) ((eql action (quote publish-all)) (org-publish-all (memq (quote
force) optns) (memq (quote async) optns))) (t (save-excursion (if arg
(progn (if (eq ... ...) (goto-char org-export-dispatch-last-position)
(move-marker org-export-dispatch-last-position nil)))) (funcall action (and
(memq (quote async) optns) t) (and (memq (quote subtree) optns) t) (and
(memq (quote visible) optns) t) (and (memq (quote body) optns) t))))))
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)




Regards

Dereje



On Tue, Mar 13, 2018 at 7:28 PM, John Hendy <jw.hendy@gmail.com> wrote:

> Dejere,
>
>
> Org-mode is not able to find your latex installation. That's the
> problem, just as it says: it's trying to run the compilation command,
> `pdflatex` and it can find no such thing.
>
> Either it's not installed, or it's not in your path. The more details
> you can provide, the better. For starters 1) what latex variant is
> installed and 2) is it in your path (and how do you know)?
>
>
> Best regards,
> John
>
> On Tue, Mar 13, 2018 at 7:29 PM, Dereje Tefera <tefera@ualberta.ca> wrote:
> >
> > Hi Prof. Kitchin and others,
> >
> > I am using Emacs-org-mode on a windows machine and launch the program
> from the desktop shortcut.
> >
> >
> >
> >
> > Regards
> >
> > Dereje
> >
> >
> >
> > On Tue, Mar 13, 2018 at 6:05 PM, John Kitchin <jkitchin@andrew.cmu.edu>
> wrote:
> >>
> >> That means emacs is not finding pdflatex on your path.
> >>
> >> A little more information might help.
> >>
> >> 1. In a terminal, if you type:
> >>
> >> > which pdflatex
> >>
> >> to you get anything?
> >>
> >> 2. How do you launch emacs? If you are launching it from some icon, you
> might not be getting the same path environment as from a shell.
> >>
> >> John
> >>
> >> -----------------------------------
> >> Professor John Kitchin
> >> Doherty Hall A207F
> >> Department of Chemical Engineering
> >> Carnegie Mellon University
> >> Pittsburgh, PA 15213
> >> 412-268-7803
> >> @johnkitchin
> >> http://kitchingroup.cheme.cmu.edu
> >>
> >>
> >> On Tue, Mar 13, 2018 at 4:37 PM, Dereje Tefera <tefera@ualberta.ca>
> wrote:
> >>>
> >>> Hi Everyone,
> >>>
> >>> thank you very much for the response.
> >>>
> >>> Rishabh, yes i have check the link you mentioned.
> >>>
> >>> the error  says "'pdflatex"' is not recognized as an internal or
> external command,
> >>> operable program or batch file." but i have that in my init.el file
> configured.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Regards
> >>>
> >>> Dereje
> >>>
> >>>
> >>>
> >>> On Tue, Mar 13, 2018 at 6:28 AM, R Jain <rjain.ece@gmail.com> wrote:
> >>>>
> >>>> Hi Dereje,
> >>>>
> >>>> Have you already looked at (8) from https://orgmode.org/worg/org-
> tutorials/org-latex-export.html?
> >>>>
> >>>> --Rishabh
> >>>>
> >>>> On Mar 12 2018, at 5:40 pm, Dereje Tefera <tefera@ualberta.ca> wrote:
> >>>>>
> >>>>> Dear good team of Org-mode,
> >>>>>
> >>>>> I am using org-mode in the Emacs, but I have a problem exporting to
> Latex,  PDF.
> >>>>>
> >>>>> "I always have this message that says, PDF was not produced, when i
> try to export to latex pdf.
> >>>>>
> >>>>>
> >>>>> I can export to HTML or tet latex but not to pdf.
> >>>>>
> >>>>>
> >>>>> Any help would be highly appreciated.
> >>>>>
> >>>>>
> >>>>> Thank you for your time.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Regards
> >>>>>
> >>>>> Dereje
> >>>>>
> >>>>>
> >>>
> >>
> >
>

[-- Attachment #2: Type: text/html, Size: 16859 bytes --]

  parent reply	other threads:[~2018-03-14 17:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-12 21:40 org mode error "pdf wasn't produced" Dereje Tefera
2018-03-13 12:28 ` Eric S Fraga
2018-03-13 12:28 ` R Jain
2018-03-13 23:37   ` Dereje Tefera
2018-03-14  0:05     ` John Kitchin
2018-03-14  0:29       ` Dereje Tefera
2018-03-14  1:28         ` John Hendy
2018-03-14  1:29           ` John Hendy
2018-03-14 17:39           ` Dereje Tefera [this message]
2018-03-14 18:28             ` Eric S Fraga
2018-03-14 19:24               ` Dereje Tefera
2018-03-14 19:33                 ` John Kitchin
2018-03-15 15:06                 ` R Jain
2018-03-15 16:09                   ` John Hendy
2018-03-15 16:13                     ` Dereje Tefera

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='CAFn=5+EiQYRCsjbmKb8qAxTJu9p4fL7LAO4rZw9r9FjPF1ggrQ@mail.gmail.com' \
    --to=tefera@ualberta.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    --cc=jw.hendy@gmail.com \
    --cc=rjain.ece@gmail.com \
    /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).