[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] failed execution of bibtex2html
From: |
Levy, Roger |
Subject: |
[O] failed execution of bibtex2html |
Date: |
Wed, 10 Apr 2013 22:06:37 +0000 |
Hi,
I'm having trouble getting \cite commands to work within org-mode for HTML
export -- I get the error "Executing bibtex2html failed" when I run
org-export-as-html. I'm running Aquamacs 2.4 (based on GNU Emacs 23.3.50.1)
and org-mode version 7.9.4. Any advice would be much appreciated! (Note that
emacs *can* find and execute bibtex2html.) I append a minimal example of the
error.
Many thanks,
Roger
***
Minimal example: .org file is (note that levy:2008 is in rpl.bib, which is in
the current directory):
***
#+TITLE: test
#+AUTHOR: Me
\cite{levy:2008}
#+BIBLIOGRAPHY: rpl plain
***
Running M-x org-export-as-html gives me the following error in the *Backtrace*
buffer:
Debugger entered--Lisp error: (error "Executing bibtex2html failed")
signal(error ("Executing bibtex2html failed"))
ad-Orig-error("Executing bibtex2html failed")
apply(ad-Orig-error "Executing bibtex2html failed")
error("Executing bibtex2html failed")
(progn (error "Executing bibtex2html failed"))
(if (not (eq 0 ...)) (progn (error "Executing bibtex2html failed")))
(when (not (eq 0 ...)) (error "Executing bibtex2html failed"))
(let (extra-args cite-list end-hook tmp-files) (dolist (elt opt) (when ...
...)) (when (assoc "limit" opt) (org-exp-bibtex-docites ...) (let ... ... ...
...)) (when (not ...) (error "Executing bibtex2html failed")) (dolist (f
tmp-files) (delete-file f)))
(cond ((eq org-export-current-backend ...) (let ... ... ... ... ...)
(with-temp-buffer ...)) ((eq org-export-current-backend ...) (concat
"\n#+LATEX: \\bibliographystyle{" style "}" "\n#+LATEX: \\bibliography{" file
"}\n")))
(replace-match (cond (... ... ...) (... ...)) t t)
(let ((file ...) (style ...) (opt ...)) (replace-match (cond ... ...) t t))
(while (re-search-forward "^#\\+BIBLIOGRAPHY:[ ]+\\(\\S-+\\)[
]+\\(\\S-+\\)\\([^
\n]*\\)" nil t) (let (... ... ...) (replace-match ... t t)))
(save-window-excursion (setq oebp-cite-plist (quote nil)) (goto-char
(point-min)) (while (re-search-forward "^#\\+BIBLIOGRAPHY:[ ]+\\(\\S-+\\)[
]+\\(\\S-+\\)\\([^
\n]*\\)" nil t) (let ... ...)) (when (eq org-export-current-backend ...)
(org-exp-bibtex-docites ...) (org-exp-bibtex-docites ...)))
org-export-bibtex-preprocess()
run-hooks(org-export-preprocess-hook)
(progn (erase-buffer) (insert string) (setq case-fold-search t) (let (...)
(remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let
(...) (org-mode)) (setq case-fold-search t) (org-clone-local-variables
source-buffer "^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks (quote
org-export-preprocess-hook)) (untabify (point-min) (point-max))
(org-export-handle-include-files-recurse) (run-hooks (quote
org-export-preprocess-after-include-files-hook))
(org-export-remove-archived-trees archived-trees)
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags))
(run-hooks (quote org-export-preprocess-after-tree-selection-hook))
(org-export-remove-tasks (plist-get parameters :tasks)) (when (plist-get
parameters :footnotes) (org-footnote-normalize nil parameters))
(org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks
(quote org-export-preprocess-after-macros-hook)) (org-export-blocks-preprocess)
(org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (setq
target-alist (org-export-define-heading-targets target-alist)) (run-hooks
(quote org-export-preprocess-after-headline-targets-hook))
(org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers))
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ...
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert
... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist
(org-export-handle-invisible-targets target-alist)) (run-hooks (quote
org-export-preprocess-before-selecting-backend-code-hook))
(org-export-select-backend-specific-text) (org-export-protect-quoted-subtrees)
(org-export-remove-clock-lines) (org-export-protect-verbatim)
(org-export-mark-blockquote-verse-center) (run-hooks (quote
org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters
:timestamps) (org-export-remove-timestamps)) (setq target-alist
(org-export-attach-captions-and-attributes target-alist))
(org-export-mark-radio-links) (run-hooks (quote
org-export-preprocess-after-radio-targets-hook))
(org-export-concatenate-multiline-links) (run-hooks (quote
org-export-preprocess-before-normalizing-links-hook))
(org-export-normalize-links) ...)
(unwind-protect (progn (erase-buffer) (insert string) (setq case-fold-search
t) (let ... ...) (org-export-kill-licensed-text) (let ... ...) (setq
case-fold-search t) (org-clone-local-variables source-buffer
"^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks ...) (untabify ...
...) (org-export-handle-include-files-recurse) (run-hooks ...)
(org-export-remove-archived-trees archived-trees)
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags
... ...) (run-hooks ...) (org-export-remove-tasks ...) (when ... ...)
(org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks ...)
(org-export-blocks-preprocess) (org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (setq
target-alist ...) (run-hooks ...) (org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers ...) (when ... ... ...) (when ...
... ...) (org-export-remove-headline-metadata parameters) (setq target-alist
...) (run-hooks ...) (org-export-select-backend-specific-text)
(org-export-protect-quoted-subtrees) (org-export-remove-clock-lines)
(org-export-protect-verbatim) (org-export-mark-blockquote-verse-center)
(run-hooks ...) (unless ... ...) (setq target-alist ...)
(org-export-mark-radio-links) (run-hooks ...)
(org-export-concatenate-multiline-links) (run-hooks ...)
(org-export-normalize-links) ...) (and (buffer-name temp-buffer) (kill-buffer
temp-buffer)))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ...) (and ... ...)))
(with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ...) (and ... ...)))
(let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ...
...)))
(with-temp-buffer (erase-buffer) (insert string) (setq case-fold-search t)
(let (...) (remove-text-properties ... ... ...))
(org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search
t) (org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)")
(org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (untabify
(point-min) (point-max)) (org-export-handle-include-files-recurse) (run-hooks
(quote org-export-preprocess-after-include-files-hook))
(org-export-remove-archived-trees archived-trees)
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags))
(run-hooks (quote org-export-preprocess-after-tree-selection-hook))
(org-export-remove-tasks (plist-get parameters :tasks)) (when (plist-get
parameters :footnotes) (org-footnote-normalize nil parameters))
(org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks
(quote org-export-preprocess-after-macros-hook)) (org-export-blocks-preprocess)
(org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (setq
target-alist (org-export-define-heading-targets target-alist)) (run-hooks
(quote org-export-preprocess-after-headline-targets-hook))
(org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers))
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ...
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert
... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist
(org-export-handle-invisible-targets target-alist)) (run-hooks (quote
org-export-preprocess-before-selecting-backend-code-hook))
(org-export-select-backend-specific-text) (org-export-protect-quoted-subtrees)
(org-export-remove-clock-lines) (org-export-protect-verbatim)
(org-export-mark-blockquote-verse-center) (run-hooks (quote
org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters
:timestamps) (org-export-remove-timestamps)) (setq target-alist
(org-export-attach-captions-and-attributes target-alist))
(org-export-mark-radio-links) (run-hooks (quote
org-export-preprocess-after-radio-targets-hook))
(org-export-concatenate-multiline-links) (run-hooks (quote
org-export-preprocess-before-normalizing-links-hook))
(org-export-normalize-links) ...)
(let* ((org-export-current-backend ...) (archived-trees ...)
(inhibit-read-only t) (drawers org-drawers) (source-buffer ...) target-alist
rtn) (setq org-export-target-aliases nil org-export-preferred-target-alist nil
org-export-id-target-alist nil org-export-code-refs nil) (with-temp-buffer
(erase-buffer) (insert string) (setq case-fold-search t) (let ... ...)
(org-export-kill-licensed-text) (let ... ...) (setq case-fold-search t)
(org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)")
(org-install-letbind) (run-hooks ...) (untabify ... ...)
(org-export-handle-include-files-recurse) (run-hooks ...)
(org-export-remove-archived-trees archived-trees)
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags
... ...) (run-hooks ...) (org-export-remove-tasks ...) (when ... ...)
(org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks ...)
(org-export-blocks-preprocess) (org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (setq
target-alist ...) (run-hooks ...) (org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers ...) (when ... ... ...) (when ...
... ...) (org-export-remove-headline-metadata parameters) (setq target-alist
...) (run-hooks ...) (org-export-select-backend-specific-text)
(org-export-protect-quoted-subtrees) (org-export-remove-clock-lines)
(org-export-protect-verbatim) (org-export-mark-blockquote-verse-center)
(run-hooks ...) (unless ... ...) (setq target-alist ...)
(org-export-mark-radio-links) (run-hooks ...)
(org-export-concatenate-multiline-links) (run-hooks ...)
(org-export-normalize-links) ...) rtn)
org-export-preprocess-string(#("#+TITLE: test\n#+AUTHOR:
Me\n\n\\cite{levy:2008}\n\n#+BIBLIOGRAPHY: rpl plain\n" 0 8 (fontified t
font-lock-fontified t face org-document-info-keyword) 8 9 (fontified t) 9 14
(fontified t font-lock-fontified t face org-document-title) 14 23 (fontified t
font-lock-fontified t face org-document-info-keyword) 23 24 (fontified t) 24 27
(fontified t font-lock-fontified t face org-document-info) 27 46 (fontified t)
46 71 (fontified t font-lock-fontified t face org-meta-line) 71 72 (fontified
t)) :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-split-string (org-export-preprocess-string region :emph-multiline t
:for-backend (quote html) :skip-before-1st-heading (plist-get opt-plist
:skip-before-1st-heading) :drawers (plist-get opt-plist :drawers)
:todo-keywords (plist-get opt-plist :todo-keywords) :tasks (plist-get opt-plist
:tasks) :tags (plist-get opt-plist :tags) :priority (plist-get opt-plist
:priority) :footnotes (plist-get opt-plist :footnotes) :timestamps (plist-get
opt-plist :timestamps) :archived-trees (plist-get opt-plist :archived-trees)
:select-tags (plist-get opt-plist :select-tags) :exclude-tags (plist-get
opt-plist :exclude-tags) :add-text (plist-get opt-plist :text) :LaTeX-fragments
(plist-get opt-plist :LaTeX-fragments)) "[
\n]")
(let* ((opt-plist ...) (body-only ...) (style ...) (html-extension ...) valid
thetoc have-headings first-heading-pos (odd org-odd-levels-only) (region-p ...)
(rbeg ...) (rend ...) (subtree-p ...) (level-offset ...) (opt-plist ...)
(org-current-export-dir ...) (org-current-export-file buffer-file-name) (level
0) (org-line "") (origline "") txt todo (umax nil) (umax-toc nil) (filename
...) (current-dir ...) (auto-insert nil) (buffer ...) (org-levels-open ...)
(date ...) (author ...) (html-validation-link ...) (title ...) (link-up ...)
(link-home ...) (dummy ...) (html-table-tag ...) (quote-re0 ...) (quote-re ...)
(inquote nil) (infixed nil) (inverse nil) (email ...) (language ...) (keywords
...) (description ...) (num ...) (lang-words nil) (head-count 0) cnt ...) (let
(...) (org-unmodified ...)) (message "Exporting...") (setq org-min-level
(org-get-min-level lines level-offset)) (setq org-last-level org-min-level)
(org-init-section-numbers) (cond (... ...) (date) (t ...)) (setq lang-words (or
... ...)) (set-buffer buffer) (let (...) (erase-buffer)) (fundamental-mode)
(org-install-letbind) (and (fboundp ...) (set-buffer-file-coding-system
coding-system-for-write)) (let (... ...) (mapc ... org-export-plist-vars) (setq
umax ...) (setq umax-toc ...) (unless body-only ... ... ...) (if
org-export-with-toc ...) (setq head-count 0) (org-init-section-numbers)
(org-open-par) (while ... ...) (when inquote ... ...) (org-html-level-start 1
nil umax ... head-count opt-plist) (when ... ...) (save-excursion ... ...)
(when footnotes ...) (let ... ...) (unless body-only ... ...) (if
org-export-html-with-timestamp ...) (unless body-only ...) (unless ... ... ...)
(goto-char ...) (when thetoc ... ... ...) (goto-char ...) (while ... ...)
(goto-char ...) (goto-char ...) (let ... ...) (goto-char ...) (when ... ...)
(remove-text-properties ... ... ...) (run-hooks ...) (or to-buffer ...)
(goto-char ...) (or ... ...) (if ... ... ...)))
org-export-as-html(nil)
call-interactively(org-export-as-html)
(if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel
p ...) (message "Background process \"%s\": started" p)) (if subtree-p (let ...
... ...)) (call-interactively (nth 1 ass)) (when (and bpos ...) (let ... ...
... ... ...)))
(let* ((bg ...) (subtree-p ...) (regb ...) (rege ...) (help "[t] insert the
export option template\n[v] limit export to visible part of outline tree\n[1]
switch buffer/subtree export\n[SPC] publish enclosing subtree (with
LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a/n/u] export as ASCII/Latin-1/UTF-8
[A/N/U] to temporary buffer\n\n[h] export as HTML [H] to temporary
buffer [R] export region\n[b] export as HTML and open in browser\n\n[l]
export as LaTeX [L] to temporary buffer\n[p] export as LaTeX and process to
PDF [d] ... and open PDF file\n\n[D] export as DocBook [V] export
as DocBook, process to PDF, and open\n\n[o] export as OpenDocument Text
[O] ... and open\n\n[j] export as TaskJuggler
[J] ... and open\n\n[m] export as Freemind mind map\n[x] export as XOXO\n[g]
export using Wes Hardaker's generic exporter\n\n[i] export current file as
iCalendar file\n[I] export all agenda files as iCalendar files [c] ...as one
combined file\n\n[F] publish current file [P] publish current
project\n[X] publish a project... [E] publish every projects") (cmds
...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursion
(save-window-excursion ... ... ... ... ... ...)) (if (fboundp ...) (redisplay))
(and bpos (goto-char bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...)
(error "No command associated with key %c" r1)) (if (and bg ... ... ...) (let
... ... ...) (if subtree-p ...) (call-interactively ...) (when ... ...)))
org-export(nil)
call-interactively(org-export nil nil)
- [O] failed execution of bibtex2html,
Levy, Roger <=