Page Layoutthe numbering of chapter is disappeared

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
kochfet
Posts: 1
Joined: Sat May 24, 2014 10:07 am

the numbering of chapter is disappeared

Post by kochfet »

good morning,

Code: Select all


\documentclass[a4paper,oneside,11pt]{book}
\usepackage[latin1]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{graphics}
\usepackage{slashbox}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{indentfirst}  
\usepackage{multirow}
\usepackage{caption}
\usepackage{color}
\definecolor{monOrange}{rgb}{0.97,0.35,0.04}
\usepackage{colortbl}
\usepackage[dvipsnames]{xcolor}

\usepackage{longtable}
\xdefinecolor{sss}{named}{Cerulean}
\setlength\arrayrulewidth{1pt}
\addto\captionsfrench{\def\tablename{Tableau}}
\usepackage[top=2cm,bottom=2cm,right=2.5cm,left=2.5cm]{geometry}
\graphicspath{{Figures/}}  
\usepackage[pdfstartview=FitH,colorlinks=true,linkcolor=black,citecolor=black, urlcolor= black]{hyperref} 
 \pagestyle{empty} 
 \let\cleardoublepage\clearpage
\begin{document}

\frontmatter
\begin{titlepage}
%page de garde
\end{titlepage}

\thispagestyle{empty}

\include{./Remerciement/remerciement}

\tableofcontents

\listoffigures

\listoftables

\mainmatter
\include{./Chapitres/chp1}
\part{\emph{Etat de l'art}}
\label{sec:EtatDeLArt}
\include{./Chapitres/chp2}
\include{./Chapitres/chp4}
\part{\emph{Contribution}}
\label{sec:Contribution}
\include{./Chapitres/chp5}
\include{./Chapitres/chp6}
\include{./Chapitres/ConclusionGénérale}

\bibliographystyle{plain}  
\bibliography{MaBiB}
\addcontentsline{toc}{chapter}{Bibliographie}

\cleardoublepage
\appendix
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\addcontentsline{toc}{chapter}{Annexes}
\include{./Annexes/AnnexeChapitre2}
\include{./Annexes/AnnexeChapitre4}

\include{./Annexes/Annexe1}

\backmatter
\end{document}
With this code, the page numbers appear only on the first page of the chapter. For the rest of pages, the numbers increment without displaying.

Also, I have a problem with the connection between the word "Annexe" in the table of contents. By clicking on the word, I move to "Bibliographie" and not on the first appendix.


The last problem is that I want to have in the table of contents the titles of Annex. But, with this code sections are displayed. I like to make them disappear. I try with the section*{SectionName} but with this section numbers disappear in the corresponding chapters in the Annex.

Thank you for helping me to solve these problems.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10329
Joined: Mon Mar 10, 2008 9:44 pm

the numbering of chapter is disappeared

Post by Stefan Kottwitz »

Welcome to the forum!

Remove the line

\pagestyle{empty}

because this doesn't display the page numbers. The chapter starting pages automatically have plain pagestyle. Instead of removing you could also use \pagestyle{plain}, \pagestyle{headings} or the fancyhdr package.

Regarding the appendix: if you don't use \chapter, \section or the like, but starred commands such as \chapter*, \section*, you don't get an anchor for the hyperlink, that's why clicking brings you to the previous chapter or section, respectively.

Do you print your work finally? Or do you publish or present digitally? Only in the latter case I would care about hyperlinks.

Perhaps post real code. We cannot see what is in your included files.

Stefan
LaTeX.org admin
Post Reply