Mohammad Reza Danesh wrote:
>
> I used the following preamble in my book class document to add the
> bibliography section to my TOC, and LyX returned the following error:
>
> "Tex capacity exceeded, sorry [input stack size=300].
> \begin{thebibliography}{10}
i suppose that there's a recursion, but anyway, try the following:
> \renewenvironment{thebibliography}[1]
> {\chapter{\bibname
% \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}
}%
> \list{\@biblabel{\@arabic\c@enumiv}}%
> {\settowidth\labelwidth{\@biblabel{#1}}%
> \leftmargin\labelwidth
....
change only the above two lines. it works for me.
Herbert
--
[EMAIL PROTECTED]
http://perce.de/lyx/