我正在尝试将一个单词设置为超链接并可点击,这样如果单击它,就可以在参考书目中看到某个参考资料。我猜想\hyperlink
这可行,但实际上不行。这是一个示例:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[hypcap]{caption}
\usepackage{cleveref}
\usepackage[style=nature]{biblatex}
\usepackage[english]{babel}
\addbibresource{bible}
\hypersetup{colorlinks=true,linkcolor=blue,filecolor=blue,urlcolor=blue,citecolor=blue}
\begin{document}
\section{Introduction}
... phenomenon; Gent and Lindley \hyperlink{\cite{gent1959internal}}{proposed} a more effective strategy...\par
\noindent... phenomenon; Gent and Lindley proposed a more effective strategy...\cite{gent1959internal}
\newpage
\printbibliography
\end{document}
这也是我的.bib
文件:
@inproceedings{gent1959internal,
title={Internal rupture of bonded rubber cylinders in tension},
author={Gent, AN and Lindley, PB},
booktitle={Proceedings of the Royal Society of London A: Mathematical, Physical and Engineering Sciences},
volume={249},
number={1257},
pages={195--205},
year={1959},
organization={The Royal Society}
}
答案1
biblatex
自动为参考书目设置超链接锚点,我们可以使用cite.<refsection>@<entrykey>
以下命令进行访问
\newcommand{\citelink}[2]{\hyperlink{cite.\therefsection @#1}{#2}}
您可以将其用作\citelink{<entrykey>}{<linked text>}
,例如\citelink{sigfridsson}{proposed}
。
平均能量损失
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[style=nature]{biblatex}
\usepackage[english]{babel}
\addbibresource{biblatex-examples.bib}
\newcommand{\citelink}[2]{\hyperlink{cite.\therefsection @#1}{#2}}
\begin{document}
\citeauthor{sigfridsson} \citelink{sigfridsson}{proposed} a more effective strategy.\par
\citeauthor{sigfridsson} proposed a more effective strategy. \cite{sigfridsson}
\newpage
\printbibliography
\end{document}