s**n 发帖数: 178 | 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. | T*******n 发帖数: 493 | 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 : .....
| s**n 发帖数: 178 | 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.
|
|