# How to enable Author - Year in text using PhDbiblio-* style? [closed]

I am using `\bibliographystyle{Latex/Classes/PhDbiblio-url2}` available at http://openwetware.org/wiki/LaTeX_template_for_PhD_thesis.

It requires the `natbib` package and I installed it as `\usepackage[square,sort,comma,numbers]{natbib}`.

My problem is: since I am using PhDbiblio-* style, it avoids the in-tex references to be [Fred et al. 1990]. I only can have number in-tex references as "[45]". Actually it seems to be compulsory to have "numbers" in this PhDbiblio-* style.

Any clues on how to stup/change the PhDbiblio-* style in order to show the in-tex referecne as [Fred et al. 1990]?

-

## closed as too localized by lockstep, Marco Daniel, Seamus, Stefan Kottwitz♦Jan 13 '12 at 15:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

Can you not just pick a different style, for example `plainnat`, which is author-year rather than numeric? –  Joseph Wright Sep 12 '11 at 10:57
Yes, I could but then I loose all the fancy config in PhDbiblio-url2 style. Thanks anyway. –  user7806 Sep 12 '11 at 11:43
Starting with a proper (author-year) base style and then adding some "fancy config" is much more feasible than starting with the proper "fancy config" and then trying to bend the (numeric) base style. –  lockstep Sep 14 '11 at 15:40
I tried that either, but it seems that my problem actually has nothing to do with the PhDbiblio-url2 style. It seems that some versions of natbib fail working with author-year argument. –  user7806 Sep 15 '11 at 7:51
In that case, add a minimal working example (MWE) that illustrates your problem. –  lockstep Sep 17 '11 at 20:22

I don't know if you're still interested in this topic, but here goes. Since you say that the .bst file can be used with the `natbib` package, have you tried issuing the command
``````\setcitestyle{authoryear,square,aysep={}}
after the `\usepackage{natbib}` command? Then, if you use the natbib's `\citep` command, you should hopefully get in-text citations formatted like `[Jones 1988]` and `[Smith et al. 2011]`. I must warn you that I haven't tried out this particular .bst file on any of my own papers, so I'm operating mostly on the basis of what the `natbib` documentation says. Happy TeXing!