Generalabout Table of Contents and section numbering

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
victork
Posts: 1
Joined: Mon Jul 29, 2013 4:31 pm

about Table of Contents and section numbering

Post by victork »

Hi~ :)
First, I'm poor at English so I ask your understanding. :roll:

I want to use \tableofcontents.
When I use \section{<blahblah>} (or \chapter, \subsection...),the table of contents well created , well indexed and well page numbering.
But, the form (or shape or position of title) of the body (I don't know proper expression. the part of contents actually described) were fixed.
So I tried to use \section*{\(something) <blahblah> } and \addcontentsline{toc}{section}{<blahblah>} and the result looks good. However I found that all numbering and connection of labels were broken.

Then how can I fix this problem??

===
I'm a South Korean and a graduate school student.
And school of my country rarely use Latex so my school has no latex templetes and only has MS word version. But my advisor prof. wanted to me to write my disseration with Latex and to make templetes too. :sad:
Last edited by cgnieder on Tue Jul 30, 2013 9:15 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

about Table of Contents and section numbering

Post by Johannes_B »

Hi, maybe you can provide a Minimal working example. An MWE shows just the code to reproduce the problem. Right now, I am not quite sure what your problem seems to be.

Do you know about the KOMA-script classes and packages? These are extensions to the standard classes and many things can be done with simple options.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

about Table of Contents and section numbering

Post by cgnieder »

Hi victork,

Welcome to the LaTeX community.

My guess is that you want the optional argument of \section:

Code: Select all

% numbered:
\section{heading and toc-entry}
\section[toc-entry]{heading}
% unnumbered:
\section{heading and no toc-entry}
The KOMA-classes allow even finer control.

Regards
site moderator & package author
Post Reply