From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mueen Nawaz Subject: Can't export to LaTeX/PDF. Date: Sun, 30 Aug 2009 15:08:13 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mhqxi-0003yS-IK for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:25:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mhqxd-0003wQ-M3 for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:25:17 -0400 Received: from [199.232.76.173] (port=60515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhqxd-0003wN-Ia for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:25:13 -0400 Received: from mx20.gnu.org ([199.232.41.8]:30231) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mhqxd-00018n-1q for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:25:13 -0400 Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mhqxa-0005vo-6A for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:25:10 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MhqxU-0000Fs-16 for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 22:25:04 +0200 Received: from c-98-222-50-89.hsd1.il.comcast.net ([98.222.50.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Aug 2009 22:25:04 +0200 Received: from mueen by c-98-222-50-89.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Aug 2009 22:25:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Apologies if this has been addressed earlier. I can't seem to export to PDF/LaTeX. When I try to do so, I get the following error: Loading org-latex...done Exporting to LaTeX... Loading latexenc...done Loading tex-mode...done org-export-as-latex: Wrong type argument: integer-or-marker-p, nil The file is a simple one: ============== #+TITLE: Sunday schedule #+OPTIONS: toc:nil A few points: - The lab be closed on both Sundays of the Thanksgiving Break (before and after). Hence, I've not put any OH there. - Both of you will need to get the key to room. Obtain one. - This schedule assumes that there will be a session every week. Perhaps stuff like exams will get in the way. It will be updated as needed. ================= I'm using 6.29c, and Emacs 22.3.1. I know it worked with 6.27a... Here's a backtrace (apologies for the line wraps): Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) goto-char(nil) (if (re-search-forward "^\\*+ " end t) (goto-char (match-beginning 0)) (goto-char end)) (let* ((pt ...) (end ...)) (prog1 (org-export-latex-content ...) (org-unmodified ...))) (save-excursion (goto-char (or beg ...)) (let* (... ...) (prog1 ... ...))) org-export-latex-first-lines((:latex-image-options "width=10em" :exclude-tags ("noexport") :select-tags ("export") :email "mueen@nawaz.org" :author "" :auto-postamble t :auto-preamble t :postamble nil :preamble nil :publishing-directory nil :timestamp nil :expand-quoted-html t :html-table-tag "" :xml-declaration (("html" . "") ("php" . "\"; ?>")) :html-extension "html" :inline-images maybe :convert-org-links t :agenda-style "" :style-extra "" :style "" :style-include-scripts t :style-include-default t :table-auto-headline t :tables t :time-stamp-file t ...) nil nil) (if skip "" (org-export-latex-first-lines opt-plist (if subtree-p ... rbeg) (if region-p rend))) (let* ((wcf ...) (opt-plist org-export-latex-options-plist) (region-p ...) (rbeg ...) (rend ...) (subtree-p ...) (opt-plist ...) (org-export-latex-options-plist opt-plist) (title ...) (filename ...) (filename ...) (buffer ...) (odd org-odd-levels-only) (header ...) (skip ...) (text ...) (org-export-preprocess-hook ...) (first-lines ...) (coding-system ...) (coding-system-for-write ...) (save-buffer-coding-system ...) (region ...) (string-for-export ...)) (set-buffer buffer) (erase-buffer) (org-install-letbind) (and (fboundp ...) (set-buffer-file-coding-system coding-system-for-write)) (unless (or ... body-only) (insert header)) (when (and text ...) (insert ... "\n\n")) (unless skip (insert first-lines)) (org-export-latex-global (with-temp-buffer ... ... ...)) (unless body-only (insert "\n\\end{document}")) (goto-char (point-min)) (when (re-search-forward "\\[TABLE-OF-CONTENTS\\]" nil t) (goto-char ...) (while ... ...) (goto-char ...) (and ... ...)) (or to-buffer (save-buffer)) (goto-char (point-min)) (or (org-export-push-to-kill-ring "LaTeX") (message "Exporting to LaTeX...done")) (prog1 (if ... ... ...) (set-window-configuration wcf))) org-export-as-latex(nil nil nil nil nil nil) (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd) (with-current-buffer outbuf (erase-buffer)) (and (file-exists-p pdffile) (delete-file pdffile)) (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) call-interactively(org-export-as-pdf) (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel p ...) (message "Background process \"%s\": started" p)) (call-interactively (nth 1 ass))) (let* ((bg ...) (help "[t] insert the export option template\n[v] limit export to visible part of outline tree\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\n[d] export as LaTeX, process to PDF, and open the resulting PDF document\n\n[D] export as DocBook\n[V] export as DocBook, process to PDF, and open the resulting PDF document\n\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\n[c] export agenda files into combined iCalendar file\n\n[F] publish current file [P] publish current project\n[X] publish a project... [E] publish every projects") (cmds ...) r1 r2 ass) (save-excursion (save-window-excursion ... ... ... ... ...)) (setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No command associated with key %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (call-interactively ...))) org-export(nil) call-interactively(org-export) recursive-edit() byte-code("à @Ã=Â!ÃÃÃ\"ÂÃÃ!Â?A@)¢Ã=Â!ÃÃÃ\"Âà ZyÂ|Â)ÃcÂebÂÃÃà \"Âà ÂÃÃ!ÂÃÃÃÃ!ÂÂà Â+ÃÂ" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4) debug(error (wrong-type-argument integer-or-marker-p nil)) goto-char(nil) (if (re-search-forward "^\\*+ " end t) (goto-char (match-beginning 0)) (goto-char end)) (let* ((pt ...) (end ...)) (prog1 (org-export-latex-content ...) (org-unmodified ...))) (save-excursion (goto-char (or beg ...)) (let* (... ...) (prog1 ... ...))) org-export-latex-first-lines((:latex-image-options "width=10em" :exclude-tags ("noexport") :select-tags ("export") :email "mueen@nawaz.org" :author "" :auto-postamble t :auto-preamble t :postamble nil :preamble nil :publishing-directory nil :timestamp nil :expand-quoted-html t :html-table-tag "
" :xml-declaration (("html" . "") ("php" . "\"; ?>")) :html-extension "html" :inline-images maybe :convert-org-links t :agenda-style "" :style-extra "" :style "" :style-include-scripts t :style-include-default t :table-auto-headline t :tables t :time-stamp-file t ...) nil nil) (if skip "" (org-export-latex-first-lines opt-plist (if subtree-p ... rbeg) (if region-p rend))) (let* ((wcf ...) (opt-plist org-export-latex-options-plist) (region-p ...) (rbeg ...) (rend ...) (subtree-p ...) (opt-plist ...) (org-export-latex-options-plist opt-plist) (title ...) (filename ...) (filename ...) (buffer ...) (odd org-odd-levels-only) (header ...) (skip ...) (text ...) (org-export-preprocess-hook ...) (first-lines ...) (coding-system ...) (coding-system-for-write ...) (save-buffer-coding-system ...) (region ...) (string-for-export ...)) (set-buffer buffer) (erase-buffer) (org-install-letbind) (and (fboundp ...) (set-buffer-file-coding-system coding-system-for-write)) (unless (or ... body-only) (insert header)) (when (and text ...) (insert ... "\n\n")) (unless skip (insert first-lines)) (org-export-latex-global (with-temp-buffer ... ... ...)) (unless body-only (insert "\n\\end{document}")) (goto-char (point-min)) (when (re-search-forward "\\[TABLE-OF-CONTENTS\\]" nil t) (goto-char ...) (while ... ...) (goto-char ...) (and ... ...)) (or to-buffer (save-buffer)) (goto-char (point-min)) (or (org-export-push-to-kill-ring "LaTeX") (message "Exporting to LaTeX...done")) (prog1 (if ... ... ...) (set-window-configuration wcf))) org-export-as-latex(nil nil nil nil nil nil) (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd) (with-current-buffer outbuf (erase-buffer)) (and (file-exists-p pdffile) (delete-file pdffile)) (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) call-interactively(org-export-as-pdf) (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel p ...) (message "Background process \"%s\": started" p)) (call-interactively (nth 1 ass))) (let* ((bg ...) (help "[t] insert the export option template\n[v] limit export to visible part of outline tree\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\n[d] export as LaTeX, process to PDF, and open the resulting PDF document\n\n[D] export as DocBook\n[V] export as DocBook, process to PDF, and open the resulting PDF document\n\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\n[c] export agenda files into combined iCalendar file\n\n[F] publish current file [P] publish current project\n[X] publish a project... [E] publish every projects") (cmds ...) r1 r2 ass) (save-excursion (save-window-excursion ... ... ... ... ...)) (setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No command associated with key %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (call-interactively ...))) org-export(nil) call-interactively(org-export) Mueen