这就是我想做的事情:
\documentclass[11pt,oneside]{article}
\usepackage{biblatex}
\addbibresource{../main.bib}
\usepackage{hyperref}
\begin{document}
\citeauthor{jeff2018} said in his awesome article
\href{\citeurl{jeff2018}}{\citetitle{jeff2018}} that life is great!
\end{document}
这是我所拥有的main.bib
:
@misc{jeff2018,
title={Life Is Great},
author={Lebowski, Jeff},
year={2018},
url={http://www.yegor256.com}
}
无法编译。正确的方法是什么?
答案1
以下是具体方法:
\DeclareCiteCommand{\citea}
{\boolfalse{citetracker}\boolfalse{pagetracker}\usebibmacro{prenote}}
{\href{\thefield{url}}{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}