From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Prince Subject: Failure exporting with emacs --batch Date: Tue, 15 Nov 2011 11:32:12 -0500 Message-ID: <87pqgt9wj7.fsf@hermes.hocat.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQMXR-0004sk-1o for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 12:11:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQMXL-0001yw-Vm for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 12:11:13 -0500 Received: from [76.10.188.53] (port=49838 helo=socrates.hocat.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQMXL-0001yZ-Jy for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 12:11:07 -0500 Received: from hermes.hocat.ca (hermes.hocat.ca [69.165.170.253]) by socrates.hocat.ca (Postfix) with SMTP id 70F8F1ADF for ; Tue, 15 Nov 2011 09:32:13 -0700 (MST) 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 List With b43c1c621f52f4a51d8d79cb76c226dfed003998 running emacs --no-init-file --load min.el --eval '(setq debug-on-error t)' --eval= '(find-file "test.org")' -eval '(org-export-as-html 3)' --batch with ------ min.el (setq org-babel-load-languages '((emacs-lisp . t) (latex . t))) (setq org-confirm-babel-evaluate nil) (setq org-export-latex-packages-alist `(("" "diagrams" t))) (require 'org-install) (require 'org) ------ and ------ test.org #+TITLE: Notes for Higher Category Theory #+MATHJAX: mathml:t #+BABEL :exports results * Notes for 2011-09-16 #+begin_src latex :file diag1.png \begin{diagram} Y\times \{0\} & \rTo & E \\ \dTo & \ruDotsto & \dTo \\ Y\times I & \rTo & B \end{diagram} #+end_src ------ gives me ------ output OVERVIEW Loading vc-git... Exporting... Position saved to mark ring, go back with C-c &. executing Latex code block... Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p unspe= cified) org-create-formula-image("\\begin{diagram}\n Y\\times \\{0\\} & \\rTo & = E \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B\n\\end{= diagram}" "diag1.png" (:foreground default :background default :scale 1.0 := html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :mat= chers ("begin" "$1" "$" "$$" "\\(" "\\[")) t) org-babel-execute:latex("\\begin{diagram}\n Y\\times \\{0\\} & \\rTo & E= \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B\n\\end{d= iagram}" ((:colname-names) (:rowname-names) (:result-params "replace" "file= " "latex" "file" "replace" "latex") (:result-type . value) (:comments . "")= (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle .= "no") (:exports . "results") (:results . "replace file latex") (:session .= "none") (:rowname-names) (:result-type . value) (:result-params "file" "re= place" "latex") (:padnewline . "yes") (:hlines . "no") (:file . "diag1.png"= ) (:colname-names))) org-babel-execute-src-block(nil ("latex" "\\begin{diagram}\n Y\\times \\= {0\\} & \\rTo & E \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \= \rTo & B\n\\end{diagram}" ((:colname-names) (:rowname-names) (:result-param= s "replace" "file" "latex" "file" "replace" "latex") (:result-type . value)= (:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb .= "no") (:tangle . "no") (:exports . "results") (:results . "replace file la= tex") (:session . "none") (:rowname-names) (:result-type . value) (:result-= params "file" "replace" "latex") (:padnewline . "yes") (:hlines . "no") (:f= ile . "diag1.png") (:colname-names)) "" nil 0)) org-babel-exp-results(("latex" "\\begin{diagram}\n Y\\times \\{0\\} & \\= rTo & E \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B\n= \\end{diagram}" ((:colname-names) (:rowname-names) (:result-params "replace= " "file" "latex" "file" "replace" "latex") (:result-type . value) (:comment= s . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:t= angle . "no") (:exports . "results") (:results . "replace file latex") (:se= ssion . "none") (:rowname-names) (:result-type . value) (:result-params "fi= le" "replace" "latex") (:padnewline . "yes") (:hlines . "no") (:file . "dia= g1.png") (:colname-names)) "" nil 0) block nil "e690bc66b5d1181e2751abbc36d= c7def2f54c72a") org-babel-exp-do-export(("latex" "\\begin{diagram}\n Y\\times \\{0\\} & = \\rTo & E \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B= \n\\end{diagram}" ((:colname-names) (:rowname-names) (:result-params "repla= ce" "file" "latex" "file" "replace" "latex") (:result-type . value) (:comme= nts . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (= :tangle . "no") (:exports . "results") (:results . "replace file latex") (:= session . "none") (:rowname-names) (:result-type . value) (:result-params "= file" "replace" "latex") (:padnewline . "yes") (:hlines . "no") (:file . "d= iag1.png") (:colname-names)) "" nil 0) block "e690bc66b5d1181e2751abbc36dc7= def2f54c72a") org-babel-exp-src-block("\\begin{diagram}\n Y\\times \\{0\\} & \\rTo & E= \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B\n\\end{d= iagram}" "latex" ":file" "diag1.png") apply(org-babel-exp-src-block "\\begin{diagram}\n Y\\times \\{0\\} & \\r= To & E \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B\n\= \end{diagram}" ("latex" ":file" "diag1.png")) byte-code("\306\307\211\211\211\211\211\211\211\211\211\211=18=19=1A=1B= =1C=1D=1E+=1E,=1E-=1E.=1E/=1E0\310\311!\211=1E1\205)=00\311K=1E2\312\216\31= 1\313M\210eb\210`=15\314=1E3\315=0E3\307\306#\203X=01\316\317\224!=1E4\316\= 317\225!=1E5\320\321!G=1E-\322\323\324\320\325!\227!\"=1E6\326\320\325!\227= !=1E,\327 =1E7\330\216\331\320\332!\333\"*=1A\321=1E8=0E9\206\200=00\334\n\= 235=19\307=1E:\335=0E8!\204\255=00\315=0E6\307\306#\203\255=00\320\321!\227= \336\230\203\245=00=0E8S=168\202\204=00=0E8T=168\202\204=00\335=0E8!\204\27= 6=00\337\340=0E,=0E4`{#\210\316\317\225!=16: \204\327=00\327 =1E7\341\216\3= 42=0E5\317\224{!*=13=0E,=0E/>\204\346=00=0E,=0E/B=16/\327 =1E7\343\216\311= =0D=0E4\"\210*\344=0E,=0E;\"\211=1E\203=17=01\346\202=1D=01\347=0E+=0B\n#*\211=1E>\203>=01=0E4=0E:|\21= 0=0E4b\210=0E>c\210 \204>=01\350=0E4`=0E-#\210)=0E4\307\211\223\210=0E5\307= \211\223\210=0E:\307\211\223\210. `=15\2029=00)\311=0Dd\"\210\351\352!.=0F\= 207" [progress-marker preserve-indent headers body end start t nil fboundp = interblock ((byte-code "\203=0B=00\302 M\210\202=0F=00\303\302!\210\302\20= 7" [--cl-letf-bound-- --cl-letf-save-- interblock fmakunbound] 2)) #[(start= end) "\301\302\"\207" [org-export-interblocks mapcar #[... "\211=19A@)\n= =0B\"\207" [pair x start end] 4]] 3] "^\\([ ]*\\)#\\+begin_\\(\\S-+\\)[ ]= *\\(.*\\)?[=0D\n]" re-search-forward copy-marker 0 match-string 1 format "[= =0D\n][ ]*#\\+\\(begin\\|end\\)_%s" regexp-quote 2 intern match-data ((byt= e-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate= ] 3)) org-split-string 3 "[ ]+" "-i" zerop "end" error "unbalanced begin/e= nd_%s blocks with %S" ((byte-code "\301\302\"\207" [save-match-data-intern= al set-match-data evaporate] 3)) org-remove-indentation ((byte-code "\301\= 302\"\207" [save-match-data-internal set-match-data evaporate] 3)) assoc ((= byte-code "\301\302\"\207" [save-match-data-internal set-match-data evapor= ate] 3)) "" apply indent-code-rigidly run-hooks org-export-blocks-postblock= -hook func type indentation matched types case-fold-search --cl-letf-bound-= - ...] 13) org-export-blocks-preprocess() org-export-preprocess-string("#+TITLE: Notes for Higher Category Theory\n= #+MATHJAX: mathml:t\n#+BABEL :exports results\n\n* Notes for 2011-09-16\n#+= begin_src latex :file diag1.png\n\\begin{diagram}\n Y\\times \\{0\\} & \\r= To & E \\\\\n \\dTo & \\ruDotsto & \\dTo \\\\\n Y\\times I & \\rTo & B\n\= \end{diagram}\n#+end_src\n\n" :emph-multiline t :for-backend html :skip-bef= ore-1st-heading nil :drawers nil :todo-keywords t :tasks t :tags not-in-toc= :priority nil :footnotes t :timestamps t :archived-trees headline :select-= tags ("export") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments t) org-export-as-html(3) eval((org-export-as-html 3)) command-line-1(("--load" "min.el" "--eval" "(setq debug-on-error t)" "--e= val" "(find-file \"test.org\")" "-eval" "(org-export-as-html 3)")) command-line() normal-top-level() -------