General ⇒ Renumbering chapters
Renumbering chapters
Here's my "problem":
- I'd like to number the "Deuxième partie" chapters from 1 to 3 (from "Méthodologie" to "Discussion").
- I don't want the "Part" pages to have a page number.
How could I do that? Thanks a lot!
Here is my .tex:
\documentclass[10pt,a4paper]{report}
\usepackage[francais]{babel}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\pagestyle{plain}
\tableofcontents
\chapter*{Introduction}
\addcontentsline{toc}{part}{Introduction}
\part*{Première partie}
\addcontentsline{toc}{part}{I. Première partie}
\chapter{Union européenne et médias}
\chapter{Politique européenne}
\part*{Deuxième partie}
\addcontentsline{toc}{part}{II. Deuxième partie}
\chapter{Méthodologie}
\chapter{Résultats}
\chapter{Discussion}
\chapter*{Conclusion}
\addcontentsline{toc}{part}{Conclusion}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Renumbering chapters
for the first problem you can use the chngcntr package:
Code: Select all
\usepackage{chngcntr}
\counterwithin{chapter}{part}
Renumbering chapters
for the second problem you can redefine the \part command as implemented in report.cls. To do so, add this in the preamble:
Code: Select all
%redefining \part to use empty as pagestyle
\makeatletter
\renewcommand\part{%
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{empty}%default: plain
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\null\vfil
\secdef\@part\@spart}
\makeatother
Code: Select all
\setcounter{chapter}{0}
Code: Select all
\part*{Deuxième partie}