由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
TeX版 - Label problem
相关主题
写subsection和subsubsection是不是命令不一样呢编section号的一个问题
有什么命令可以把section都变小一级how to indent sections in tex?
how to allow subsubsectionhow to indent all lines in a paragraph
beamer 的subsubsection为什么不能用?请教 pdflatex 出错信息
方程式换行的问题question regarding bookmark
subsubsection cant show in contentshow to make the subsubsection title not shown in TOC
\subparagraph questionHow about this software.
section编号问题what do you do while waiting for the compiling?
相关话题的讨论汇总
话题: paragraph话题: label话题: label2话题: line3话题: line2
进入TeX版参与讨论
1 (共1页)
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.

1 (共1页)
进入TeX版参与讨论
相关主题
what do you do while waiting for the compiling?方程式换行的问题
一个对齐的问题subsubsection cant show in contents
波浪线(tilde)的输入 \subparagraph question
Latex `\ref` errorsection编号问题
写subsection和subsubsection是不是命令不一样呢编section号的一个问题
有什么命令可以把section都变小一级how to indent sections in tex?
how to allow subsubsectionhow to indent all lines in a paragraph
beamer 的subsubsection为什么不能用?请教 pdflatex 出错信息
相关话题的讨论汇总
话题: paragraph话题: label话题: label2话题: line3话题: line2