emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Re: Can't export to LaTeX/PDF.
  2009-08-30 20:39   ` Mueen Nawaz
@ 2009-08-30 11:16     ` Bastien
  2009-08-31  6:51       ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2009-08-30 11:16 UTC (permalink / raw)
  To: Mueen Nawaz; +Cc: emacs-orgmode

Mueen Nawaz <mueen@nawaz.org> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Can't export to LaTeX/PDF.
@ 2009-08-30 20:08 Mueen Nawaz
  2009-08-30 20:33 ` Bernt Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: Mueen Nawaz @ 2009-08-30 20:08 UTC (permalink / raw)
  To: emacs-orgmode


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 "<table border=\"2\" 
cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">" 
:xml-declaration (("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") 
("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" 
?>\"; ?>")) :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 "<table border=\"2\" 
cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">" 
:xml-declaration (("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") 
("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" 
?>\"; ?>")) :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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't export to LaTeX/PDF.
  2009-08-30 20:08 Can't export to LaTeX/PDF Mueen Nawaz
@ 2009-08-30 20:33 ` Bernt Hansen
  2009-08-30 20:39   ` Mueen Nawaz
  0 siblings, 1 reply; 5+ messages in thread
From: Bernt Hansen @ 2009-08-30 20:33 UTC (permalink / raw)
  To: Mueen Nawaz; +Cc: emacs-orgmode

Mueen Nawaz <mueen@nawaz.org> 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:
>
<snip>
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't export to LaTeX/PDF.
  2009-08-30 20:33 ` Bernt Hansen
@ 2009-08-30 20:39   ` Mueen Nawaz
  2009-08-30 11:16     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Mueen Nawaz @ 2009-08-30 20:39 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Can't export to LaTeX/PDF.
  2009-08-30 11:16     ` Bastien
@ 2009-08-31  6:51       ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-08-31  6:51 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Mueen Nawaz

Thank you!

- Carsten

On Aug 30, 2009, at 1:16 PM, Bastien wrote:

> Mueen Nawaz <mueen@nawaz.org> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-31  6:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-30 20:08 Can't export to LaTeX/PDF Mueen Nawaz
2009-08-30 20:33 ` Bernt Hansen
2009-08-30 20:39   ` Mueen Nawaz
2009-08-30 11:16     ` Bastien
2009-08-31  6:51       ` Carsten Dominik

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).