付録の表へのハイパーリンクがうまく機能しない

付録の表へのハイパーリンクがうまく機能しない

私の論文では、付録に補足表を追加する必要があります。付録以外のテキストでそれらの表を参照する必要があります。うまく機能するハイパーリンクもありますが、ここで記述する例のように、うまく機能しないものもあります。最初の参照をクリックすると、 \ref{tab:BC}最初の表(付録にない表)に移動します。ただし、2 番目の参照をクリックすると、\ref{tab:Supl}付録の表に移動するはずが、最初の表(参照は\ref{tab:BC})が表示されます。

付録のフォーマットを変更して、「Anexo」と「Anexo I」が表示されるようにしました。また、補足表の名前(付録にない表と区別するため)とそのカウンターを変更しました。これが問題なのでしょうか?

いろいろ試してみましたが、どうすれば直せるのか分かりません。

ドキュメント全体と同様に、序文にすべてのパッケージと項目を追加します。この例には役に立たないパッケージもあるかもしれませんが、念のため何も変更したくありませんでした。

\documentclass[a4paper]{article}
\usepackage[spanish, es-tabla]{babel}  
\parindent = 0cm  
\usepackage{graphicx}  
\usepackage{float}  
\usepackage{array} 
\usepackage[lmargin=2.5cm, rmargin=2.5cm, top=2cm, bottom=2cm]{geometry}
\usepackage{fancyhdr} 
\pagestyle{fancy}  
\fancyhead{}  
\fancyfoot{} 
\fancyfoot[C]{\thepage}  
\usepackage[nottoc]{tocbibind}
\renewcommand{\headrulewidth}{0pt}  
\usepackage{tocloft}  
\renewcommand{\cftaftertoctitle}{}  
\usepackage{fontspec}  
\setmainfont{Arial}  
\setsansfont{Arial}  
\usepackage[shortcuts]{extdash}  
\usepackage{hyperref}  
\usepackage{amssymb} 
\usepackage[autostyle]{csquotes} 
\usepackage{caption}  
\usepackage[labelfont=bf,labelsep=period]{caption}  
\usepackage{titlesec}  
\setcounter{secnumdepth}{5}  
\titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}  
\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}  
\setcounter{tocdepth}{5}  
\usepackage[title]{appendix}  
\addto\captionsspanish{%
  \renewcommand\appendixname{Anexo}  
  \renewcommand\appendixpagename{Anexos}
  \renewcommand{\appendixtocname}{Anexos}
}
\usepackage[hang,flushmargin]{footmisc}  
\usepackage{enumitem}   
\usepackage{longtable}  
\usepackage{multirow}  
\usepackage{booktabs,threeparttablex}
\usepackage{caption}
\captionsetup{singlelinecheck=false}  
\captionsetup[figure]{font=footnotesize} 


\begin{document}

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. (Tabla \ref{tab:BC})

Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. (Tabla suplementaria \ref{tab:Supl})

\begin{ThreePartTable}
\renewcommand\TPTminimum{\textwidth}
\setlength\LTleft{0pt}
\begin{TableNotes}[flushleft] 
    \footnotesize 
    \item[*] Footnote1
\end{TableNotes}

\begin{longtable}{| m{1.7cm} | m{2.1cm}| m{1.4cm}| m{2cm}| m{4.4cm}| m{1.7cm}|}
\caption{\textit{\textbf{It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout}}} \\
\hline
\textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo (Foo)} & \textbf{Foo\tnote{*}} \\ 
\hline
\endfirsthead
\multicolumn{6}{l}{\tablename\ \thetable:
\textit{It is a long established fact that a reader }(Cont\ldots)}\\
\hline
\textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo (Foo} & \textbf{Foo} \\ 
\hline
\endhead
\multicolumn{6}{l}{}\\
\endfoot
\noalign {\rule [-1.4ex]{6.7cm}{0.4pt}}
\insertTableNotes
\endlastfoot
\label{tab:BC}%
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\end{longtable}
\end{ThreePartTable}

\begin{appendices}
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}

\renewcommand{\thesection}{\roman{section}}
\clearpage
\addappheadtotoc
\appendixpage

\renewcommand\spanishtablename{Tabla Suplementaria}
\setcounter{table}{0}

\section{}
\begin{ThreePartTable}
\renewcommand\TPTminimum{\textwidth}
\setlength\LTleft{0pt}
\begin{TableNotes}[flushleft] 
    \footnotesize 
    \item[*] Footnote1
\end{TableNotes}

\begin{longtable}{| m{1.7cm} | m{2.1cm}| m{1.4cm}| m{2cm}| m{4.4cm}| m{1.7cm}|}
\caption{\textit{\textbf{It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout}}} \\
\hline
\textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo (Foo)} & \textbf{Foo\tnote{*}} \\ 
\hline
\endfirsthead
\multicolumn{6}{l}{\tablename\ \thetable:
\textit{It is a long established fact that a reader }(Cont\ldots)}\\
\hline
\textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo} & \textbf{Foo (Foo} & \textbf{Foo} \\ 
\hline
\endhead
\multicolumn{6}{l}{}\\
\endfoot
\noalign {\rule [-1.4ex]{6.7cm}{0.4pt}}
\insertTableNotes
\endlastfoot
\label{tab:Supl}%
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\multirow{4}{*}{10-343} & Foo & 2 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 1 & Foo & Fooooo (0.001) & F \\ 
                        & Foo & 6 & Foo & Foooo (0.001) & F \\ 
                        & Foo & 4 & Foo & Foooo (0.001) & F \\ 
\hline
\end{longtable}
\end{ThreePartTable}
\end{appendices}

\end{document}

よろしくお願いします。

答え1

UlrikeFischerのおかげで問題は解決しました!

解決: \renewcommand\theHtable{Appendix.\thetable}

関連情報