Skip to content

如何帮\citeauthor 和 \citetitle 添加超链接? #223

Answered by earthmoon
earthmoon asked this question in Q&A
Discussion options

You must be logged in to vote

使用此命令可解决:

\DeclareCiteCommand{\citeauthor}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}%让\citeauthor具有超链接

\DeclareCiteCommand{\citetitle}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexfield{indextitle}}
{}%
\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
{\multicitedelim}
{\usebibmacro{postnote}}%让\citetitle具有超链接

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by earthmoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant