I used to cite all my sources in essays but have become lazy this term and my tutor has been (very politely) complaining, so I resolved to learn BiBTeX over this vac to automate the process. Five hours later and I have everything in place and can forget about this.

Wanted to share the code for getting the citation style used in academic philosophy papers, since this is the kind useful to me, and it took me a while to find the information I needed. This isn’t quite perfect: there is a full stop at the end of the citation I can’t remove (it is implied by the ‘oxford’ style, apparently), and I can’t get an ampersand between editor names. Not going to worry about that now; I now have an easy way to obsessively cite everything which is what I wanted.

In the preamble:

% human,%



\renewcommand{\jbbtasep}{ \& }
\renewcommand{\jbbstasep}{ \& }
\renewcommand{\jbbtesep}{ \& }
\renewcommand{\jbbstesep}{ \& }
\renewcommand{\bibbtasep}{ \& }
\renewcommand{\bibbstasep}{ \& }
\renewcommand{\bibbtesep}{ \& }
\renewcommand{\bibbstesep}{ \& }

and at the end of the document:


A useful resource I used in building this:

Survey about all jurabib options

It’s possible to integrate Org-mode, RefTeX and ebib to make it easy to edit .bib reference databases and to insert citations. Here is my code, and the relevant pages I’ve found it:

LaTeX Export | Worg

Research Paper Management with Emacs, org-mode and RefTeX | Mathletic

;;; ebib for editing BiBTeX databases

(autoload 'ebib "ebib" "Ebib, a BiBTeX database manager." t)
(setq ebib-preload-bib-files '("~/doc/swhittonfhs.bib"))

;; BiBTeX stuff
;; mainly from http://orgmode.org/worg/org-tutorials/org-latex-export.html

(org-add-link-type "ebib" 'ebib)

 "cite" 'ebib
 (lambda (path desc format)
    ((eq format 'html)
     (format "(<cite>%s</cite>)" path))
    ((eq format 'latex)
     (if (or (not desc) (equal 0 (search "cite:" desc)))
         (format "\\cite{%s}" path)
       (format "\\cite[%s][%s]{%s}"
               (cadr (split-string desc ";"))
               (car (split-string desc ";"))  path))))))

(setq org-latex-to-pdf-process '( "pdflatex -interaction nonstopmode -output-directory %o %f" "bibtex %f" "pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f" ))

;; from http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/

(setq reftex-default-bibliography

(defun org-mode-reftex-setup ()
  (load-library "reftex")
  (and (buffer-file-name) (file-exists-p (buffer-file-name))
                                        ;enable auto-revert-mode to update reftex when bibtex file changes on disk
         (global-auto-revert-mode t)
                                        ;add a custom reftex cite format to insert links
  (define-key org-mode-map (kbd "C-c )") 'reftex-citation)

(add-hook 'org-mode-hook 'org-mode-reftex-setup)

Edit 11/xii/2011: Surprisingly, since I assumed that only sites for science journals would have this, JSTOR can export articles to .bib for you to include easily.