Usually a ToC shows the chapter number and name, but for some reason my latex doc only shows the chapter name. How to force it to show the number and the name?
My preamble is:
Code: Select all
\documentclass[c5paper,10pt,twoside]{book}
\usepackage[brazil]{babel}
\usepackage[T1]{fontenc}
\usepackage[Sonny]{fncychap}
\usepackage{fancyhdr}
\usepackage{fancybox}
\usepackage{verbatim}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{dialogue}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes
\usepackage{changepage}% or chngpage -- note that the syntax differs slightly between the two packages
\usepackage{lscape}
\usepackage{fancyhdr}
\usepackage{bigdelim}
\usepackage{bigstrut}
\usepackage{subfigure}
\usepackage{bbding}
\usepackage{pifont}
\usepackage{setspace}
\usepackage{balance}
\usepackage{rotating}
\usepackage{tikz}
\usepackage{hvfloat}
\usepackage{multirow}
\usepackage[tc]{titlepic}
\usepackage{imakeidx}
\usepackage{floatpag}
\usepackage{caption}
\captionsetup[figure]{labelformat=empty}
\usepackage{floatrow}
\usepackage{lipsum}
\usepackage{paralist}
\usepackage{enumerate}
\usepackage{boxhandler}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\setlist[enumerate]{leftmargin=*}
\indexsetup{othercode=\small}
\newcommand{\up}[1]{\ensuremath{^{\textrm{\scriptsize\underline{#1}}}}}
\newcommand{\low}[1]{\ensuremath{_{\textrm{\scriptsize\underline{#1}}}}}
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
\clearpage
{\pagestyle{empty}\origdoublepage}%
}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[LE]{\it \hspace{-1cm} \thechapter. \leftmark}
\fancyhead[RE,LO]{} \fancyhead[LO]{\it \thechapter. \leftmark}
\fancyhead[RO]{}
\interfootnotelinepenalty=10000
\usepackage{fix-cm}
\newcommand{\bigsize}{\fontsize{35pt}{20pt}\selectfont}
\newcommand\Chapter[2]{
\chapter[#1]{#1\\[2ex]\Large\itshape#2}
}
\newcommand\chap[1]{%
\chapter*{#1}%
\addcontentsline{toc}{chapter}{#1}}