LyX ⇒ Title without number but in the index
Title without number but in the index
I use the "section*" type to get titles without numbers. But i want them to be in the index, do you know how to do?
System: Linux Ubuntu 7.10
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Title without number but in the index
Code: Select all
\documentclass{article}
\begin{document}
\tableofcontents
\section*{First section}
\addcontentsline{toc}{section}{First section}
Some text.
\section*{Second section}
\addcontentsline{toc}{section}{Second section}
Some more text.
\end{document}
Re: Title without number but in the index
In the code view, i can't edit the Latex code.
System: Linux Ubuntu 7.10
Re: Title without number but in the index

- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Title without number but in the index
do you want every section without number? I'm asking because you mentioned several titles.
In that case you can use \section and decrease the secnumdepth-counter:
Code: Select all
\setcounter{secnumdepth}{0}
Re: Title without number but in the index
there was no number infront of the section, however it did have a number in the contentlist:
The index should have been
nomenclature
1 introduction
2 methodology
what i now have is however
1 nomenclature
2 introduction
even though the introductionsection is numbered 1 in the actual text..
any tips on this?