I have problem with creation of table contents.
A part of my code:
\documentclass[a4paper]{amsbook}
\usepackage[cp1250]{inputenc}
\usepackage{polski}
\makeatletter
\renewcommand*\@seccntformat[1]{\csname the#1\endcsname.\enspace}
\makeatother
\usepackage[sf,bf,outermarks]{titlesec}
\begin{document}
\tableofcontents
\chapter*{Introduction}
\chapter{(Chapter 1 - Title)}
\section{Section - Title}
\section{Section - Title}
\subsection{Subsection - Title}
\subsection{Subsection - Title}
\section{Section - Title}
\section{Section - Title}
\section{Section - Title}
\subsection{Subsection - Title}
\subsubsection{Subsection - Title}
\subsubsection{Subsection - Title}
\subsection{Subsection - Title}
\subsection{Subsection - Title}
\section{Section - Title}
\begin{thebibliography}{1}
\bibitem{1} Bibliography 1
\end{thebibliography}
\end{document}
and it shows like this
as you can see, text overlapping.
How can I change this?
How can I add the number of chapter before number of section?
[ Chapter 1. Title
1.1 Section title
1.2 Section title
….
Chapter 2. Title
2.1 Section title
2.2 Section title
…]
Best Answer
you are using
amsbook
. admittedly, the implementation of tables of contents is faulty. leaving aside the reasons for that (fixing it is something that is in the list for the next upgrade, which unfortunately hasn't been scheduled yet), the ams has a package that will allow you to adjust the format to something more suitable.since the package is not publicly posted, please send a message to
tech-support@ams.org
requesting it.the package is not what we would call "industrial strength", and the methods used are not how the problems should be fixed when incorporated directly into
amsbook
. for these reasons, it is made available only on request.