title: Additional dot in section/subsection not being displayed in table of content
body: <p>I would like to have a table of content with numbering identical to the ones in text. So, in text each section/subsection/subsubsection is numerated as '1.' or '1.1.' or '1.1.1.'. However my table of content is not updating it, so it shows '1' or '1.1'.</p>
  
  <p>I was following answer to this topic: <a href="https://superuser.com/questions/811779/how-to-add-a-dot-for-section-subsection-numbering-in-tex">https://superuser.com/questions/811779/how-to-add-a-dot-for-section-subsection-numbering-in-tex</a>
  So I am using 'secdot' package. I have tried using</p>
  
  <pre><code>\renewcommand{\thechapter}{\arabic{chapter}.}
  \renewcommand{\thesection}{\thechapter\arabic{section}.}
  </code></pre>
  
  <p>but I keep getting '\the chapter undefined', 'No counter chapter defined' or 'Missing number, treated as zero' errors.</p>
  
  <p>I would appreciate any tips on what's wrong.</p>
  
  <p>EDIT: </p>
  
  <pre><code>\documentclass[11pt, a4paper, twoside]{article}
  \usepackage{listings, lstautogobble}
  \usepackage{ragged2e}
  \usepackage{times}
  \usepackage{secdot}
  \sectiondot{subsection}
  \usepackage{listings}
  \usepackage[toc,page]{appendix}
  \usepackage[utf8]{inputenc}
  \usepackage[english]{babel}
  
  \geometry{a4paper,
   left=30mm,
   top=25mm,
   bottom=25mm,
   right=20mm
   }
  \sectiondot{subsection}
  \makenomenclature
  \setlength{\parindent}{0.5 cm} 
  \renewcommand{\baselinestretch}{1.15}
  \pagenumbering{roman}
  
  \begin{document}
  
  \setboolean{@twoside}{false}
  
  \begin{figure}[H]
  \begin{center}
  \includegraphics[width=14cm,height=15cm,keepaspectratio]{./thesis-     frontpagedesign}
  \end{center}
  \end{figure}
  
  \begin{center}
  \tableofcontents
  \end{center}
  
  
  \begin{center}
  \listoffigures
  \end{center}
  
  \section{Introduction}
   %sometext
  
  \makeatletter
  \def\@seccntformat#1{%
    \expandafter\ifx\csname c@#1\endcsname\c@section\else
    \csname the#1\endcsname\quad
    \fi}
  \makeatother
  
  
   \end{document}
  </code></pre>