From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Failure exporting with emacs --batch Date: Tue, 15 Nov 2011 15:30:25 -0500 Message-ID: <2275.1321389025@alphaville.dokosmarshall.org> References: <87pqgt9wj7.fsf@hermes.hocat.ca> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQPeK-00086o-TS for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 15:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQPeG-0003ft-8z for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 15:30:32 -0500 Received: from g4t0017.houston.hp.com ([15.201.24.20]:24743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQPeF-0003fm-Vg for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 15:30:28 -0500 In-Reply-To: Message from Tom Prince of "Tue, 15 Nov 2011 11:32:12 EST." <87pqgt9wj7.fsf@hermes.hocat.ca> 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: Tom Prince Cc: nicholas.dokos@hp.com, Org Mode List Tom Prince wrote: > With b43c1c621f52f4a51d8d79cb76c226dfed003998 running > Please use C-u M-x org-version to insert version information in your mail. It's not possible to see from the SHA1 whether it is a recent version or an old version without doing git archaelogy. > 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 > ------ > A couple of problems: o #+BABEL is obsolete since release_7.7-405-g04a978f - use #+PROPERTY: exports results in its place with latest - I'm not sure what was current at your release (release_7.7.541.gb43c) o how do you set up the diagram environment? it's not there by default, so you probably have done some configuration of your environment. After struggling with it for a while, I can't get it to work to my satisfaction, but in any case, I cannot reproduce the error, with or without #+MATHJAX and with versions Org-mode version 7.7 (release_7.7.563.gf8d8) and Org-mode version 7.7 (release_7.7.541.gb43c): ,---- | $ emacs --no-init-file --load ~/minimal.emacs.org --eval '(setq debug-on-error t)' --eval '(find-file "tom-prince.org")' -eval '(org-export-as-html 3)' --batch | OVERVIEW | Loading vc-git... | Exporting... | Exporting... | Saving file /home/nick/src/emacs/org/Worg/tom-prince.html... | Wrote /home/nick/src/emacs/org/Worg/tom-prince.html | HTML export done, pushed to kill ring and clipboard `---- Nick PS As Herbert Sitz points out, you can combine all the evals, but I don't think the multiple evals cause the problem. > ------ 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 ,=0E=3D>\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() > ------- >