From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: having problems exporting to Beamer Date: Sat, 13 Apr 2013 17:12:56 -0600 Message-ID: <87a9p2vxc7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR9dU-0001kl-IR for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 19:13:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UR9dS-00062A-GM for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 19:13:32 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:52456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR9dS-00061u-7h for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 19:13:30 -0400 Received: by mail-pa0-f41.google.com with SMTP id kx1so2000758pab.0 for ; Sat, 13 Apr 2013 16:13:29 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Mailing List When I attempt to export a .org file to Beamer (with "C-c C-e l b" after requiring ox-beamer) I get the following error [1]. From the info page (info "(org)Beamer export") it looks like I shouldn't have to do any special buffer preparation. What am I doing wrong? Thanks, Footnotes: [1] Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("\\S-" nil) (not (string-match "\\S-" argument)) (if (not (string-match "\\S-" argument)) "" (cond ((eql type (quote action)) (if (string-match "\\`<.*>\\'" argument) argument (format "<%s>" argument))) ((eql type (quote defaction)) (cond ((string-match "\\`\\[<.*>\\]\\'" argument) argument) ((string-match "\\`<.*>\\'" argument) (format "[%s]" argument)) ((string-match "\\`\\[\\(.*\\)\\]\\'" argument) (format "[<%s>]" (match-string 1 argument))) (t (format "[<%s>]" argument)))) ((eql type (quote option)) (if (string-match "\\`\\[.*\\]\\'" argument) argument (format "[%s]" argument))) (t argument))) org-beamer--normalize-argument(nil option) (format "\\begin{frame}%s{%s}\n" (org-beamer--normalize-argument org-beamer-outline-frame-options (quote option)) org-beamer-outline-frame-title) (concat (format "\\begin{frame}%s{%s}\n" (org-beamer--normalize-argument org-beamer-outline-frame-options (quote option)) org-beamer-outline-frame-title) (if (wholenump depth) (progn (format "\\setcounter{tocdepth}{%d}\n" depth))) "\\tableofcontents\n" "\\end{frame}\n\n") (progn (concat (format "\\begin{frame}%s{%s}\n" (org-beamer--normalize-argument org-beamer-outline-frame-options (quote option)) org-beamer-outline-frame-title) (if (wholenump depth) (progn (format "\\setcounter{tocdepth}{%d}\n" depth))) "\\tableofcontents\n" "\\end{frame}\n\n")) (if depth (progn (concat (format "\\begin{frame}%s{%s}\n" (org-beamer--normalize-argument org-beamer-outline-frame-options (quote option)) org-beamer-outline-frame-title) (if (wholenump depth) (progn (format "\\setcounter{tocdepth}{%d}\n" depth))) "\\tableofcontents\n" "\\end{frame}\n\n"))) (let ((depth (plist-get info :with-toc))) (if depth (progn (concat (format "\\begin{frame}%s{%s}\n" (org-beamer--normalize-argument org-beamer-outline-frame-options (quote option)) org-beamer-outline-frame-title) (if (wholenump depth) (progn (format "\\setcounter{tocdepth}{%d}\n" depth))) "\\tableofcontents\n" "\\end{frame}\n\n")))) [...] (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) (set-process-sentinel --process (let ... ...))))) (and with-temp-message (if current-message (message "%s" current-message) (message nil))))) (org-export-to-file (quote beamer) outfile s ubtreep visible-only body-only ext-plist)) (let ((outfile (org-export-output-file-name ".tex" subtreep))) (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) (set-process-sentinel --process ...)))) (and with-temp-message (if current-message (message "%s" current-message) (message nil))))) (org-export-to-file (quote beamer) outfile subtreep visible-only body-only ext-plist))) org-beamer-export-to-latex(nil nil nil nil nil) (org-latex-compile (org-beamer-export-to-latex nil subtreep visible-only body-only ext-plist)) (if async (let ((outfile (org-export-output-file-name ".tex" subtreep))) (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) (set-process-sentinel --process ...)))) (and with-temp-message (if current-message (message "%s" current-message) (message nil)))))) (org-latex-compile (org-beamer-export-to-latex nil subtreep visible-only body-only ext-plist))) org-beamer-export-to-pdf(nil nil nil nil) org-export-dispatch(nil) call-interactively(org-export-dispatch nil nil) -- Eric Schulte http://cs.unm.edu/~eschulte