For my master's thesis I changed my citation package from
bibtex8, primarily because I need babel to translate my bibliography to Norwegian. But I miss the
\possessivecite command from the
harvard package, and I haven't found anything like it in the
Making a command like
would solve it, but then I won't be able to cite a certain page with
and I would really like to. As I'm writing in Norwegian, I also need the possessive to be
' when the author's name ends with s/sh/sj/rs/z (much like in English)and just
s (no apostrophe) in any other case. How do I do that?
The appropriate possessive suffix can be generated by examining the last few characters of the label. This is straightforward using the package
Possessive citation commands in English are much easier to construct. An example under the the standard author-year styles is covered in another question.
authoryear and its variants
In response to a feature request on possessive citations, Philipp Lehman demonstrated how one could generate a possessive
labelnamein English using a format alias. The code below extends this approach to other types of labels and Norwegian possessives. It should work for all variants of the standard author-year styles.
The approach for this style is similar, but when the label is generated by the bibliography macro
cite:labelit can take on many different formats depending on the entry type and available fields. So the code below redefines the macro locally for use by the possessive citation command.