On Wednesday 31 October 2001 12:49, Jean-Marc Lasgouttes wrote: | >>>>> "Roberto" == Roberto Hernandez <[EMAIL PROTECTED]> writes: | | Roberto> Thanks for this tip. However, I have a problem getting it to | Roberto> work correctly. When I add that line to the preamble, it | Roberto> doesn't work. I exported the file to TeX and then put the | Roberto> renewcommand after the \begin{document} line. That worked. | Roberto> Next I tried putting the renewcommand right before the ToC in | Roberto> LyX and that worked too. | | This is probably related to the fact that you use a language other | than default. In this case, you have to override the changes done for | you by babel. I do not know what is the best way to do it. Dekel? | | JMarc
OK, after much searching I found the following (which works) at: http://www.tex.ac.uk/cgi-bin/texfaq2html?question=156 ------------- Whenever a new language is selected, babel resets all the names to the settings for that language. In particular, babel selects the document's main language when \begin{document} is executed, which immediately destroys any changes to these symbolic names made in the prologue of a document that uses babel. Therefore, babel defines a command to enable users to change the definitions of the symbolic names, on a per-language basis: \addto\captions<language> is the thing (<language> being the language option you gave to babel in the first place). For example: \addto\captionsdanish{% \renewcommand{\contentsname}% {Indholdsfortegnelse}% } ------------- I also found out a way to get bibliography entries with no numbering: \def\@bibitem#1{} And how to add a line to the ToC: \addcontentsline{toc}{chapter}{Hello world!} Now I have another question. After reading in some website about how to change the bibliography, I decided to check the "scrbook.cls" file. There are a couple of lines that indicate there is an option to add the Bibliography to the ToC: ------------- \DeclareOption{bibtotoc} {\AtEndOfClass{% \renewcommand*\bib@heading{% \addchap{\bibname}} }} \DeclareOption{bibtotocnumbered} {\AtEndOfClass{% \renewcommand*\bib@heading{% \chapter{\bibname}} }} ------------- I don't know how to use options (two days of LyX and LaTeX under my belt). Could anyone enlighten me? Cheers, Roberto