2

In my book I have automatically-numbered chapters and sections but when I type

\chapter{CHAP 1}
\section{SEC 1}
\subsection{SUBSEC 1}
\subsection{SUBSEC 2}

I receive a chapter with number 1, section with number 1, and subsections with numbers 1.1 and 1.2 but I'd like to have chapter numbered 1, section numbered 1.1 and subsetions with numbers 1.1.1 and 1.1.2. Please, can anyone can help me ?

My code is below:

\documentclass[envcountresetchap]{svmult}
\usepackage{polski}

\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{helvet}
\usepackage{courier}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{footmisc}
\usepackage{subeqnarray}
\usepackage[T1]{fontenc}
\usepackage[latin2]{inputenc} 
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{rotating}
\usepackage{tikz}
\usepackage{float} %pakiet do obsługi obrazków
\usepackage{graphicx} %pakiet do dodawania obrazków
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{float}
\usepackage{hyperref} 
\hypersetup{colorlinks=true,
        linkcolor=blue,
        citecolor=blue,
        urlcolor=blue}


\title*{Title}


\begin{document}
\frontmatter
\maketitle

\preface
\lipsum

\tableofcontents

\mainmatter
\chapter{CHAP 1}
\section{SEC 1}

\subsection{SUBSEC 1}
\subsection{SUBSEC 2}

\end{document}
2
  • 1
    Add \renewcommand\thesection{\thechapter.\arabic{section}} to the preamble. Jul 7, 2014 at 16:56
  • @GonzaloMedina Want to make that an answer?
    – Johannes_B
    Oct 4, 2015 at 13:56

1 Answer 1

2

Add

\renewcommand\thesection{\thechapter.\arabic{section}}

to the preamble, after the titling information. A complete example:

\documentclass[envcountresetchap]{svmult}

\title*{Title}
\renewcommand\thesection{\thechapter.\arabic{section}}

\begin{document}

\chapter{Test chapter}
\section{Test section}
\subsection{Test subsection}
\subsection{Another test subsection}
\section{Another test section}
\subsection{Yet another test subsection}

\end{document}

enter image description here

0

You must log in to answer this question.

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