On 12/17/2012 03:22 AM, Jacob Bishop wrote:
First of all, I have never written a layout or module before, so please be patient if this does not do all you hoped. However, I do have a new apa6 layout that seems to work pretty well for me. It is based on the apa layout which is included in LyX, and was originally written by Randy Gobbel. I made modifications to get this to work well with the new apa6 class, updating several styles, adding others, and organizing them in the dropdown menu.

The apa6 document class has three citation modes, ordinary apacite, apacite with natbib, and biblatex. I use bibtex, so the natbib option was the one I was most interested in. To get natbib to work with apacite in lyx, I created a simple module called Natbibapa. Natbibapa alllows you to use natbib and the apacite package together, which is necessary for doing apa6 citations. This package actually works fine to allow apa6 citations in documents with any style. It is very simple, and basically just fixes a conflict with natbib options...Jürgen Spitzmüller's suggestion was critical to getting this to work.

I did not make the natbibapa module required by the apa6 layout since it should be possible to use biblatex with the apa6 layout file. I have never used biblatex so I have not tested this. If someone does, maybe they could try it and let me know how it works. Attached are three files: natbibapa.module, apa6.layout, and SimpleApa6Example.lyx Installing the natbibapa module and the apa6 layout should allow you to compile the example .lyx file. At that point you're pretty much there. As a reminder, you just have to copy the .layout and .module files into the LyX layout folder (on windows, this is something like C:\Users\YourName\AppData\Roaming\LyX2.0\layouts. On Ubuntu, I use /usr/share/lyx/layouts/ ). Then, reconfigure LyX and you should be good to go.

If you use this, please let me know how it works for you (or doesn't).

I assume you would be happy to have us add this to LyX itself? If so, can you send a message to lyx-devel saying something like: I hereby authorize my contributions to LyX to be licensed under GPL version 2 or any later version?

Thanks for your work,
Richard

Reply via email to