From: Nick Dokos <nicholas.dokos@hp.com>
To: Tom Prince <tom.prince@ualberta.net>
Cc: nicholas.dokos@hp.com, Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Failure exporting with emacs --batch
Date: Tue, 15 Nov 2011 15:30:25 -0500 [thread overview]
Message-ID: <2275.1321389025@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Tom Prince <tom.prince@ualberta.net> of "Tue, 15 Nov 2011 11:32:12 EST." <87pqgt9wj7.fsf@hermes.hocat.ca>
Tom Prince <tom.prince@ualberta.net> 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<A@)\211=16+\203?=01\327 =1E7\345\216=0E=
> ,=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 "\b\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\b\"\207" [org-export-interblocks mapcar #[... "\b\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\b\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\b\302\"\207" [save-match-data-intern=
> al 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 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()
> -------
>
next prev parent reply other threads:[~2011-11-15 20:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-11-16 0:36 ` Tom Prince
2011-11-16 3:33 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2275.1321389025@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=tom.prince@ualberta.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).