emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: buckbrody@gmail.com
Cc: nicholas.dokos@hp.com, emacs-orgmode <emacs-orgmode@gnu.org>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: error when exporting to pdf
Date: Fri, 23 Apr 2010 11:00:36 -0400	[thread overview]
Message-ID: <8819.1272034836@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Buck Brody <buckbrody@gmail.com> of "Thu, 22 Apr 2010 12:01:12 EDT." <z2k8bd4668a1004220901hc2a3cb34g54bb26a09a0e874b@mail.gmail.com>

Buck Brody <buckbrody@gmail.com> wrote:


> I'm not sure how to run pdflatex.  I didn't mention earlier, but I run emacs
> on Windows.
> 

How to run pdflatext is extremely dependent on what TeX system you have
installed. Also, how to run command-line programs differs if e.g. you have
cygwin installed. These are questions that only you can answer. In particular,
you *have* installed a TeX system on your machine, right?

In the meantime, how about sending the .tex file itself to the list? If
we can process it to pdf, then that indicts your TeX setup. If not, then
your orgmode setup might be at fault. The file itself should be in the
same directory that your .org file is (I think).

BTW, the reason that the backtrace is not useful in this case is that we know
exactly why emacs got an error: it tried to call an external program to do the
processing. IOW, seeing into the emacs processing (which is what the backtrace
shows) is not going to be useful: we need to see inside the tex->pdf
processing instead.

HTH,
Nick


