avatar
s*n
1
I try to use lable in \paragraph{}. But it does not work.
For example:
\section{1}
\subsection{11}
\subsubsection{111}
\label{label1} %LINE1
.....
\paragraph{1111}
\label{label2} %LINE2
.....
\subsubsection{222}
Here I refer to~\ref{label2}. %LINE3
After compiling, I find that LINE3 still refers to label1 at LINE1,
other than label2 at LINE2. What is the problem?
Thanks a lot.
avatar
T*n
2
Your "secnumdepth" counter is probably set at the default
value of 3, so \paragraph does not actually produce the
paragraph number "1.1.1.1", nor does it increment the
reference counter used by \label in the background.
You need to say
\setcounter{secnumdepth}{4} % or larger value
to enable paragraph numbering. Then you will get "1.1.1.1"
in front of the paragraph heading, and the \ref will produce
"1.1.1.1" as you wanted.

【在 s**n 的大作中提到】
: I try to use lable in \paragraph{}. But it does not work.
: For example:
: \section{1}
: \subsection{11}
: \subsubsection{111}
: \label{label1} %LINE1
: .....
: \paragraph{1111}
: \label{label2} %LINE2
: .....

avatar
s*n
3
Thanks 版主.

【在 T*******n 的大作中提到】
: Your "secnumdepth" counter is probably set at the default
: value of 3, so \paragraph does not actually produce the
: paragraph number "1.1.1.1", nor does it increment the
: reference counter used by \label in the background.
: You need to say
: \setcounter{secnumdepth}{4} % or larger value
: to enable paragraph numbering. Then you will get "1.1.1.1"
: in front of the paragraph heading, and the \ref will produce
: "1.1.1.1" as you wanted.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。