Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

Does anybody know how to eliminate the numbering only in sections D and E, whereby the title itself for the Section D or Section E should start exactly at the beginning of the line? Additionally, the section numbers should not appear within the table of contents and should start exactly at the beginning of the corresponding line. Thanks in advance!

\documentclass[12pt]{article}

\begin{document}
\newpage
\tableofcontents
\section {Section A}
\section {Section B}
\section {Section C}
\section {Section D}
\section {Section E}
\end{document}
share|improve this question
2  
do you mean \section*{Section D}? –  cmhughes Aug 12 '13 at 7:58
    
@cmhughes exactly, I've tried it, and the chronological number disappears, that's what i wanted to have, but after doing so, both sections are not shown within the table of contents any more, any idea? –  ajafarov Aug 12 '13 at 8:13
add comment

marked as duplicate by karlkoeller, lockstep, egreg, Martin Schröder, Thorsten Aug 12 '13 at 9:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

You can also use \setcounter{secnumdepth}{0} to get rid of numbers:

\documentclass[12pt]{article}

\begin{document}
\tableofcontents
\section{Section A}
\section{Section B}
\section{Section C}
\setcounter{secnumdepth}{0} %% no numbering
\section{Section D}
\setcounter{secnumdepth}{1} %% Start numbering again
\section{Section E}

\end{document}
share|improve this answer
    
Thank you very much! –  ajafarov Aug 12 '13 at 11:28
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.