From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Levy, Roger" Subject: failed execution of bibtex2html Date: Wed, 10 Apr 2013 22:06:37 +0000 Message-ID: <6B746CC9-EF6B-4157-B32D-D2778AD1B808@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ3AB-00023t-C2 for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 18:06:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQ3A8-0003Wd-SP for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 18:06:43 -0400 Received: from iport-c1-out.ucsd.edu ([132.239.0.176]:39763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ3A8-0003WP-5s for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 18:06:40 -0400 Content-Language: en-US Content-ID: 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: "emacs-orgmode@gnu.org" 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-exp= ort-as-html. I'm running Aquamacs 2.4 (based on GNU Emacs 23.3.50.1) and o= rg-mode version 7.9.4. Any advice would be much appreciated! (Note that em= acs *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 *Backtra= ce* 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 ... ... ... ... ...) (wit= h-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 (poi= nt-min)) (while (re-search-forward "^#\\+BIBLIOGRAPHY:[ ]+\\(\\S-+\\)[ ]+= \\(\\S-+\\)\\([^ \n]*\\)" nil t) (let ... ...)) (when (eq org-export-current-backend ...) (o= rg-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) (le= t (...) (org-mode)) (setq case-fold-search t) (org-clone-local-variables so= urce-buffer "^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks (quot= e org-export-preprocess-hook)) (untabify (point-min) (point-max)) (org-expo= rt-handle-include-files-recurse) (run-hooks (quote org-export-preprocess-af= ter-include-files-hook)) (org-export-remove-archived-trees archived-trees) = (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-t= ags (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 parame= ters :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-e= xport-protect-colon-examples) (org-export-convert-protected-spaces) (setq t= arget-alist (org-export-define-heading-targets target-alist)) (run-hooks (q= uote org-export-preprocess-after-headline-targets-hook)) (org-export-rememb= er-html-container-classes) (org-export-remove-or-extract-drawers drawers (p= list-get parameters :drawers)) (when (plist-get parameters :skip-before-1st= -heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get paramete= rs :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headlin= e-metadata parameters) (setq target-alist (org-export-handle-invisible-targ= ets 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-protec= t-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org= -export-preprocess-after-blockquote-hook)) (unless (plist-get parameters :t= imestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-a= ttach-captions-and-attributes target-alist)) (org-export-mark-radio-links) = (run-hooks (quote org-export-preprocess-after-radio-targets-hook)) (org-exp= ort-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-be= fore-normalizing-links-hook)) (org-export-normalize-links) ...) (unwind-protect (progn (erase-buffer) (insert string) (setq case-fold-sea= rch t) (let ... ...) (org-export-kill-licensed-text) (let ... ...) (setq ca= se-fold-search t) (org-clone-local-variables source-buffer "^\\(org-\\|orgt= bl-\\)") (org-install-letbind) (run-hooks ...) (untabify ... ...) (org-expo= rt-handle-include-files-recurse) (run-hooks ...) (org-export-remove-archive= d-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (or= g-export-handle-export-tags ... ...) (run-hooks ...) (org-export-remove-tas= ks ...) (when ... ...) (org-export-mark-list-end) (org-export-preprocess-ap= ply-macros) (run-hooks ...) (org-export-blocks-preprocess) (org-export-mark= -list-properties) (org-export-replace-src-segments-and-examples) (org-expor= t-protect-colon-examples) (org-export-convert-protected-spaces) (setq targe= t-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-e= xport-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) (ru= n-hooks ...) (org-export-concatenate-multiline-links) (run-hooks ...) (org-= export-normalize-links) ...) (and (buffer-name temp-buffer) (kill-buffer te= mp-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-license= d-text) (let (...) (org-mode)) (setq case-fold-search t) (org-clone-local-v= ariables 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-pr= eprocess-after-include-files-hook)) (org-export-remove-archived-trees archi= ved-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-hand= le-export-tags (plist-get parameters :select-tags) (plist-get parameters :e= xclude-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-e= xport-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-examp= les) (org-export-protect-colon-examples) (org-export-convert-protected-spac= es) (setq target-alist (org-export-define-heading-targets target-alist)) (r= un-hooks (quote org-export-preprocess-after-headline-targets-hook)) (org-ex= port-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-g= et parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-rem= ove-headline-metadata parameters) (setq target-alist (org-export-handle-inv= isible-targets target-alist)) (run-hooks (quote org-export-preprocess-befor= e-selecting-backend-code-hook)) (org-export-select-backend-specific-text) (= org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-ex= port-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks= (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-get pa= rameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (o= rg-export-attach-captions-and-attributes target-alist)) (org-export-mark-ra= dio-links) (run-hooks (quote org-export-preprocess-after-radio-targets-hook= )) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-pr= eprocess-before-normalizing-links-hook)) (org-export-normalize-links) ...) (let* ((org-export-current-backend ...) (archived-trees ...) (inhibit-rea= d-only t) (drawers org-drawers) (source-buffer ...) target-alist rtn) (setq= org-export-target-aliases nil org-export-preferred-target-alist nil org-ex= port-id-target-alist nil org-export-code-refs nil) (with-temp-buffer (erase= -buffer) (insert string) (setq case-fold-search t) (let ... ...) (org-expor= t-kill-licensed-text) (let ... ...) (setq case-fold-search t) (org-clone-lo= cal-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-ex= port-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags ...= ...) (run-hooks ...) (org-export-remove-tasks ...) (when ... ...) (org-exp= ort-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks ...) (or= g-export-blocks-preprocess) (org-export-mark-list-properties) (org-export-r= eplace-src-segments-and-examples) (org-export-protect-colon-examples) (org-= export-convert-protected-spaces) (setq target-alist ...) (run-hooks ...) (o= rg-export-remember-html-container-classes) (org-export-remove-or-extract-dr= awers 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-m= ark-blockquote-verse-center) (run-hooks ...) (unless ... ...) (setq target-= alist ...) (org-export-mark-radio-links) (run-hooks ...) (org-export-concat= enate-multiline-links) (run-hooks ...) (org-export-normalize-links) ...) rt= n) org-export-preprocess-string(#("#+TITLE: test\n#+AUTHOR: Me\n\n\\cite{lev= y:2008}\n\n#+BIBLIOGRAPHY: rpl plain\n" 0 8 (fontified t font-lock-fontifie= d t face org-document-info-keyword) 8 9 (fontified t) 9 14 (fontified t fon= t-lock-fontified t face org-document-title) 14 23 (fontified t font-lock-fo= ntified t face org-document-info-keyword) 23 24 (fontified t) 24 27 (fontif= ied 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 :drawe= rs nil :todo-keywords t :tasks t :tags not-in-toc :priority nil :footnotes = t :timestamps t :archived-trees headline :select-tags ("export") :exclude-t= ags ("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 :sk= ip-before-1st-heading) :drawers (plist-get opt-plist :drawers) :todo-keywor= ds (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-pl= ist :timestamps) :archived-trees (plist-get opt-plist :archived-trees) :sel= ect-tags (plist-get opt-plist :select-tags) :exclude-tags (plist-get opt-pl= ist :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 ...) v= alid thetoc have-headings first-heading-pos (odd org-odd-levels-only) (regi= on-p ...) (rbeg ...) (rend ...) (subtree-p ...) (level-offset ...) (opt-pli= st ...) (org-current-export-dir ...) (org-current-export-file buffer-file-n= ame) (level 0) (org-line "") (origline "") txt todo (umax nil) (umax-toc ni= l) (filename ...) (current-dir ...) (auto-insert nil) (buffer ...) (org-lev= els-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 "Exportin= g...") (setq org-min-level (org-get-min-level lines level-offset)) (setq or= g-last-level org-min-level) (org-init-section-numbers) (cond (... ...) (dat= e) (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 (... ...) (ma= pc ... org-export-plist-vars) (setq umax ...) (setq umax-toc ...) (unless b= ody-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-o= nly ... ...) (if org-export-html-with-timestamp ...) (unless body-only ...)= (unless ... ... ...) (goto-char ...) (when thetoc ... ... ...) (goto-char = ...) (while ... ...) (goto-char ...) (goto-char ...) (let ... ...) (goto-ch= ar ...) (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-sent= inel 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 br= owser\n\n[l] export as LaTeX [L] to temporary buffer\n[p] export as LaT= eX 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 Task= Juggler [J] ... and open\n\n[m] export as Freemind = mind map\n[x] export as XOXO\n[g] export using Wes Hardaker's generic expor= ter\n\n[i] export current file as iCalendar file\n[I] export all agenda fil= es 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 ...) b= pos) (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-intera= ctively ...) (when ... ...))) org-export(nil) call-interactively(org-export nil nil)