On 02/25/2015 05:41 PM, Marsh wrote:
The web page below shows how to modify standard BibLaTeX
to allow possessive author names in citations (use all three lines in the URL) :

https://tex.stackexchange.com/
       questions/22273/
       author-name-of-textcite-as-possessive

For example, suppose a bib file has the following entry:

@book{knuth,
     author  = {Donald E. Knuth},
     title   = {The {{\TeX}book}},
     publisher   = {Addison-Wesley},
     date    = {1984}
     }

Ordinary usage might include \textcite{knuth}.

The line above would look like:

Ordinary usage might include Knuth (1984).


But with the code shown on the web page, the following would hold.

Modified usage might include \posscite{knuth}.

This would appear as:

Ordinary usage might include Knuth's (1984).

OK. I can get this to work in plain LaTeX and perhaps in LyX by using ERT.
But how can I add the possessive style as a Citation style in
LyX's Citation dialog window for citations so that all citations
can be done though the same interface and without ERT?

To be honest, I am not absolutely sure if this is possible, but it might be. I should add that I am not familiar with now biblatex is used in LyX. I will therefore assume that, within LyX, it looks as if you are using the natbib citation engine.

The citation commands that LyX accepts are defined in the file natbib.module, which LyX loads automatically when natbib is chosen. I believe you can modify this file in the usual way: copy it to you local layouts directory (e.g., ~/.lyx/layouts/) and do with it what you will. The syntax of the file is not as terrible as it looks. You will need to add posscite as a possible command to the CiteEngine authoryear section, indicating whether it takes optional arguments and if so how many. You will then need to add a macro for it to the authoryear CiteFormat section. That's where a little figuring out will be required, but ask again if you need help.

Richard

Reply via email to