Hipervínculo a la cita completa, no solo al número

Hipervínculo a la cita completa, no solo al número

Quiero que toda la cita sea un enlace a la entrada de bibliografía correspondiente, en lugar de solo el número.

También quiero hacer el argumento opcional de \citeparte de este enlace.

Mi MWE:

\documentclass[12pt,a4paper]{article}
%------------------------------------------------------------
\usepackage{amsmath,amssymb,amsthm}         
%------------------------------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\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}
By \cite[Theorem2.1]{4}, the A-covariance operator

\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}

Me gustaría que el resultado del \citecomando fuera algo como esto:

ingrese la descripción de la imagen aquí

Respuesta1

Investigué un poco y no encontré ninguna manera de hacer lo que quieres con un método listo para usar.

Hice algo, pero no es bonito y pueden ocurrir errores.

(Casi) como dijo Donald Knuth:

Tenga cuidado con los errores en el siguiente código; Sólo lo probé, no probé que fuera correcto.

:PAG

Definí un nuevo comando \ccite. Éldeberíafunciona exactamente como el \citecomando estándar. El \ccitecomando es un contenedor para el \citecomando real que llama a este último dentro de un archivo \hyperlink.

Utiliza \hyperlinkla cite.<citation-name>etiqueta para crear el hipervínculo a la bibliografía y adjunta el enlace al \citecomando.

El \ccitecomando funciona con el argumento opcional del \citecomando y también funciona en caso de que la bibliografía esté construida con bibTeX. Aunque no lo he probado con bibLaTeX.

Nota:Dado que el hipervínculo se realiza con un comando de citaycon un comando de enlace, el color de la cita completa viene dado por la opción citecolory linkcolorde hyperref.

Asi que aqui esta:

ingrese la descripción de la imagen aquí

\documentclass[12pt,a4paper]{article}
%------------------------------------------------------------
\usepackage{amsmath,amssymb,amsthm}
%------------------------------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\definecolor{citeblue}{HTML}{617BAC}
\usepackage[colorlinks=true,pagebackref=true]{hyperref}
\hypersetup{urlcolor=blue, citecolor=citeblue, linkcolor=citeblue}
% ------------------------------------------------------------
\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}

\makeatletter
\def\ccitecolor{red}
\def\ccite{%
  \@ifnextchar[{\@@ccite}{\@ccite}%
}
\def\@@ccite[#1]#2{%
  \hyperlink{cite.#2}{\cite[#1]{#2}}%
}
\def\@ccite#1{%
  \hyperlink{cite.#1}{\cite{#1}}%
}
\makeatother

\begin{document}

By \ccite{4}, the A-covariance operator

By \ccite[Theorem 2.1]{4}, the A-covariance operator

By \textcolor{citeblue}{\cite[Theorem 2.1]{4}}, the A-covariance operator

\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}

información relacionada