I'd like to define my own \citeauthor in order to make it print not
only:
Last Name 1[, Last Name 2...]
but:
FirstName1 LastName1[, FirstName2 LastName2...]
I tried to add in my biblatex.cfg:
\DeclareCiteCommand{\myciteauthor}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{first-last}}
{}%
\printnames{first-last}}
{\multicitedelim}
{\usebibmacro{postnote}}
But \myciteauthor{key} prints nothing
Thanks in anticipation for any workaround.
--
Denis
> \printnames{first-last}
This will try to print the "first-last" name list. Obviously, there is
no such field in any entry. Try this:
\printnames[first-last]{labelname}
--
Sender address blackholed, do not reply directly.
You can still reach me by email at: lehman gmx net.
> I'd like to define my own \citeauthor in order to make it print not
> only:
>
prints _all_ authors
\documentclass{article}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[style=alphabetic,
block=none,backend=biber]{biblatex}
\DeclareCiteCommand*{\citeauthor}
{\defcounter{maxnames}{99}%
\defcounter{minnames}{99}%
\defcounter{uniquename}{2}%
\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex{\indexnames{labelname}}{}%
\printnames{labelname}}
{\multicitedelim}
{\usebibmacro{postnote}}
\bibliography{examples}
\begin{document}
foo~\citeauthor*{murray}; bar~\citeauthor*{padhye};
\printbibliography%[maxnames=99]
\end{document}
Herbert
> prints _all_ authors
>
> [...]
Thanks Herbert.
--
Denis
> This will try to print the "first-last" name list. Obviously, there
> is no such field in any entry. Try this:
>
> \printnames[first-last]{labelname}
It works, but I also understood something: thanks Philipp!
--
Denis
>> \printnames[first-last]{labelname}
>
> It works, but I also understood something: thanks Philipp!
BTW, if you want to force printing of the full list (ignoring
maxnames):
\printnames[first-last][-\value{listtotal}]{labelname}