Re: change text of TOC

2019-12-17 Thread Jürgen Spitzmüller
Am Dienstag, den 17.12.2019, 23:08 +0100 schrieb Ricardo Berlasso:
> You can use Babel for this. For example, if your document is in
> English, go to the preamble and write something like this
> 
> \usepackage[english]{babel}
>\addto\captionsenglish{
>   \renewcommand{\contentsname}{The New Name}
>}
> 
> For other languages you just need to change every "english" string
> for the needed language. For example, in Spanish
> 
> \usepackage[spanish]{babel}
>\addto\captionsspanish{
>   \renewcommand{\contentsname}{El nuevo título}
>}

Since babel is automatically loaded by LyX (but usually after the user
preamble) I'd rather do

\AtBeginDocument{%
  \addto\captionsenglish{
\renewcommand{\contentsname}{The New Name}
  }
}

Cf. https://wiki.lyx.org/FAQ/Unsorted#renameEnv

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: change text of TOC

2019-12-17 Thread Richard Kimberly Heck
On 12/17/19 4:09 AM, Bart Kremers wrote:
> Dear Members,
>
> If i put a table of contents in my document I always get the text
> "contents" above the TOCin my document. I would like to change this to
> something else for instance "table of contents" or whatever. How can I
> do this?

It depends upon the document class. For the standard book and article
classes:

\renewcommand\contentsname{Table of Contents}

should do the trick.

Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: change text of TOC

2019-12-17 Thread Ricardo Berlasso
El mar., 17 dic. 2019 a las 22:25, Bart Kremers ()
escribió:

> Dear Members,
>
> If i put a table of contents in my document I always get the text
> "contents" above the TOCin my document. I would like to change this to
> something else for instance "table of contents" or whatever. How can I
> do this?
>

You can use Babel for this. For example, if your document is in English, go
to the preamble and write something like this

\usepackage[english]{babel}

\addto\captionsenglish{

\renewcommand{\contentsname}{The New Name}

}

For other languages you just need to change every "english" string for the
needed language. For example, in Spanish

\usepackage[spanish]{babel}

\addto\captionsspanish{
  \renewcommand{\contentsname}{El nuevo título}

}

Regards,
Ricardo


>
> Best regards
>
> Bart
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


change text of TOC

2019-12-17 Thread Bart Kremers

Dear Members,

If i put a table of contents in my document I always get the text 
"contents" above the TOCin my document. I would like to change this to 
something else for instance "table of contents" or whatever. How can I 
do this?


Best regards

Bart

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users