I renewcommand the numbering for my tables and figures in my appendix. But when I use the ref command in the text, it doesnt jump to the right figure in the appendix. For example I have figure 1 in my mean section and figure A.Abb.1 in my appendix and I want to use \ref{test123} in the mean section it jumps to figure 1 in the mean section and not to figure A.Abb.1 in the appendix. How can I fix it?
\documentclass[a4paper, 12pt]{article}
\usepackage{hyperref}
\usepackage{amsmath,amssymb,slashbox,graphicx}
\usepackage{float}
\begin{document}
\begin{figure}[h]
\includegraphics[width=1\textwidth,height=180px]{test1234}
\caption{test1234}\label{test1234}
\end{figure}
blabla \ref{test1234}
blabla \ref{test123}
\section*{Appendix}
\setcounter{table}{0}
\renewcommand{\thetable}{A.Tab.\arabic{table}}
\setcounter{figure}{0}
\renewcommand{\thefigure}{A.Abb.\arabic{figure}}
\setcounter{figure}{0}
\begin{figure}[H]
\includegraphics[width=1.0\textwidth]{test}
\caption{test}\label{test123}
\end{figure}
\end{document}
test. When usingexample-image-ainstead, the hyperlink does indeed lead to Figure A.Abb.1, but the .log-file contains the warningpdfTeX warning (ext4): destination with the same identifier (name{figure.1}) has been already used, duplicate ignored. I get this warning only when the float package is loaded. Maybe I've an obsolete version thereof, maybe there's a bug in that package. – Ulrich Diez Jul 20 '18 at 15:57