LyX and Jurabib

I’m writing a book, so fussy things like getting references to appear right in the text have been occupying my time unexpectedly. I use the LyX document processor, which I really enjoy for writing long documents like my thesis and this book.

Here’s how to get nice reference to appear in the text like this (Smith, 1995).

In LyX:

  • Document->Settings->Bibliography select Jurabib
  • Document->Settings->Latex preamble paste this:
% Jurabib bibliography
\jurabibsetup{%
titleformat=italic,%
titleformat=commasep,%
authorformat=and, % yield foo, bar, and baz not foo/bar/baz
commabeforerest,%
ibidem=strict,%
citefull=first,%
lookat,%
oxford,%
pages=format,%
idem%
}
  • Do one of these two things:
    • For every citation in your document, when you insert it, select the “citation style” on the citation dialog that looks like (Smith, 1995)
    • Do a global search/replace on the raw .lyx file using a text editor, making sure every citation looks like “LatexCommand citep”, not “cite” or other variants.