Roberto Hernandez wrote:

> 1. Is there a way to have two different tocdepths in the document? More 
> specifically, for text before the appendix I need to show parts, 
> chapters and sections in the ToC. For the appendix I need to show only 
> parts and chapters (annoying school requirements). I tried changing the 
> counter \tocdepth in ERT when the appendix starts and also by 
> \addtocontents, but neither worked.


try before the following:
in preamble:
\let\myAdd\contentsline

before first section in appendix
\renewcommand\addcontentsline[1]{}

behind this section
\let\addcontentsline\myAdd

a.s.o for other sections

> 2. Koma-script book class has a "bibtotocnumbered" option that changes 
> the "BIBLIOGRAPHY" environment to \chapter (instead of \chapter*). I 
> need to do the same thing for the List of Figures. Tried using 
> \renewcommand for the LoF and changed \chapter* to \chapter, but that 
> didn't work. I also tried the koma-script "liststotoc" option (which 
> uses \addchap), but the List of Figures wasn't added to the ToC. That 
> doesn't tell me much, but it might ring a bell for someone else (could 
> that be caused by package conflicts with babel or tocloft?). How can I 

 > do this?

\renewcommand*\lof@heading{
   \chapter{\listfigurename
   \@mkboth{\listfigurename}{\listfigurename}}}


> 3. I need to add some text to the ToC. Before this text I need the same 
> vertical skip as there is before a \part ToC entry. I also need to use 


http://www.lyx.org/help/bibtex/preamble.php

> the same font as a \part ToC entry. Unfortunately I can't use 
> \addcontentsline{toc}{part}, because I used tocloft to add some text 
> before each \part entry (which I can't have for this particular entry). 
> So my only option is to add the appropriate vertical skip and change the 
> font manually using \addtocontents. Any ideas?

have a look into komaclass for this length and renew the command.

Herbert

-- 
http://www.lyx.org/help/

Reply via email to