d**u 发帖数: 412 | 1 正文中的Section前面有编号, 例如1.1, 1.2....
怎么到了Table of Contents里面编号就没了呢? | T*******n 发帖数: 493 | 2 What document class and packages are you using?
Add the following line
\makeatother\showthe\c@tocdepth\showthe\c@secnumdepth\makeatletter
before \tableofcontents, immediately after \tableofcontents, and a third
time somewhere in the text body after a \subsection. What numbers
do LaTeX give for these counters (look on the console or in the log
file for the numbers)?
【在 d**u 的大作中提到】 : 正文中的Section前面有编号, 例如1.1, 1.2.... : 怎么到了Table of Contents里面编号就没了呢?
| d**u 发帖数: 412 | 3 The document class is report.
When I click the table of conents, I get following information:
\contentsline {chapter}{CHAPTER{} \numberline {1} \uppercase {INTRODUCTION}}
{1}
\contentsline {section}{\numberline {}{Section 1}}{2}
...
【在 T*******n 的大作中提到】 : What document class and packages are you using? : Add the following line : \makeatother\showthe\c@tocdepth\showthe\c@secnumdepth\makeatletter : before \tableofcontents, immediately after \tableofcontents, and a third : time somewhere in the text body after a \subsection. What numbers : do LaTeX give for these counters (look on the console or in the log : file for the numbers)?
| T*******n 发帖数: 493 | 4 Okay, report class, so should have standard behavior.
I just noticed that the other instruction I gave previous is
wrong. You should instead swap the two \makeat... commands and
add this line instead at the three places I said:
\makeatletter\showthe\c@tocdepth\showthe\c@secnumdepth\makeatother
Then run LaTeX, look at the console output (messages) from LaTeX,
and tell me what numbers LaTeX reports for \c@tocdepth and
\c@secnumdepth.
Somewhere you probably have loaded some package or wrote your o
【在 d**u 的大作中提到】 : The document class is report. : When I click the table of conents, I get following information: : \contentsline {chapter}{CHAPTER{} \numberline {1} \uppercase {INTRODUCTION}} : {1} : \contentsline {section}{\numberline {}{Section 1}}{2} : ...
| d**u 发帖数: 412 | 5 I found the problem:
The template deletes numbering of section in the table of content.
thanks
【在 T*******n 的大作中提到】 : Okay, report class, so should have standard behavior. : I just noticed that the other instruction I gave previous is : wrong. You should instead swap the two \makeat... commands and : add this line instead at the three places I said: : \makeatletter\showthe\c@tocdepth\showthe\c@secnumdepth\makeatother : Then run LaTeX, look at the console output (messages) from LaTeX, : and tell me what numbers LaTeX reports for \c@tocdepth and : \c@secnumdepth. : Somewhere you probably have loaded some package or wrote your o
|
|