I have document with sections and subsections.

Problem is this one. When I use

Sec. \ref{x}

to reference subsection 1.1, of \label{x}, I get result

Sec 1 1.1

Ho to get correct

Sec 1.1


Coding here

\section{My section}
I wanna Sec\ref{def123}.
\subsection{\label{def123}My subsection}

1 Answer 1


the revtex aps style does not prefix the subsection numbers with the section number in the heading, so it adds it in references.

\section{My section}
I wanna Sec \ref{def123}.
\subsection{\label{def123}My subsection}

enter image description here

Publisher classes like revtex by design remove such choices from the author and enforce the journal style, so it is better to use a generic class such as article rather than redefine revtex internals to avoid this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .