GeneralSuppress Numbering by \section

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lehe
Posts: 12
Joined: Mon Feb 09, 2009 11:57 pm

Suppress Numbering by \section

Post by lehe »

Hi,
I like the way \section gives to produce tree structure that can be viewed in Texmaker. But I don't want it numbers the sections. How can I get both? Is it possible to stop \section from numbering?
Thanks!

Recommended reading 2024:

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

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

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Suppress Numbering by \section

Post by daleif »

Code: Select all

\setcounter{secnumdepth}{0}
0 = chapter, -1 = part, 1 = section ...
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Suppress Numbering by \section

Post by curiouslearn »

Just so that I understand this better, what lehe wants can also be achieved by using the starred version of the section command.

Code: Select all

\section*{name}
Is this less preferable for any reason?

Thank you.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Suppress Numbering by \section

Post by daleif »

you still get the ability to produce a TOC if you want to, using \section*, means that you have to chagne the document in many places if you later on decides to create a TOC
lehe
Posts: 12
Joined: Mon Feb 09, 2009 11:57 pm

Re: Suppress Numbering by \section

Post by lehe »

Thanks, guys!
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Suppress Numbering by \section

Post by curiouslearn »

Thanks for your explanation, daleif. I did not know that; but knew that since you did not suggest what seemed to be (arguably) an easier way, there had to be a good reason for it.
Post Reply