Hyperlink 超链接到乳胶中的bibitem
以下是一个最低限度的工作示例:Hyperlink 超链接到乳胶中的bibitem,hyperlink,latex,Hyperlink,Latex,以下是一个最低限度的工作示例: \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{BriEt
\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}
如果点击引文的超链接,它会将您发送到参考。如果点击我的缩写,什么也不会发生。我需要知道正确的标签是什么。您能提供帮助吗?由于您正在使用,您可以定义一个引文别名,该别名将显示,而不是常规的\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}