On Oct 28, 7:33 pm, Rand Alfaris <
randalfa...@gmail.com> wrote:
> Hi Luis,
>
> if I use \chapter*{} or \section*{} then yes you are right, I will get rid
> of them in ToC but in the same time I will lose their numbering inside the
> body of the thesis!
>
> I don't want that, I need to keep the numbering inside the body of the
> thesis, only I want to get rid of them in ToC.
>
> Do you get me?
>
> Any other Idea?
> Mara
Mara,
For regular sections that you want to keep the section numbering but
remove it from the Table of Contents, you can do the following:
\refstepcounter{section}%
\section*{\thesection \quad SECTION TITLE}
If this is too clumsy, define a new command that does all of the
above:
\newcommand{\notocsection}[1]{%
\refstepcounter{section}%
\section*{\thesection \quad #1}}%
The starred version of \section{...} removes it from the Table of
Contents, obviously. \refstepcounter{section} increments the section
counter, while \thesection prints the (updated) counter. \quad just
leaves the required space between the printed counter and the SECTION
TITLE.
I guess the same should work for chapters...
Werner