Currently writing my thesis and would really appreciate any help with this. For some reason I am unable to bring about any change to my TOC with the scrreprt class even after using \setcounter to change the secnumdepth and tocdepth to a value of 3 (I need numbered subsubsections to appear in the TOC).

I've read countless articles about this, and am not sure where I'm going wrong. Thanks in advance for the help!















Here is the general.tex file contents.


  floatperchapter, pdfspacing,%

\usepackage{csquotes}  % smart quotes

% Redefine cite command to include space before
% <http://tex.stackexchange.com/questions/11602/>




  % pdfa,%
  %pdfstartpage=3, pdfstartview=FitV,%
  % following line: colored links (web version)
  colorlinks=true, linktocpage=true,%
  % following line: all links in black (for printing)
  %colorlinks=false, linktocpage=false, pdfborder={0 0 0},%
  breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
  plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
  hypertexnames=true, pdfhighlight=/O,%nesting=true,%frenchlinks,%
  pdfcopyright={Copyright (C) \myTime, \myName},%


    \node[shape=circle,draw,inner sep=1pt,font=\footnotesize,%
          minimum size=0.8\baselineskip] (char) {\figureversion{lining}#1};

% \tikzexternalize
% \tikzsetexternalprefix{externalized/}





%\setlength{\textwidth}{10.5cm} % 9 pt font
\setlength{\textwidth}{11.6cm} % 10 pt font
% text height set by golden ratio

% Page numbers in plain style (chapter titles)
% Adjust distance to footer (default is too large)

% Font setup

% Micro-typographic extensions

% Use Minion Pro
%  mathlf, % lining figures

% Customize colors
\definecolor{chapter-color}{cmyk}{1, 0.50, 0, 0.25}
\definecolor{link-color}{cmyk}{1, 0.50, 0, 0.25}
\definecolor{cite-color}{cmyk}{0, 0.7, 0.9, 0.2}

% Hyperref
  %urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, %pagecolor=RoyalBlue,%
  %urlcolor=webbrown, linkcolor=Maroon, citecolor=webgreen,%
  %urlcolor=link-color, linkcolor=link-color, citecolor=cite-color,%
  urlcolor=Black, linkcolor=Black, citecolor=Black, %pagecolor=Black,%

% Chapter font
\newfont{\chapterNumber}{eurb10 scaled 5500}
%\newfont{\chapterNumber}{MinionPro-Regular-lf-t1 scaled 5500}

% SI units

% Product type codes


% Chapter number on inside

% Chapter abstract

% Chapter quotes
% Adapted from: <http://tex.stackexchange.com/questions/53377/inspirational-quote-at-start-of-chapter>
\renewcommand*\dictumauthorformat[1]{--- #1}

% Subfigure labels (manual)

% CV

% Footnote without number

% Put pages on A4 w/ crop marks

% Widow and club penalties
\clubpenalty = 10000
\widowpenalty = 10000
%\displaywidowpenalty = 10000
  • 1
    Welcome to TeX SX! Even with \AtBeginDocument{…}?
    – Bernard
    Jun 18, 2021 at 14:53
  • We do not have all of the files loaded in your code. Your preamble loads eg the unknown file preamble/general loaded in your preamble. We need a MWE that works for us (without \input and \include) and shows the issue.
    – esdd
    Jun 18, 2021 at 15:14
  • Only a guess: Do you load package titlesec in general.tex?
    – esdd
    Jun 18, 2021 at 16:24
  • 1
    There was a misunderstanding: Do not use package titlesec together with a KOMA-Script class. I only thought that using this package could be the reason of the issue.
    – esdd
    Jun 21, 2021 at 7:56
  • 1
    Can you show us the content of general.tex? Additional remark: package etex is not needed with TeX distriubtion as of 2015.
    – esdd
    Jun 21, 2021 at 8:31

1 Answer 1


Too long for a comment:

Removing the unknown file in \input{preamble/general} and the unknown command \reserveinserts{10} (unknown even if I load etex with TL2020, TL2021 or MiKTeX) I can not reproduce the issue

enter image description here


\usepackage{blindtext}% only for dummy text
\setcounter{secnumdepth}{3}% or \setcounter{secnumdepth}{\subsubsectionnumdepth}
\setcounter{tocdepth}{3}% or \setcounter{tocdepth}{\subsubsectiontocdepth}

%\usepackage{etex}% <- not needed with TeX distributions from 2015 onwards
%\reserveinserts{10}% <- unknown command

%\input{preamble/general}% <- unknown file


So there must be something in file preamble/general changing the default behaviour.

  • Hi! Thanks for the answers. Silly question, but how exactly do I add another bit of code here? I can't seem to add it as a comment. I'd like to show the general.tex file to you. Jun 22, 2021 at 8:37
  • Figured it out now. Added the general.tex file contents to my original question! Thanks in advance :) Jun 22, 2021 at 8:40
  • Sorry, but I still can not reproduce your issue. Maybe there is something hidden in the other files loaded in your original project. Copy your code given in your question to a new folder. Then remove the packages etc. which are unrelated to your problem and add the code needed to reproduce the issue. The result should be a minimal working example showing your issue.
    – esdd
    Jun 23, 2021 at 15:23
  • I am using LaTeX on VSCode. Would that be causing any issues? Jun 28, 2021 at 8:44
  • VSCode is an editor? Then it should not cause your issue. Maybe there is another \setcounter{tocdepth}{...} in one of your files loaded by \include? The issue is only in ToC, but not in the document text?
    – esdd
    Jun 28, 2021 at 14:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .