Marcelo Acu˙fffff1a wrote:

This book have:

Preface (Chapter*)

Acknowledgments (Chapter*)

Introduccion (Chapter*)

I want that Preface, and so on, appears in Table of Contents.
I want that Preface ... Introducción no appears in TOC with numbers like 
Chapters.

Use after the chapter names the command

\addcontentsline{ext}{type}{text}

in ERT. "ext" is the file extension for the list: "toc" for the TOC, "lof" for the list of figures, and "lot" for the list of tables. "type" is the paragraph type, in your case "chapter".
E.g. for Preface, you have to write:


\addcontentsline{toc}{chapter}{\protect\numberline{}Preface}

The commands "\protect\numberline{}" are added to indent the toc entry so that it is at the position of normal chapters entries, that have a number at the beginning. (look at the attached example)

Note: If you're using a koma-script class, you can directly use the "Addchap" environment for chapters that should appear without numbers in the toc.

regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrbook
\options fleqn
\language english
\inputencoding auto
\fontscheme ae
\graphics default
\paperfontsize 12
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 4
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty
\bullet 1
        1
        34
        -1
\end_bullet
\bullet 2
        2
        35
        -1
\end_bullet
\bullet 3
        2
        7
        -1
\end_bullet

\layout Standard


\begin_inset LatexCommand \tableofcontents{}

\end_inset 


\layout Chapter*

Preface
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
addcontentsline{toc}{chapter}{
\backslash 
protect
\backslash 
numberline{}Preface}
\end_inset 


\layout Chapter*

Acknowledgements
\layout Chapter*

Introductions
\layout Chapter

Chapter
\the_end

Reply via email to