|||

Using APA citation and bibliography styles in Lyx

Lyx (lyx.org) is IMHO certainly the best software for writing longer,
structured documents like a thesis. But most of its users are in the
hard sciences so if you have a soft-science problem, like how to use
APA (American Psychological Association) citation and bibliography
styles, it is harder to find help. That’s why I have written this very
brief note on just that.

First, you have to install the necessary styles so that lyx can use
them. I am on ubuntu so I installed texlive and anything related to it
using the package manager. Beware though, these are pretty big
installs and can take a while. I think installing texlive is easier
than installing individual styles.

Second, you have to pick the style you want in your bibliography. In
lyx, click on the field where your bibliography is and select a style.
There are a lot of apa-like styles such as apa, apacann etc, I have no
idea what the differences are but I chose apacite and that works fine
for me. If you don’t have a bibliography yet, you have to go Insert /
List-TOC / Bibtex bibliography.

Third, in your document you have to declare that you want to use the
same style: Document / Settings / latex preamble and then type
usepackage{apacite} or whatever the style name is that you selected
in step two.

If your doc doesn’t compile, try selecting a different style.

That’s it. I was pretty pleased with the results.

You still might find a couple of niggles.

First, if you have an Institution as an author (e.g. the World Bank),
bibtex will treat this as a name so you will get listings like Bank,
World. To get round this you have to put the name in braces: {World
Bank}. Now I use zotero as my reference manager, and the good news is
that zotero doesn’t mess with this, so if you write {World Bank} in
the author field in Zotero it will stay the same in bibtex, which
means it will come out right in lyx.

My other niggle was that bibtex likes to decapitalise words inside
titles, so Problems in Kosova” becomes Problems in kosova”. The same
braces can help you out here - try experimenting with {Problems in
Kosova} or Problems in {K}osova until you get what you want. Again,
this works OK in zotero. A more permanent way is to modify the corresponding .bst file which is the culprit, as suggested on http://forums.zotero.org/discussion/4331/bibtex-importexport-problems/. As suggested there, you have to edit the file, in my case /usr/share/texmf-texlive/bibtex/bst/apacite/apacite.bst, and find instances of something like

{ title t” change.case$ }
and change them to something like
{ title }

This worked nicely for me.

The only trouble I am left with is that the last two workarounds mess
up bibliographies generated directly by zotero because the braces
remain for all to see. Still, a quick search-and-replace can fix that.

Up next Also in Bosnia & Herzegovina, satisfied parents are those who believe their school representatives are effective In the mixed effects regression for all 10 countries in the research I mentioned previously on this blog Keeping R libraries in sync between different computers using Dropbox We have a few computers including laptops in our network which all use R (r-project.org) for statistics. We use Dropbox to keep all our files in
Latest posts Causal Mapping - an earlier guide The walk to school in Sarajevo Glitches Draft blog post for AEA365 Theory Maker! Inventory & analysis of small conservation grants, C&W Africa - Powell & Mesbach! Lots of charts! Answering the “why” question: piecing together multiple pieces of causal information rbind.fill for 1-dimensional tables in r yED graph editor Examples of trivial graph format Using attr labels for ggplot An evaluation puzzle: “Talent show” An evaluation puzzle: “Mobile first” An evaluation puzzle: “Many hands” An evaluation puzzle: Loaves and fishes An evaluation puzzle: “Freak weather” An evaluation puzzle: “Billionaire” Publications Using Dropbox for syncing Shiny app data on Amazon EC2 Progress on the Causal Map app Articles and presentations related to Causal Maps and Theorymaker Better ways to present country-level data on a world map: equal-area cartograms A starter kit for reproducible research with R A reproducible workflow for evaluation reports Welcome to the Wiggle Room Realtime comments on a Theory of Change Responses to open questions shown as tooltips in a chart A panel on visualising Theories of Change for EES 2018? Peer mentoring for evaluators How do you explain reproducible research to clients? Links for my AEA eval2017 presentation, Washington DC