# LaTeX written thesis - numbering of section does not include chapter number

I am writing using KOMA script. I have several chapters and want to divide them into different sections.

In my TOC, however, the numbering of the sections does not include the number of the respective chapter as a prefix but starts with the section number. Subsections contain the section number as the prefix but also not the chapter number. This also applies to all the headings.

Can anyone help me out?

My preemble is as follows:

``````\documentclass[11pt,a4paper,oneside, titlepage=firstiscover, enabledeprecatedfontcommands]{scrreprt}

\renewcommand{\thesection}{\arabic{section}}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}

\usepackage{abstract}

\usepackage{setspace}

\usepackage[nottoc, notlot, notlof, numbib]{tocbibind}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\usepackage{framed}
\usepackage{xcolor}
\usepackage{transparent}
\usepackage{mdwlist}
\usepackage{paralist}
\usepackage{url}

%Graphs
\usepackage{graphicx}
\graphicspath{{Figures/}}

\usepackage{listings}
\usepackage{mdframed}

\usepackage{amsmath, amssymb, amstext, amsthm, amsfonts, mathrsfs} %maths
\usepackage[version=4]{mhchem} %chemistry
\usepackage{expl3}
\usepackage{calc}
\usepackage{xfrac}

\usepackage{grffile}
\usepackage{array}

%tables
\usepackage{multirow, multicol, bigstrut}
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
\usepackage{booktabs}

%acronyms
\usepackage[printonlyused]{acronym}

\usepackage{upgreek}
\usepackage{textcomp}

\usepackage[labelfont=bf, format=plain]{caption}
\usepackage[labelfont=bf, format=plain]{subcaption}
\renewcaptionname{british}{\figurename}{Fig.}
\renewcaptionname{british}{\tablename}{Tab.}

\usepackage{siunitx}
\sisetup{detect-weight=true, detect-family=true}

\usepackage[super, comma, numbers, sort&compress]{natbib}
\usepackage{bibentry}

\usepackage{blindtext}

\setlength{\belowcaptionskip}{\abovecaptionskip}

\setcounter{topnumber}{4}
\renewcommand{\topfraction}{.8}
\setcounter{bottomnumber}{4}
\renewcommand{\bottomfraction}{.7}
\setcounter{totalnumber}{10}
\renewcommand{\textfraction}{.1}
\renewcommand\floatpagefraction{.7}
\setlength{\textfloatsep}{1.0cm}
\setlength{\intextsep}{1.0cm}
\setlength\emergencystretch{20pt}

\setlength{\parindent}{0pt}
\setlength{\parskip}{1.6ex plus 2pt minus 1pt}

\usepackage[bindingoffset=1cm,margin=1.8cm,
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} %
\fancyfoot[C]{\thepage}
% Date
\usepackage[nodayofweek,level]{datetime}
\newcommand{\mydate}{\formatdate{29}{6}{2001}}

%referencing
\usepackage{varioref}
\usepackage{hyperref}
\usepackage{cleveref}
``````

I use pdflatex as compiler and 'input' every chapter as a separate TeX file after my title page!

• Welcome to TeX.SX! You should provide a properly written MWE. Your codes are missing the `document` environment. Jun 22 '21 at 15:04
• the `section` was defined only to display the section number! It missed a command. Jun 22 '21 at 15:34