On 24/10/2011 8:29 PM, Paul Clist wrote:
On 24 October 2011 17:54, Manolo Martínez wrote:

Paul,

You need indeed to use the mumeric option, but then, when compiled, the
.bst
takes care of the (author, year) stuff. Why is this not acceptable?

Attached your test.lyx (with another citation; apparently my copy of
test.bib
is different!) and the pdf I get.

Manolo
On 10/24/11 at 02:54pm, Paul Clist wrote:
Manolo,

I've attached a short lyx document. I've dropped everything from the
preamble, and (as requested in the aea documentation) changed LaTeX font
encoding to “None (no fontenc)”. I used the test.bib file in this
example,
and attached the aea .cls  and .bst files.

Thanks

Paul



On 24 October 2011 13:10, Manolo Martínez wrote:

On 10/24/11 at 12:51pm, Paul Clist wrote:

simple, but I have searched high and low to no avail. Using the
aea.cls
(for
the American Economic Review) I have problems if I try to use either
Natbib
or Jurabib, i.e. only the default bibliography works.

    - With Natbib I get the error messages "Command x already
defined",
where
    x is /harvardurl, /harvarditem and so on.
    - With Jurabib the error message is "command \citeyear already
defined".

Is there anything bibliography-related in the preamble of the document?
Could you post a short lyx file with which you get the error?

Manolo
--


Manolo,

Thanks for the response. I problem with this is that the only choice is
(Anon. 1967): you can't choose Anon (1967) or even bibliography only (which
would cut down on the amount of work for a work around). It would
essentially mean having to not use a bibliography package and do it all by
hand - not an ideal solution by any means.

Best,

Paul


The package harvard.sty needs to be loaded before natbib.sty to avoid the `Command already defined' errors. Unfortunately that's not what LyX does at the moment. To fix it, I would try the following. Make a copy of AEA.layout in your user directory, then locate these lines:

Preamble
        \usepackage{harvard}
EndPreamble

and replace them with:

Provides natbib-internal 1
Preamble
        \usepackage{harvard}
        \usepackage[authoryear]{natbib}
EndPreamble

Now reconfigure LyX and restart it. Select natbib (author-year) in your document settings. Make sure to use a .bst file that is compatible with harvard.sty, there are only few of those, but aea.bst is one of them.

Cheers,
Julien

Reply via email to