change text of TOC
Richard Kimberly Heck
rikiheck at lyx.org
Wed Dec 18 09:28:20 UTC 2019
On 12/18/19 4:04 AM, jezZiFeR wrote:
> Dear all,
>
> I also try to reproduce this with KOMA-Script-report in German, but
> none of the possibilites mentioned in the thread seem to work. The
> title of the TOC keeps staying the same. Does this work differently in
> KOMA?
I think what I suggested should also work here:
\renewcommand\contentsname{What You Want}
But it looks as if this might be deprecated in favor of something
involving tocbasic.sty, which I've not investigated.
Remember: We can always look at the LaTeX files themselves (in this
case, scrartcl.cls) to see how they work.
Also: Please reply inline, not by top-posting.
Riki
>
>
>
> Am 18. Dez. 2019, 05:44 +0100 schrieb Jürgen Spitzmüller <spitz at lyx.org>:
>> 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
>>
>> --
>> lyx-users mailing list
>> lyx-users at lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20191218/a474d5b2/attachment-0001.html>
More information about the lyx-users
mailing list