I have unnumbered sections in my appendix to which I want to refer to specifically.
As the sections are unnumbered, it always just shows the number of the chapter.
My example code:
\documentclass{scrbook}
\usepackage{xr-hyper} %for cross-referencing between documents
\usepackage[hidelinks]{hyperref} % Hyperlinks
\begin{document}
\chapter{Main Document}
Here I refer to appendix \ref{Appendix_1}, appendix \ref{Appendix_2} and appendix \ref{Appendix_3}.
\chapter{Appendix}
\section*{A.1 Appendix 1}
\label{Appendix_1}
My first Appendix.
\section*{A.2 Appendix 2}
\label{Appendix_2}
My second Appendix.
\section*{A.3 Appendix 3}
\label{Appendix_3}
My third Appendix.
\end{document}
It looks like this:
I already tried https://tex.stackexchange.com/a/48610/234353 but that did not work.
Would appreciate any help!


\label/\refalways references the last stepped counter. Since starred sections are unnumbered, the\labels all refer to the chapter. Why do you use unnumbered sections if you want to reference them? – campa Feb 04 '21 at 12:31