> > Hi Buck,
> >
> > In this process, Org-mode will produce a .tex file.  Try running pdflatex
> > on the file "by hand", this will give you (and, if still necessary, us),
> > more information on what is going wrong.
> >
> > - Carsten
> >
> >
> > On Apr 21, 2010, at 2:22 AM, Buck Brody wrote:
> >
> >  I am trying to export to PDF.  I typed C-c C-e d.  Which should be,
> >> "export as LaTeX and process to PDF and open PDF file".  I received a
> >> message that said "PDF file was not produced".  The org file I used was the
> >> one in the example http://orgmode.org/worg/org-tutorials/org-beamer.php.
> >>  Version information and backtrace are below.  Thanks for your help.
> >>
> >> Buck
> >>
> >> Versions:
> >>
> >> Emacs 22.3.1
> >>
> >> Org-Mode 6.34c
> >>
> >> Backtrace:
> >> Debugger entered--Lisp error: (error "PDF file was not produced")
> >>  signal(error ("PDF file was not produced"))
> >>  error("PDF file was not produced")
> >>  (if (not (file-exists-p pdffile)) (error "PDF file was not produced")
> >> (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles
> >> (dolist ... ... ...)) (message "Exporting to PDF...done") pdffile)
> >>  (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds
> >> org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd)
> >> (with-current-buffer outbuf (erase-buffer)) (message "Processing LaTeX
> >> file...") (if (and cmds ...) (funcall cmds file) (while cmds ... ... ...
> >> ...)) (message "Processing LaTeX file...done") (if (not ...) (error "PDF
> >> file was not produced") (set-window-configuration wconfig) (when
> >> org-export-pdf-remove-logfiles ...) (message "Exporting to PDF...done")
> >> pdffile))
> >>  org-export-as-pdf(nil)
> >>  (let ((pdffile ...)) (if pdffile (org-open-file pdffile) (error "PDF file
> >> was not produced")))
> >>  org-export-as-pdf-and-open(nil)
> >>  call-interactively(org-export-as-pdf-and-open)
> >>  (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...)
> >> (set-process-sentinel p ...) (message "Background process \"%s\": started"
> >> p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 ass)) (when
> >> (and bpos ...) (let ... ... ... ... ...)))
> >>  (let* ((bg ...) subtree-p (help "[t]   insert the export option
> >> template\n[v]   limit export to visible part of outline tree\n[1]   only
> >> export the current subtree\n[SPC] publish enclosing subtree (with
> >> LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a] export as ASCII     [A] to
> >> temporary buffer\n\n[h] export as HTML      [H] to temporary buffer   [R]
> >> export region\n[b] export as HTML and open in browser\n\n[l] export as LaTeX
> >>     [L] to temporary buffer\n[p] export as LaTeX and process to PDF
> >>    [d] ... and open PDF file\n\n[D] export as DocBook   [V] export as
> >> DocBook, process to PDF, and open\n\n[m] export as Freemind mind map\n[x]
> >> export as XOXO\n[g] export using Wes Hardaker's generic exporter\n\n[i]
> >> export current file as iCalendar file\n[I] export all agenda files as
> >> iCalendar files   [c] ...as one combined file\n\n[F] publish current file
> >>        [P] publish current project\n[X] publish a project...          [E]
> >> publish every projects") (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos)
> >> (save-excursion (save-window-excursion ... ... ... ... ... ... ...)) (and
> >> bpos (goto-char bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...)
> >> (error "No command associated with key %c" r1)) (if (and bg ... ... ...)
> >> (let ... ... ...) (if subtree-p ...) (call-interactively ...) (when ...
> >> ...)))
> >>  org-export(nil)
> >>  call-interactively(org-export)
> >> _______________________________________________
> >> Emacs-orgmode mailing list
> >> Please use `Reply All' to send replies to the list.
> >> Emacs-orgmode@gnu.org
> >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >>
> >
> > - Carsten
> >
> >
> >
> >
> 
> --001636c931b27821d70484d56b11
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Carsten,<div><br></div><div>I&#39;m not sure how to run pdflatex. =A0I didn=
> &#39;t mention earlier, but I run emacs on Windows.</div><div><br></div><di=
> v>Buck<br><br><div class=3D"gmail_quote">On Wed, Apr 21, 2010 at 6:38 AM, C=
> arsten Dominik <span dir=3D"ltr">&lt;<a href=3D"mailto:carsten.dominik@gmai=
> l.com">carsten.dominik@gmail.com</a>&gt;</span> wrote:<br>
> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
> x #ccc solid;padding-left:1ex;">Hi Buck,<br>
> <br>
> In this process, Org-mode will produce a .tex file. =A0Try running pdflatex=
>  on the file &quot;by hand&quot;, this will give you (and, if still necessa=
> ry, us), more information on what is going wrong.<br>
> <br>
> - Carsten<div><div></div><div class=3D"h5"><br>
> <br>
> On Apr 21, 2010, at 2:22 AM, Buck Brody wrote:<br>
> <br>
> </div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
> rder-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class=3D"h5=
> ">
> I am trying to export to PDF. =A0I typed C-c C-e d. =A0Which should be, &qu=
> ot;export as LaTeX and process to PDF and open PDF file&quot;. =A0I receive=
> d a message that said &quot;PDF file was not produced&quot;. =A0The org fil=
> e I used was the one in the example <a href=3D"http://orgmode.org/worg/org-=
> tutorials/org-beamer.php" target=3D"_blank">http://orgmode.org/worg/org-tut=
> orials/org-beamer.php</a>. =A0Version information and backtrace are below. =
> =A0Thanks for your help.<br>
> 
> <br>
> Buck<br>
> <br>
> Versions:<br>
> <br>
> Emacs 22.3.1<br>
> <br>
> Org-Mode 6.34c<br>
> <br>
> Backtrace:<br>
> Debugger entered--Lisp error: (error &quot;PDF file was not produced&quot;)=
> <br>
>  =A0signal(error (&quot;PDF file was not produced&quot;))<br>
>  =A0error(&quot;PDF file was not produced&quot;)<br>
>  =A0(if (not (file-exists-p pdffile)) (error &quot;PDF file was not produce=
> d&quot;) (set-window-configuration wconfig) (when org-export-pdf-remove-log=
> files (dolist ... ... ...)) (message &quot;Exporting to PDF...done&quot;) p=
> dffile)<br>
> 
>  =A0(let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cm=
> ds org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd) (with-current=
> -buffer outbuf (erase-buffer)) (message &quot;Processing LaTeX file...&quot=
> ;) (if (and cmds ...) (funcall cmds file) (while cmds ... ... ... ...)) (me=
> ssage &quot;Processing LaTeX file...done&quot;) (if (not ...) (error &quot;=
> PDF file was not produced&quot;) (set-window-configuration wconfig) (when o=
> rg-export-pdf-remove-logfiles ...) (message &quot;Exporting to PDF...done&q=
> uot;) pdffile))<br>
> 
>  =A0org-export-as-pdf(nil)<br>
>  =A0(let ((pdffile ...)) (if pdffile (org-open-file pdffile) (error &quot;P=
> DF file was not produced&quot;)))<br>
>  =A0org-export-as-pdf-and-open(nil)<br>
>  =A0call-interactively(org-export-as-pdf-and-open)<br>
>  =A0(if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-se=
> ntinel p ...) (message &quot;Background process \&quot;%s\&quot;: started&q=
> uot; p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 ass)) (w=
> hen (and bpos ...) (let ... ... ... ... ...)))<br>
> 
>  =A0(let* ((bg ...) subtree-p (help &quot;[t] =A0 insert the export option =
> template\n[v] =A0 limit export to visible part of outline tree\n[1] =A0 onl=
> y export the current subtree\n[SPC] publish enclosing subtree (with LaTeX_C=
> LASS or EXPORT_FILE_NAME prop)\n\n[a] export as ASCII =A0 =A0 [A] to tempor=
> ary buffer\n\n[h] export as HTML =A0 =A0 =A0[H] to temporary buffer =A0 [R]=
>  export region\n[b] export as HTML and open in browser\n\n[l] export as LaT=
> eX =A0 =A0 [L] to temporary buffer\n[p] export as LaTeX and process to PDF =
> =A0 =A0 =A0 =A0 =A0 =A0[d] ... and open PDF file\n\n[D] export as DocBook =
> =A0 [V] export as DocBook, process to PDF, and open\n\n[m] export as Freemi=
> nd mind map\n[x] export as XOXO\n[g] export using Wes Hardaker&#39;s generi=
> c exporter\n\n[i] export current file as iCalendar file\n[I] export all age=
> nda files as iCalendar files =A0 [c] ...as one combined file\n\n[F] publish=
>  current file =A0 =A0 =A0 =A0 =A0[P] publish current project\n[X] publish a=
>  project... =A0 =A0 =A0 =A0 =A0[E] publish every projects&quot;) (cmds ...)=
>  r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursion (save-window-excursi=
> on ... ... ... ... ... ... ...)) (and bpos (goto-char bpos)) (setq r2 (if .=
> .. ... r1)) (unless (setq ass ...) (error &quot;No command associated with =
> key %c&quot; r1)) (if (and bg ... ... ...) (let ... ... ...) (if subtree-p =
> ...) (call-interactively ...) (when ... ...)))<br>
> 
>  =A0org-export(nil)<br>
>  =A0call-interactively(org-export)<br></div></div>
> _______________________________________________<br>
> Emacs-orgmode mailing list<br>
> Please use `Reply All&#39; to send replies to the list.<br>
> <a href=3D"mailto:Emacs-orgmode@gnu.org" target=3D"_blank">Emacs-orgmode@gn=
> u.org</a><br>
> <a href=3D"http://lists.gnu.org/mailman/listinfo/emacs-orgmode" target=3D"_=
> blank">http://lists.gnu.org/mailman/listinfo/emacs-orgmode</a><br>
> </blockquote>
> <br>
> - Carsten<br>
> <br>
> <br>
> <br>
> </blockquote></div><br></div>
> 
> --001636c931b27821d70484d56b11--
> 
> 
> 
> --===============0898408516==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> --===============0898408516==--
> 
> 

  parent reply	other threads:[~2010-04-23 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21  0:22 error when exporting to pdf Buck Brody
2010-04-21 10:38 ` Carsten Dominik
2010-04-22 16:01   ` Buck Brody
2010-04-22 21:06     ` Sebastian Rose
2010-04-23 15:00     ` Nick Dokos [this message]
2010-04-23 16:12       ` Buck Brody
2010-04-23 17:51         ` Mark Elston
2010-04-23 19:16         ` Nick Dokos

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=8819.1272034836@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=buckbrody@gmail.com \
    --cc=carsten.dominik@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).