Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I drop the authors first name in the following MWE? I have already suppressed the volume and pages of the entry. I just want this to read:

Brav and Heaton (2002). Competing Theories of Financial Anomalies. Reveiw of Financial Studies.

\documentclass{beamer}
\usetheme{Boadilla}
\usepackage{chngcntr}
\usepackage{lmodern}

\begingroup\newif\ifmy
\IfFileExists{\jobname.bib}{}{\mytrue}
\ifmy
\begin{filecontents}{\jobname.bib}
@ARTICLE{Brav2002,
author = {Alon Brav and J. B. Heaton},
title = {Competing Theories of Financial Anomalies},
journal = {Reveiw of Financial Studies},
year = {2002},
volume = {15:2},
pages = {575-606},
owner = {User},
timestamp = {2013.11.03}
}
\end{filecontents}
\fi\endgroup

\usepackage[backend=bibtex,citestyle=verbose]{biblatex}
\addbibresource{delete.bib}


\renewbibmacro{in:}{\hspace{-5pt}}
\AtEveryCitekey{\clearfield{pages}\clearfield{volume}}


\begin{document}
\begin{frame}
\frametitle{Stuff famous linguists asked}
\begin{block}{A block}
\begin{enumerate}
\item Is it part?\footcite{Brav2002}
\item More Saussure.
\end{enumerate}
\end{block}
\end{frame}
\end{document}
share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can use the \DeclareNameFormat directive to throw away the first names. I just added the following line to your code

\DeclareNameFormat{}{\usebibmacro{name:first-last}{}{#5}{#1}{#7}}

which just omits the output of first names, as you can see in the sample page below:

enter image description here

I have to admit it is in some parts a bit of a hacky solution as it just abuses the name:first-last bibmacro and I also did not check if it deals with name suffixes and prefixes correctly, but it works in the environment of your MWE.

share|improve this answer
    
This will go awry if biblatex needs to add an "et al." (it will just be eaten up), better use something like \DeclareNameFormat{}{\usebibmacro{name:first-last}{}{#5}{#1}{#7}\usebibmacro{na‌​me:andothers}}. (Plus, I'm not even sure whether one should use \DeclareNameFormat with an empty first argument. There is also a bibmacro{name:last}.) –  moewe Mar 14 at 15:57
    
As written it's some hackish solution and I didn't think much about and also kept my research about the possible bibmacros rather short. –  Benedikt Bauer Mar 14 at 18:43

I'd suggest using the following redefinition of cite:full:

\renewbibmacro*{cite:full}{%
  \usebibmacro{cite:full:citepages}%
  \printtext[bibhypertarget]{%
    \usedriver
      {\DeclareNameAlias{sortname}{labelname}}
      {\thefield{entrytype}}}%
  \usebibmacro{shorthandintro}}

cite:full in the verbose styles normally just prints the whole bibliography entry as it would be printed in the bibliography, but before that it changes sortname to default (\DeclareNameAlias{sortname}{default}), so we get names in first-last format (as that is what default is set to ... by default).

We simply change sortname to labelname, so we get last names if possible and unambiguous names otherwise (depending on the uniqeuname option; anyway, the name format will be the same as in subsequent citations).


If you insist on last names no matter what, I'd suggest

\DeclareNameFormat{last}{%
  \usebibmacro{name:last}{#1}{#3}{#5}{#7}%
  \usebibmacro{name:andothers}}

\renewbibmacro*{cite:full}{%
  \usebibmacro{cite:full:citepages}%
  \printtext[bibhypertarget]{%
    \usedriver
      {\DeclareNameAlias{sortname}{last}}
      {\thefield{entrytype}}}%
  \usebibmacro{shorthandintro}}

MWE

\documentclass{beamer}
\usetheme{Boadilla}
\usepackage{chngcntr}
\usepackage{lmodern}
\usepackage{filecontents}

\begin{filecontents*}{\jobname.bib}
@ARTICLE{Brav2002,
author = {Alon Brav and J. B. Heaton},
title = {Competing Theories of Financial Anomalies},
journal = {Reveiw of Financial Studies},
year = {2002},
volume = {15:2},
pages = {575-606},
owner = {User},
timestamp = {2013.11.03}
}
\end{filecontents*}

\usepackage[backend=bibtex,style=verbose]{biblatex}
\addbibresource{\jobname.bib}


\renewbibmacro{in:}{\hspace{-5pt}}
\AtEveryCitekey{\clearfield{pages}\clearfield{volume}}

\renewbibmacro*{cite:full}{%
  \usebibmacro{cite:full:citepages}%
  \printtext[bibhypertarget]{%
    \usedriver
      {\DeclareNameAlias{sortname}{labelname}}
      {\thefield{entrytype}}}%
  \usebibmacro{shorthandintro}}

\begin{document}
\begin{frame}
\frametitle{Stuff famous linguists asked}
\begin{block}{A block}
\begin{enumerate}
\item Is it part?\footcite{Brav2002}
\item More Saussure.\footcite{Brav2002}
\end{enumerate}
\end{block}
\end{frame}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.