# Cross-reference a subsection without showing both section and subsection number [closed]

I am using LaTeX and make a \label{x} on subsection II.1 so code:

\subsection{my project }\label{ssec:num1}


and later in text, i use \ref{ssec:num1} to cross-reference this subsection. However, instead of II.1, I get II II.1. I cannot remove section number II from the cross-reference.

Hope someone can give me a help.

## closed as unclear what you're asking by user31729, Mensch, TeXnician, Stefan Pinnow, Henri MenkeDec 29 '18 at 21:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to TeX.SE. Please tell us which document class you use. Please also tell us if your code or a package you load modifies the macro \p@subsection. – Mico May 23 '18 at 19:40