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:
\usepackage[%
authorformat=smallcaps,%
titleformat=italic,%
titleformat=commasep,%
commabeforerest,%
ibidem=strictdoublepage,%
citefull=first,%
oxford,%
pages=test,%
idem,%
super,%
opcit,%
% human,%
bibformat=ibidem
]{jurabib}
\makeatletter
\jb@dotfalse
\makeatother
\AddTo\bibsenglish{%
\def\edbyname{ed.}%
\def\editorname{(ed.)}%
\def\editorsname{(eds.)}%
\def\incollinname{in}%
\def\inname{in}%
}
\bibliographystyle{jox}
\renewcommand{\jbbtasep}{ \& }
\renewcommand{\jbbstasep}{ \& }
\renewcommand{\jbbtesep}{ \& }
\renewcommand{\jbbstesep}{ \& }
\renewcommand{\bibbtasep}{ \& }
\renewcommand{\bibbstasep}{ \& }
\renewcommand{\bibbtesep}{ \& }
\renewcommand{\bibbstesep}{ \& }
and at the end of the document:
\nobibliography{/home/swhitton/doc/swhittonfhs}
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:
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)
(org-add-link-type
"cite" 'ebib
(lambda (path desc format)
(cond
((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
(quote
("~/doc/swhittonfhs.bib")))
(defun org-mode-reftex-setup ()
(load-library "reftex")
(and (buffer-file-name) (file-exists-p (buffer-file-name))
(progn
;enable auto-revert-mode to update reftex when bibtex file changes on disk
(global-auto-revert-mode t)
(reftex-parse-all)
;add a custom reftex cite format to insert links
(reftex-set-cite-format
"[[cite:%l][]]")
)))
(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.