For reference, another method for achieving what the OP asks for is with Bibulous' style templates. An advantage is that templates provide a more direct view of the formatting elements. Thus, for a database file
@article{Rayleigh1892,
author = {Strutt, John William},
journal = {Philosophical Magazine},
nameaddon = {3rd Baron Rayleigh},
pages = {481-502},
shortauthor = {Rayleigh},
title = {On the influence of obstacles arranged in rectangular
order upon the properties of a medium},
volume = {34},
year = {1892}
}
a template file of the form
TEMPLATES:
article = <au>[ (<nameaddon>)], \enquote{<title>}. In:{ }...
\textit{<journal>} <volume> (<year>),{ }...
[pp.~<startpage>--<endpage>|p.~<startpage>|].[ <note>]
SPECIAL-TEMPLATES:
authorlist = <author.to_namelist()>
editorlist = <editor.to_namelist()>
authorname.n = [<authorlist.n.first> ][<authorlist.n.middle> ]...
[<authorlist.n.prefix> ]<authorlist.n.last>...
[, <authorlist.n.suffix>]
au = <authorname.0>, ...,{ and }<authorname.9>
citelabel = [<shortauthor.0:2><year.2:3>|<authorlist.0.last.0:2><year.2:3>|]
sortkey = <authorlist.0.last>
makes use of the nameaddon
and shortauthor
fields provided in the database entry. Here the 0:2
grabs the first three letters of the shortauthor
field, and the 2:3
index grabs the last two numbers in the year
field. Compiling the *.tex
file
\documentclass{article}
\begin{document}
\nocite{*}
\bibliographystyle{example6}
\bibliography{example6}
\end{document}
gives the formatted result desired:
