返回超链接整个单词

返回超链接整个单词

我使用以下代码

\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{theorem}{Theorem}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{definitions}{Definitions}[section]
\newtheorem{notation}{Notation}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{example}{Example}[section]
\numberwithin{equation}{section}

\begin{document}
 \begin{corollary}\label{cor}(\cite[Corollary 3]{4})
    A unilateral weighted shift $T$ on ....
 \end{corollary}

By Corollary \ref{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}

我明白了

在此处输入图片描述

当我点击数字 0.1 时,我会返回推论 0.1。但是,我希望当我点击单词时,Corollary我也会返回推论 0.1。就像在以下论文中一样:

在此处输入图片描述

答案1

您可以使用该cleveref包来

  • 自动插入单词“Corollary”

  • 使完整名称可点击


\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}
    A unilateral weighted shift $T$ on ....
 \end{corollary}

By \cref{cor}, there exists a polynomial......

\end{document}

在此处输入图片描述

相关内容