emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org mode error "pdf wasn't produced"


From: Dereje Tefera
Subject: Re: [O] org mode error "pdf wasn't produced"
Date: Wed, 14 Mar 2018 11:39:31 -0600

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 <address@hidden> 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 <address@hidden> 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 <address@hidden> 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 <address@hidden> 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 <address@hidden> 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 <address@hidden> 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
>>>>>
>>>>>
>>>
>>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]