0

How can I change level of heading in "List of tables" and "List of figures"?

I am using the usepackage tocbibind to get them on the table of contents, and \renewcommand{} to rename them.

3
  • Welcome to TeX.SX! What do you mean by “change level of heading”? Commented Feb 20, 2018 at 11:53
  • Example, from \chapter{} to \section{} @egreg Commented Feb 20, 2018 at 12:02
  • You did not provide any code example of your setup. Adding to that, having read the comments you give and the solution you provide, it is totally unclear to me what your original issue was. Thus, I am voting to close this question as unclear. Commented Nov 10, 2024 at 15:53

3 Answers 3

3

As far as I understand your question all you need to do is put

\usepackage[section]{tocbibind} 

in your preamble.

4
  • Thanks for the replay. I cant get this to work, could you possibly create an short example? Would prefere the use of subsection instead of section. Commented Feb 21, 2018 at 7:15
  • @Niklas Your statement "I can't get this to work" is of no help. Did you put \usepackage[section]{tocbibind} in your preamble? Show an MWE. In your comment to @egreg you wanted to go from \chapter{} to \section{}. Going to \subsection{} is a different issue which I will leave you to deal with. Commented Feb 21, 2018 at 20:42
  • I am sorry for being wage, I can get it to work the way you suggested but not the way I want. I looked over the manual for the usepackage and come to the conclusion that it only works with "section". But as my question stated I want to be able to change the level of the heading to whatever (subsubsection, subsection, etc). Commented Feb 21, 2018 at 20:57
  • @Niklas Your question was about "change level of heading" and when asked what this meant you said "Example from \chapter{} to \section{}. That was what I gave a solution to. I answered your original question but now you have asked a different one. Commented Feb 22, 2018 at 20:14
0

Change \tableofcontents and \listtablename to wathever you want to change, then change \section to what level of the heading you want.

Example 1

\makeatletter \renewcommand\listoftables{% \subsection{\listtablename{}}% \@mkboth{\MakeUppercase\listtablename}% {\MakeUppercase\listtablename}% \@starttoc{toc}% } \makeatother 

Example 2

\makeatletter \renewcommand\listoffigures{% \subsection{\listfigurename{}}% \@mkboth{\MakeUppercase\listfigurename}% {\MakeUppercase\listfigurename}% \@starttoc{toc}% } \makeatother 

Found an answer here.

7
  • Where's the connection to tocbibind here then? Commented Feb 20, 2018 at 11:49
  • @ChristianHupfer I am not sure if I understand what you mean. Commented Feb 20, 2018 at 13:31
  • Well, you wrote about tocbibind usage -- now you are using a totally different solution whereas the tocbindind manual shows example(s) how to change the level of the relevant list of ... ... why the hard way? Commented Feb 20, 2018 at 17:23
  • @Niklas Did you try this? I did for \listoffigures and got two subsection numbered entries in the ToC like "0.0.1 List of Figures", one indented in normal font with a page number and the other non-indented in a large bold font with no page number. Commented Feb 20, 2018 at 19:48
  • @PeterWilson I removed the numbering with "\setcounter{secnumdepth}{0}" for TOC, LOF, and LOT. Commented Feb 21, 2018 at 7:19
0

If the rename doesn't work, try to add it to babel captions.

\usepackage[spanish]{babel} % replace spanish by your language \addto\captionsspanish{\renewcommand{\listtablename}{Índice de tablas}} % \listoftables \addto\captionsspanish{\renewcommand{\listfigurename}{Índice de imagenes}} % \listoffigures 

Works with listings and captions names too:

\addto\captionsspanish{\renewcommand{\listingname}{Listado}} % \listoflistings \addto\captionsspanish{\renewcommand{\tablename}{Tabla}} % \captions in tabular \addto\captionsspanish{\renewcommand{\listlistingname}{Índice de código fuente}} % \captions in figures 

Hope this help.

3
  • 2
    AFAIK this does not change the level of the headings, but only the printed names. Commented Nov 10, 2024 at 13:58
  • You are right, @cabohah. Even after adding the package section, I still couldn't get the rename to work. However, the solution provided above worked for me, and it might be helpful for others facing similar issues. I edited it to avoid confusion, thanks Commented Nov 10, 2024 at 15:29
  • 1
    Furthermore, this way to redefine captions is currently discouraged. The recommended way is with \setlocalecaption, as described in the babel manual. Commented Nov 13, 2024 at 15:53

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.