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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Can't export to LaTeX/PDF. Date: Sun, 30 Aug 2009 16:33:06 -0400 Message-ID: <87r5utkpod.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mhr5T-00017k-At for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:33:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mhr5P-000142-Ft for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:33:18 -0400 Received: from [199.232.76.173] (port=49905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhr5P-00013w-8E for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:33:15 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:62174) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mhr5O-0003mB-QP for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:33:14 -0400 In-Reply-To: (Mueen Nawaz's message of "Sun\, 30 Aug 2009 15\:08\:13 -0500") 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: Mueen Nawaz Cc: emacs-orgmode@gnu.org Mueen Nawaz writes: > 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: > > org-export-as-latex: Wrong type argument: integer-or-marker-p, nil I can confirm this. It seems the latest version requires at least one headline while 6.29a did not. -Bernt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mueen Nawaz Subject: Re: Can't export to LaTeX/PDF. Date: Sun, 30 Aug 2009 15:39:52 -0500 Message-ID: References: <87r5utkpod.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhrCI-0004fa-Ua for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:40:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhrCE-0004fO-Js for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:40:22 -0400 Received: from [199.232.76.173] (port=53743 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhrCE-0004fL-EN for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:40:18 -0400 Received: from lo.gmane.org ([80.91.229.12]:60714) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhrCD-0005eZ-Nd for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 16:40:18 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MhrCB-0003oV-4S for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 22:40:15 +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:40:15 +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:40:15 +0200 In-Reply-To: <87r5utkpod.fsf@gollum.intra.norang.ca> 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 On 08/30/09 15:33, Bernt Hansen wrote: > I can confirm this. It seems the latest version requires at least one > headline while 6.29a did not. Yep - that solved it. Would that be a bug or a requirement? Mueen From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Can't export to LaTeX/PDF. Date: Sun, 30 Aug 2009 19:16:54 +0800 Message-ID: <87k50lmtzt.fsf@bzg.ath.cx> References: <87r5utkpod.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhzH5-0000dX-Hn for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 01:17:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhzH0-0000ak-MO for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 01:17:50 -0400 Received: from [199.232.76.173] (port=57450 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhzH0-0000ah-Bo for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 01:17:46 -0400 Received: from mail-yw0-f178.google.com ([209.85.211.178]:34081) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhzH0-0000Ov-0z for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 01:17:46 -0400 Received: by ywh8 with SMTP id 8so1089161ywh.14 for ; Sun, 30 Aug 2009 22:17:44 -0700 (PDT) In-Reply-To: (Mueen Nawaz's message of "Sun, 30 Aug 2009 15:39:52 -0500") 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: Mueen Nawaz Cc: emacs-orgmode@gnu.org Mueen Nawaz writes: > On 08/30/09 15:33, Bernt Hansen wrote: >> I can confirm this. It seems the latest version requires at least one >> headline while 6.29a did not. > > Yep - that solved it. > > Would that be a bug or a requirement? Definitely a bug. I've just pushed a fix for this in the git repo. -- Bastien, from Tahiti From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Can't export to LaTeX/PDF. Date: Mon, 31 Aug 2009 08:51:12 +0200 Message-ID: <80EEBC47-828A-4CFC-AA3A-7D05BB922B60@gmail.com> References: <87r5utkpod.fsf@gollum.intra.norang.ca> <87k50lmtzt.fsf@bzg.ath.cx> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi0jW-00016Y-Rf for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 02:51:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi0jS-00014g-Qx for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 02:51:18 -0400 Received: from [199.232.76.173] (port=47375 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi0jS-00014b-M5 for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 02:51:14 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:47075) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mi0jS-0007Oz-1y for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 02:51:14 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so3621242ewy.31 for ; Sun, 30 Aug 2009 23:51:13 -0700 (PDT) In-Reply-To: <87k50lmtzt.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org, Mueen Nawaz Thank you! - Carsten On Aug 30, 2009, at 1:16 PM, Bastien wrote: > Mueen Nawaz writes: > >> On 08/30/09 15:33, Bernt Hansen wrote: >>> I can confirm this. It seems the latest version requires at least >>> one >>> headline while 6.29a did not. >> >> Yep - that solved it. >> >> Would that be a bug or a requirement? > > Definitely a bug. > > I've just pushed a fix for this in the git repo. > > -- > Bastien, from Tahiti > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode