emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Failure exporting with emacs --batch


From: Tom Prince
Subject: [O] Failure exporting with emacs --batch
Date: Tue, 15 Nov 2011 11:32:12 -0500
User-agent: Notmuch/0.9 (http://notmuchmail.org) Emacs/23.3.3 (x86_64-pc-linux-gnu)

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 
unspecified)
  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 
:matchers ("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{diagram}" ((: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" 
"replace" "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-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" "replace" "latex") (:padnewline . "yes") (:hlines . "no") (:file . 
"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) (: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" 
"replace" "latex") (:padnewline . "yes") (:hlines . "no") (:file . "diag1.png") 
(:colname-names)) "" nil 0) block nil 
"e690bc66b5d1181e2751abbc36dc7def2f54c72a")
  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 "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" 
"replace" "latex") (:padnewline . "yes") (:hlines . "no") (:file . "diag1.png") 
(:colname-names)) "" nil 0) block "e690bc66b5d1181e2751abbc36dc7def2f54c72a")
  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{diagram}" "latex" ":file" "diag1.png")
  apply(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{diagram}" ("latex" ":file" "diag1.png"))
  
byte-code("\306\307\211\211\211\211\211\211\211\211\211\211+,-./0\310\311!\2111\205)\311K2\312\216\311\313M\210eb\210`\3143\3153\307\306#\203X\316\317\224!4\316\317\225!5\320\321!G-\322\323\324\320\325!\227!\"6\326\320\325!\227!,\327
 
7\330\216\331\320\332!\333\"*\32189\206\200\334\n\235\307:\3358!\204\255\3156\307\306#\203\255\320\321!\227\336\230\203\2458S8\202\2048T8\202\204\3358!\204\276\337\340,4`{#\210\316\317\225!:
       \204\327\327 7\341\216\3425\317\224{!*,/>\204\346,/B/\327 
7\343\216\311
4\"\210*\344,;\"\211<A@)\211+\203?\327 
7\345\216,=>\203\346\202\347+\n#*\211>\203>4:|\2104b\210>c\210   
   \204>\3504`-#\210)4\307\211\223\2105\307\211\223\210:\307\211\223\210. 
   `\2029)\311
d\"\210\351\352!.\207" [progress-marker preserve-indent headers body end start 
t nil fboundp interblock ((byte-code "\203\302       
M\210\202\303\302!\210\302\207" [--cl-letf-bound-- --cl-letf-save-- 
interblock fmakunbound] 2)) #[(start end) "\301\302\"\207" 
[org-export-interblocks mapcar #[... "\211A@)\n\"\207" [pair x start end] 
4]] 3] "^\\([    ]*\\)#\\+begin_\\(\\S-+\\)[     ]*\\(.*\\)?[
\n]" re-search-forward copy-marker 0 match-string 1 format "[
\n][    ]*#\\+\\(begin\\|end\\)_%s" regexp-quote 2 intern match-data 
((byte-code "\301\302\"\207" [save-match-data-internal set-match-data 
evaporate] 3)) org-split-string 3 "[        ]+" "-i" zerop "end" error 
"unbalanced begin/end_%s blocks with %S" ((byte-code "\301\302\"\207" 
[save-match-data-internal 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 evaporate] 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\\} & \\rTo & 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-before-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)" "--eval" 
"(find-file \"test.org\")" "-eval" "(org-export-as-html 3)"))
  command-line()
  normal-top-level()
-------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]