0

The introduction doesn't appear in table of content. How I can do it in the following example.

\documentclass{book}
%\usepackage{graphicx}
\usepackage{tcolorbox}
\usepackage{setspace}
\renewcommand{\baselinestretch}{1.0}
\title{Operation research}
\author{Dr.C. Andrey Vinajera-Zamora}
\begin{document}
    \tableofcontents
    \maketitle
\chapter*{Introduction}
In recent years the operation research has played an important role in ...
\chapter{Operation research}
the operation research is ....
\section{Lineal Programming}
 The lineal programming is considered
 \chapter{Solution methods}
 Some solution methods are
\end{document}

1 Answers1

1

Use \frontmatter and \mainmatter.

\documentclass{book}
%\usepackage{graphicx}
\usepackage{tcolorbox}
\usepackage{setspace}
\renewcommand{\baselinestretch}{1.0}
\title{Operation research}
\author{Dr.C. Andrey Vinajera-Zamora}

\begin{document}

\pagestyle{empty}   
    \maketitle
    \tableofcontents
        \thispagestyle{empty}

\frontmatter
\pagestyle{plain}
\setcounter{page}{1}
\pagenumbering{arabic}
\chapter{Introduction}
In recent years the operation research has played an important role in ...

\mainmatter
\setcounter{page}{3}
\chapter{Operation research}
the operation research is ....
\section{Lineal Programming}
 The lineal programming is considered
 \chapter{Solution methods}
 Some solution methods are
\end{document}

EDIT: here is a full solution for your additional questions using \setcounter, etc.

AML
  • 2,265
  • this example put the table of contents before title and the page number must begin with introduction. – Andrey Vinajera Apr 25 '18 at 15:09
  • It put TOC before title because that's how you set it up. Just switch them. The page numbering technically is a separate question, but that answer is easy to find. – AML Apr 25 '18 at 15:21
  • I have fixed all your additional issues in the edited code above. – AML Apr 25 '18 at 15:32