change text of TOC
Jürgen Spitzmüller
spitz at lyx.org
Wed Dec 18 04:44:23 UTC 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20191218/5d44f711/attachment.asc>
More information about the lyx-users
mailing list