[texhax] NatBib-based styles and unusual year or author entries

Dan Hatton vi5u0-texhax at yahoo.co.uk
Wed May 30 18:06:30 CEST 2007


On Tue, 29 May 2007, Philip G. Ratcliffe wrote:

> Well, I don't' have any problems with the first citation entry above but the
> second is bound to cause problems: the use of explicit square brackets
> inside an optional argument would send any LaTeX command haywire.  Try using
> \lbrack and \rbrack instead.

Thank you very much Philip, that helped a lot.  NatBib is now
producing author/year citations, as I wanted.  Two problems remained:

Firstly, for a multi-year entry like year="1995 (1911)", the final
output didn't close the brackets: i.e. I see [McGlashan, 1995 (1911],
when I'd like to see [McGlashan, 1995 (1911)].  That was easily fixed
by enclosing the brackets in braces: year="1995 {(}1911{)}".

Secondly, if I have, for example, two bibliography entries such that
\citep{McGlashan:1995:PS},\citep{McGlashan:1995:CT} produces
[McGlashan, 1995 (1911)b],[McGlashan, 1995 (1911)a], then I'd like
\citep{McGlashan:1995:PS,McGlashan:1995:CT} to produce [McGlashan,
1995 (1911)b,a], but instead, it produces [McGlashan, 1995 (1911)b,(].
That one's got me stumped.  Any ideas, please?

-- 

Thanks again

Dan


More information about the texhax mailing list