正文中的Section前面有编号, 例如1.1, 1.2.... 怎么到了Table of Contents里面编号就没了呢?
T*n
2 楼
What document class and packages are you using? Add the following line \makeatother\showthe\[email protected]\showthe\[email protected]\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)?
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\[email protected]\showthe\[email protected]\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
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\[email protected]\showthe\[email protected]\makeatother Then run LaTeX, look at the console output (messages) from LaTeX, and tell me what numbers LaTeX reports for \[email protected] and \[email protected] 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
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\[email protected]\showthe\[email protected]\makeatother : Then run LaTeX, look at the console output (messages) from LaTeX, : and tell me what numbers LaTeX reports for \[email protected] and : \[email protected] : Somewhere you probably have loaded some package or wrote your o