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.

  • Welcome to TeX.SX! What do you mean by “change level of heading”? – egreg Feb 20 '18 at 11:53
  • Example, from \chapter{} to \section{} @egreg – Niklas Feb 20 '18 at 12:02
2

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

\usepackage[section]{tocbibind}

in your preamble.

|improve this answer|||||
  • 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. – Niklas Feb 21 '18 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. – Peter Wilson Feb 21 '18 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). – Niklas Feb 21 '18 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. – Peter Wilson Feb 22 '18 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.

|improve this answer|||||
  • Where's the connection to tocbibind here then? – user31729 Feb 20 '18 at 11:49
  • @ChristianHupfer I am not sure if I understand what you mean. – Niklas Feb 20 '18 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? – user31729 Feb 20 '18 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. – Peter Wilson Feb 20 '18 at 19:48
  • @PeterWilson I removed the numbering with "\setcounter{secnumdepth}{0}" for TOC, LOF, and LOT. – Niklas Feb 21 '18 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.