emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Failure exporting with emacs --batch
@ 2011-11-15 16:32 Tom Prince
  2011-11-15 20:09 ` Herbert Sitz
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tom Prince @ 2011-11-15 16:32 UTC (permalink / raw)
  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 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\x18\x19\x1a^[\x1c\x1d\x1e+\x1e,\x1e-\x1e.\x1e/\x1e0\310\311!\211\x1e1\205)\0\311K\x1e2\312\216\311\313M\210eb\210`\x15\314\x1e3\315\x0e3\307\306#\203X\x01\316\317\224!\x1e4\316\317\225!\x1e5\320\321!G\x1e-\322\323\324\320\325!\227!\"\x1e6\326\320\325!\227!\x1e,\327 \x1e7\330\216\331\320\332!\333\"*\x1a\321\x1e8\x0e9\206\200\0\334\n\235\x19\307\x1e:\335\x0e8!\204\255\0\315\x0e6\307\306#\203\255\0\320\321!\227\336\230\203\245\0\x0e8S\x168\202\204\0\x0e8T\x168\202\204\0\335\x0e8!\204\276\0\337\340\x0e,\x0e4`{#\210\316\317\225!\x16:	\204\327\0\327 \x1e7\341\216\342\x0e5\317\224{!*\x13\x0e,\x0e/>\204\346\0\x0e,\x0e/B\x16/\327 \x1e7\343\216\311\r\x0e4\"\210*\344\x0e,\x0e;\"\211\x1e<A@)\211\x16+\203?\x01\327 \x1e7\345\216\x0e,\x0e=>\203\x17\x01\346\202\x1d\x01\347\x0e+\v\n#*\211\x1e>\203>\x01\x0e4\x0e:|\210\x0e4b\210\x0e>c\210	\204>\x01\350\x0e4`\x0e-#\210)\x0e4\307\211\223\210\x0e5\307\211\223\210\x0e:\307\211\223\210.	`\x15\2029\0)\311\rd\"\210\351\352!.\x0f\207" [progress-marker preserve-indent headers body end start t nil fboundp interblock ((byte-code "\b\203\v\0\302	M\210\202\x0f\0\303\302!\210\302\207" [--cl-letf-bound-- --cl-letf-save-- interblock fmakunbound] 2)) #[(start end) "\301\302\b\"\207" [org-export-interblocks mapcar #[... "\b\211\x19A@)\n\v\"\207" [pair x start end] 4]] 3] "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]" re-search-forward copy-marker 0 match-string 1 format "[\r\n][ 	]*#\\+\\(begin\\|end\\)_%s" regexp-quote 2 intern match-data ((byte-code "\301\b\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\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-remove-indentation ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) assoc ((byte-code "\301\b\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()
-------

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

end of thread, other threads:[~2011-11-16  3:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-15 16:32 Failure exporting with emacs --batch Tom Prince
2011-11-15 20:09 ` Herbert Sitz
2011-11-15 20:18   ` Herbert Sitz
2011-11-15 20:51     ` Nick Dokos
2011-11-15 21:09       ` Herbert Sitz
2011-11-15 21:48         ` Nick Dokos
2011-11-15 20:21 ` Eric Schulte
2011-11-15 20:30 ` Nick Dokos
2011-11-16  0:36   ` Tom Prince
2011-11-16  3:33     ` Nick Dokos

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