Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://orgmode.org/worg/org-contrib" rel="noreferrer">org-mode contributed package</a> <a href="http://repo.or.cz/w/org-mode.git?a=blob_plain;f=contrib/lisp/org-exp-bibtex.el;hb=HEAD" rel="noreferrer"><code>org-exp-bibtex.el</code></a> produces an HTML bibliography using <a href="http://www.lri.fr/~filliatr/bibtex2html/" rel="noreferrer">bibtex2html</a> and then turns cite commands into links to bibliography items when you export to HTML. There is some documentation in <a href="http://repo.or.cz/w/org-mode.git?a=blob_plain;f=contrib/lisp/org-exp-bibtex.el;hb=HEAD" rel="noreferrer"><code>org-exp-bibtex.el</code></a>. </p> <p>I will include some additional information that helped me get this feature to work on my system. The file <code>org-exp-bibtex.el</code> seems to come with recent versions of org mode. So export may just work if you evaluate <code>(require 'org-exp-bibtex)</code> by, for instance, putting it in your <code>~/.emacs</code> and then put something like <code>#+BIBLIOGRAPHY: classics plain</code> in your source file in the place of your LaTeX <code>\bibliographystyle</code> and <code>\bibliography</code> commands. I found the following patch to <code>org-exp-bibtex.el</code> was needed for my system though.</p> <pre><code>--- /usr/share/emacs/site-lisp/org_contrib/lisp/org-exp-bibtex.el 2011-08-09 7:39:35.000000000 -0500 +++ /home/who/.emacs.d/site-lisp/org-exp-bibtex.el 2011-09-06 20:34:55.000000000 -0500 @@ -56,6 +56,7 @@ ;; 2) creates a foo.html and foo_bib.html ;; 3) includes the contents of foo.html in the exported html file +(require 'cl) (require 'org) (require 'org-exp) @@ -90,11 +91,13 @@ (setq tmp-files (cons tmp tmp-files)) (setq extra-args (append extra-args `("-citefile" ,tmp))))) - (when (not (eq 0 (apply 'call-process (append '("bibtex2html" nil nil nil) + (let ((process-environment (copy-alist process-environment))) + (setenv "TMPDIR" ".") + (when (not (eq 0 (apply 'call-process (append '("bibtex2html" nil nil nil) `("-a" "--nodoc" "--style" ,style "--no-header") extra-args (list (concat file ".bib")))))) - (error "Executing bibtex2html failed")) + (error "Executing bibtex2html failed"))) (dolist (f tmp-files) (delete-file f))) </code></pre> <p>The first change helps if you get the error "Symbol's function definition is void: flet", I learned <a href="http://osdir.com/ml/emacs-orgmode-gnu/2010-02/msg00066.html" rel="noreferrer">here</a>. The second change just calls bibtex2html with TMPDIR set to the current directory. The <a href="http://www.lri.fr/~filliatr/bibtex2html/" rel="noreferrer">bibtex2html homepage</a> suggests such a workaround for a problem that bibtex2html has with some TeX installations.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload