Re: [biblatex] How to define a customized \citeauthor command?



Am 02.12.2010 16:38, schrieb Denis Bitouzé:

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
.