这是一个最小的工作示例:
\documentclass{article}
\usepackage{natbib,xspace}
\usepackage[colorlinks,citecolor=blue,linkcolor=blue]{hyperref}
\newcommand{\BOGOS}{\hyperlink{BriEtal18a}{BOGOS}\xspace}
\begin{document}
In this article we reference \cite{BriEtal18a} many times. I want to create the shortcut \BOGOS that will still link to the reference in the bibliography. This does not work yet.
\begin{thebibliography}{}
\bibitem[Briol et~al., 2018]{BriEtal18a}
Briol, F.-X., Oates, C.~J., Griolami, M., Osborne, M.~A., and Sejdinovic, D.
(2018+).
\newblock Probabilistic integration: A role in statistical computation?
\newblock {\em Statist.\ Sci.}
\newblock to appear.
\end{thebibliography}
\end{document}
如果单击超链接进行引用,它将带您到参考文献。如果单击我的缩写,则什么也不会发生。我需要知道正确的标签是什么。你能帮忙吗?
答案 0 :(得分:1)
由于您使用的是natbib
,因此可以定义引用别名,该引用将代替常规的\cite
显示:
\documentclass{article}
\usepackage{natbib}
\usepackage[colorlinks,citecolor=blue,linkcolor=blue]{hyperref}
\defcitealias{BriEtal18a}{BOGOS}% Define a citation alias
\newcommand{\BOGOS}{\citetalias{BriEtal18a}}% Use shorthand
\begin{document}
In this article we reference \citet{BriEtal18a} many times.
I want to create the shortcut \BOGOS{} that will still link to the reference in the bibliography.
\begin{thebibliography}{}
\bibitem[Briol et~al., 2018]{BriEtal18a}
Briol, F.-X., Oates, C.~J., Griolami, M., Osborne, M.~A., and Sejdinovic, D.
(2018+).
\newblock Probabilistic integration: A role in statistical computation?
\newblock {\itshape Statist.\ Sci.}
\newblock to appear.
\end{thebibliography}
\end{document}