我们如何才能使 LaTeX 文档中的表格成为可点击的超链接?

我们如何才能使 LaTeX 文档中的表格成为可点击的超链接?

我需要使段落内的“表格”一词可点击。

我试过引用图形时,使文本和图形名称可点击但我得到的却是“???”。

enter image description here

答案1

自动方式,参见\autoref特点hyperref

from the \autoref{tab:first}

手动使用\hyperref

from the \hyperref[tab:first]{Table \ref*{tab:first}}

答案2

感谢@Heiko 和@Christian,我得到了我想要的。

    \documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage[nameinlink,noabbrev]{cleveref}
    \usepackage{array}
    \usepackage{multirow}
    \usepackage{makecell}


    \begin{document}

    here text here text here text here text here \autoref{tab:Table1} text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text  .... Similarly to the concluded idea from the \cref{tab:Table1} Table 1 .... here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text  

    \begin{table}[h]
    \centering
    \begin{tabular}{lll}
    \hline
    \multirow{4}{*}{aaa} & \multicolumn{1}{l}{111} & \multicolumn{1}{l}{222} \\
    \cline{2-3} & \multicolumn{1}{l}{333} & \multicolumn{1}{l}{444} \\
    \cline{2-3} & \multicolumn{1}{l}{555} & \multicolumn{1}{l}{666} \\
    \cline{2-3} & \multicolumn{1}{l}{777} & \multicolumn{1}{l}{888} \\
    \hline
    \ttfamily aaa & \ttfamily bbb & \ttfamily ccc \\
    \hline
    \end{tabular}
    \caption{Table 1}
    \label{tab:Table1}
    \end{table}

    \end{document}

enter image description here

相关内容