Re: change text of TOC
Dear members, thank you for the help. This really helped me. Bart Op 18-12-2019 om 03:39 schreef 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
Am 18. Dez. 2019, 12:55 +0100 schrieb Jürgen Spitzmüller : > > Am Mi., 18. Dez. 2019 um 12:53 Uhr schrieb Jürgen Spitzmüller > > : > > > > According to the KOMA manual it should work (even without > > > > \AtBeginDocument, which you normally need with LyX). > > > > But of course you need > > > > \addto\captions{…} Yes, thank you, now it works. I have overlooked a percent-sign at the end of the row. Jess > > > > Jürgen > > > > > > > > > > Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: change text of TOC
Am Mi., 18. Dez. 2019 um 12:53 Uhr schrieb Jürgen Spitzmüller : > According to the KOMA manual it should work (even without > \AtBeginDocument, which you normally need with LyX). > But of course you need \addto\captions{...} Jürgen > > Jürgen > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: change text of TOC
Am Mi., 18. Dez. 2019 um 10:28 Uhr schrieb Richard Kimberly Heck < rikih...@lyx.org>: > 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} > According to the KOMA manual it should work (even without \AtBeginDocument, which you normally need with LyX). Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: change text of TOC
Am 18. Dez. 2019, 10:28 +0100 schrieb Richard Kimberly Heck : > 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} This line also does not work for me. > But it looks as if this might be deprecated in favor of something involving > tocbasic.sty, which I've not investigated. Do you maybe have a hint how to investigate here? For me such things still are not easy. > 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. Is this what you mean by replying inline? I am going to do that in the future, even though for me top-posting is easier to overlook. Thanks Jess > Riki > > > > > > > > > > Am 18. Dez. 2019, 05:44 +0100 schrieb 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 > > > > > > -- > > > 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
Re: change text of TOC
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 : >> 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@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
Re: change text of TOC
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? Thanks Jess Am 18. Dez. 2019, 05:44 +0100 schrieb 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 > > -- > 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
Re: change text of TOC
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
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
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