Inline citations with only author, title and year
Probably not the most efficient way to do this (I'm new to biblatex), but it works
\documentclass{beamer}
\usepackage[backend=bibtex, style=authoryear-comp]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Kennedy01,
author = {Kennedy, Marc C. and O'Hagan, Anthony},
title = {Bayesian calibration of computer models},
journal = {Journal of the royal statistical society: series b (statistical methodology)},
year = 2001,
volume = 63,
number = 3,
pages = {425-464}}
\end{filecontents}
\addbibresource{\jobname.bib}
\newcommand{\customcite}[1]{\citeauthor{#1}, \citetitle{#1}, \citeyear{#1}}
\begin{document}
\begin{frame}
\customcite{Kennedy01}
\end{frame}
\end{document}
Probably the most straightforward way is to define a new citation command:
\DeclareCiteCommand{\customcite}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}%
\indexfield{indextitle}}
{}%
\printnames{labelname}%
\setunit{\labelnamepunct}%
\printfield[citetitle]{labeltitle}%
\newunit
\printfield{year}}
{\multicitedelim}
{\usebibmacro{postnote}}
The same answer as @Oleg Domanov but also adding a hyperlink to the citation:
\documentclass{article}
\usepackage[backref=true]{biblatex}
\usepackage{hyperref}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareCiteCommand{\customcite}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}%
\indexfield{indextitle}}
{}%
\printtext[bibhyperref]{%
\printnames{labelname}%
\setunit{\labelnamepunct}%
\printfield[citetitle]{labeltitle}%
\newunit
\printfield{year}%
}%
}
{\multicitedelim}
{\usebibmacro{postnote}}
\begin{document}
In this cite \customcite{A01} I do get a link now.
\printbibliography
\end{document}
Related questions:
- What do \setunit and \newunit do?
- Suppress quotes or other markup in \citetitle
- Make \cite{my reference} show name and year
- hyperlinking author names in biblatex when using \citeauthor
- biblatex+hyperref: citetitle/citeauthor and get hyperlink
- Hanging references using \fullcite
- Using printfield of biblatex without formatting
- How to extract BibTeX entries (as DOI, abstract, etc.)
- Custom \cite command
- biblatex - How can I make \printfield{number} just print the number (figures) without "Nr."?
- \citefield link to bibliography (hyperref & backref)
- \citefield{key}{author} and \citefield{key}{journal} of biblatex do not work
- Alternative \citetitle command without italics
- Is bibtex unable to \cite specific entry (author, title) in latex?
- How do I cite author in LaTeX?
- Cite title and author with one command