On 2011-11-18, Richard Heck wrote:
> On 11/17/2011 08:28 PM, Kenedy Torcatt wrote:
>> I noticed that when I insert a subsection (numbered) in lyx, this is
>> added to toc, but if I select subsection* this is not appearing into
>> the table of content? how to chanege this by default? any preamble
>> code to do this?
> This is not terribly easy, due to how the \section* command works. It's
> easier just to define a new command, e.g., \secstartoc, add it to your
> layout, and use it instead of \section*. That's how I've done it, anyway.
If you consistently want unnumbered section headings that appear in the
toc, you can change the "secnumdepth" and "tocdepth" counters in the
preamble, e.g.:
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{5}
and use the "unstarred" commands. (LyX will show numbers (unless you
write a to fix this) but the LaTeX output will be fine.)
Günter