The solution of LOF+LOT+BIB in TOC with numbered chapter does not work in my case.
Admittedly I used a template of some other person - when I produce a Pdf with his code all above mentioned sections are numbered. However, when I produce the Pdf of my code, these sections remain unnumbered - which is undesired. Can anybody help me on, please? I suspect to depends on some counterproductive usepackage
Here is the code:
\documentclass[10pt,a4paper,bibliography=totocnumbered,listof=totocnumbered]{scrartcl}
\usepackage[tocbibind]
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage[subfigure,titles]{tocloft}
\usepackage{caption}
\setcounter{tocdepth}{2}
\renewcommand\cftchapafterpnum{\vskip8pt}
\renewcommand\cftsecafterpnum{\vskip10pt}
\usepackage{listings}
\lstset{basicstyle=\footnotesize, captionpos=b, breaklines=true, showstringspaces=false, tabsize=2, frame=lines, numbers=left, numberstyle=\tiny, xleftmargin=3em, framexleftmargin=3.0em}
\makeatletter
\def\l@lstlisting#1#2{\@dottedtocline{1}{0em}{1em}{\hspace{2,0em} Lst. #1}{#2}}
\makeatother
\geometry{a4paper, top=28mm, left=31mm, right=28mm, bottom=26mm, headsep=4mm, footskip=4mm}
\begin{document}
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\renewcommand{\contentsname}{II Contents}
\phantomsection
\addtocounter{section}{1}
\tableofcontents
\pagebreak
\listoffigures
\pagebreak
\listoftables
\pagebreak
\noindent\section{List of Acronyms}
\begin{acronym}
\setlength{\itemsep}{-\parsep}
\acro{CEO}{Chief Executive Officer}
\end{acronym}
\newpage
\setcounter{section}{0}
\renewcommand\refname{0. Introduction}
\section{{\Large Introduction}}
\markright{Introduction}
\phantomsection
\addcontentsline{toc}{section}{0. Introduction}
\addtocontents{toc}{\vspace{-0.5em}}
Lorem ipsum...
\newpage
\setcounter{section}{1}
\renewcommand\refname{Chapter 1}
\section*{{\Large Chapter 1}}
\markright{Chapter 1}
\phantomsection
\addcontentsline{toc}{section}{Chapter 1}
\addtocontents{toc}{\vspace{-0.5em}}
Lorem Ipsum again
\end{document}
tocloft. Packagetitlesecalso whacks down KOMA internals. There are some more oddities. – Johannes_B Feb 16 '15 at 19:40tocloftbreaks that as well, as it does its own stuff. The modularity of LaTeX is a blessing and a curse. – Johannes_B Feb 16 '15 at 21:59tocbibindis in your code, it is another packages that breaks KOMA. It adds the lists and stuff to the toc, but in a rather inexperienced way. Kick it out, everything is back to normal. One thing to add, i really doubt, that you needtocbibind,tocloftand/ortitlesec. KOMA alone has all the capabilities of those packages. – Johannes_B Feb 21 '15 at 19:03\setuptoc{toc}{totoc}. But i cannot recommend that. – Johannes_B Feb 21 '15 at 19:04tocbibindand it should work. Your example doesn't have acronyms. Do a proper Minimal Working Example! This saves time for all of us. ;-) – Johannes_B Feb 22 '15 at 18:45tocbibindmyself. If i add a toc and a lof and a caption, the lof appears numbered in the toc. Just as requested. That why we are asking for a minimal working example. – Johannes_B Feb 22 '15 at 19:08tocbibindwith a KOMA class is always wrong (sorry). Let me take a look at it. Bit busy right now, might take an hour. – Johannes_B Feb 26 '15 at 21:05