\documentclass[12pt,italian,openright,twoside]{book}

\usepackage{babel}
\usepackage[dvips]{color}
\usepackage{verbatim}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{epsfig}
\usepackage{makeidx}

\newcommand{\Index}[1]{#1\index{#1}}

\makeindex

\input{style}

\pagestyle{fancyplain}

\begin{document}

\include{headings-style}

\frontmatter
\setcounter{secnumdepth}{-1}

\include{copertina}
\include{introduzione}\thispagestyle{empty}
\tableofcontents

\mainmatter
\setcounter{secnumdepth}{2}

\include{logici}
\include{logici_more}
\include{sistemi_logici_complessi}

\backmatter
\include{bibliografia}
\addcontentsline{toc}{chapter}{Indice Analitico}
\printindex

\end{document}
