![返回超链接参考书目中的整个单词](https://linux22.com/image/389130/%E8%BF%94%E5%9B%9E%E8%B6%85%E9%93%BE%E6%8E%A5%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E4%B8%AD%E7%9A%84%E6%95%B4%E4%B8%AA%E5%8D%95%E8%AF%8D.png)
灵感来自这个答案, 我们有
\documentclass[12pt,a4paper]{article}
%------------------------------------------------------------
\usepackage{amsmath,amssymb,amsthm}
%------------------------------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,pagebackref=true]{hyperref}
\hypersetup{urlcolor=blue, citecolor=red, linkcolor=blue}
\newtheorem{corollary}{Corollary}[section]
\usepackage[capitalise,noabbrev,nameinlink]{cleveref}
\begin{document}
\begin{corollary}\label{cor}(\cite[Corollary 3]{4})
A unilateral weighted shift $T$ on ....
\end{corollary}
By \cref{cor}, there exists a polynomial......
\begin{thebibliography}{10}
\bibitem{4}{W. Arendt, J.R. Goldstein, and J.A. Goldstein:} {Outgrowths
of Hardy's inequality,} Contemp. Math. 412 (2006), pp. 51-68.
\end{thebibliography}
\end{document}
\end{document}
我希望当我点击 Corollary 3 这个词时,我会回到参考书目。但是用我的代码,我只能点击红色的数字 1。就像这张图片
答案1
如同这个答案hyperref
,但我们可以利用已经为所有引用条目设置锚点的事实。
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,pagebackref=true]{hyperref}
\hypersetup{urlcolor=blue, citecolor=red, linkcolor=blue}
\newtheorem{corollary}{Corollary}[section]
\usepackage[capitalise,noabbrev,nameinlink]{cleveref}
\makeatletter
\newcommand*{\hyperlinkcite}[2]{%
\hyper@@link[cite]{}{cite.#1}{#2}}
\makeatother
\begin{document}
\begin{corollary}\label{cor}(\cite[\hyperlinkcite{arendt}{Corollary 3}]{arendt})
A unilateral weighted shift $T$ on ....
\end{corollary}
By \cref{cor}, there exists a polynomial......
\begin{thebibliography}{10}
\bibitem{arendt}{W. Arendt, J.R. Goldstein, and J.A. Goldstein:} {Outgrowths
of Hardy's inequality,} Contemp. Math. 412 (2006), pp. 51-68.
\end{thebibliography}
\end{document}
如果想要正确地做到这一点,可能必须重新定义\cite
以链接后注论点,但这可能会非常棘手。