Page LayoutPart page - epigraph and partpage

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
allende07
Posts: 1
Joined: Sun May 24, 2009 10:43 am

Part page - epigraph and partpage

Post by allende07 »

Hi all,

I'm writing a thesis with latex and I have some troubles. First, sorry for my english but I'm french speaking in fact.

So, I use a fancy style for all pages of text, except \chapter and \part pages. I would like to personalize these part page. To do this, I use the epigraph package to put a epigraphhead on the part page (modified according to instruction in the package description on the ctan). The problem is that I can't delete the page number on part page when epigraph package is activated. Despite using \thispagestyle{empty} in the re-definition of the \part command, page number is still produced...

I have no more solution to delete the number on part page with epigraph... I hope someone would help me!

Thanks all!

Code: Select all

\documentclass[a4paper,11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[english, frenchb]{babel}
\usepackage[utf8]{inputenc}
\usepackage{color} 
\usepackage{graphicx}
\usepackage{pdflscape}
\usepackage{epigraph}
\usepackage{fancyhdr}

\makeatletter
\renewcommand\part{% modification of \part
  \if@openright
    \cleardoublepage
  \else
    \clearpage
  \fi
  \\thispagestyle{empty}%
  \addtocounter{page}{-1}
  \if@twocolumn
    \onecolumn
    \@tempswatrue
  \else
    \@tempswafalse
  \fi
  \null\vfil
  \secdef\@part\@spart}
\makeatother

\let\Oldpart\part % Define titlepart for the fancy style
\newcommand{\parttitle}{}
\renewcommand{\part}[1]{\Oldpart{#1}\def\parttitle{#1}}

\begin{document}

\renewcommand{\chaptermark}[1]{\markboth{#1}{}} %Fancy style
	\renewcommand{\sectionmark}[1]{\markright{#1}}
	\fancyhf{}
	\rhead{}
	\lhead{\thepart\  \parttitle}
	\cfoot{\thepage}
	\renewcommand{\headrulewidth}{0.5pt}
	\addtolength{\headheight}{0.5pt}
	\renewcommand{\footrulewidth}{0pt}
	\fancypagestyle{plain}{
			\fancyhead{}
			\renewcommand{\headrulewidth}{0pt}
	}

\setlength{\epigraphwidth}{0.4\textwidth}

\newpage
{\setlength{\baselineskip}{0.8\baselineskip}
\tableofcontents \addtocontents{toc}{\protect\thispagestyle{empty}}
\par}
\newpage
\pagestyle{fancy}
\setcounter{page}{1}

\epigraphhead[550]{\textit{Demain, dès l'aube, à l'heure ou blanchit la campagne\\
Je partirai. Vois-tu, je sais que tu m'attends\\}
\begin{flushright}V. Hugo\end{flushright}}


\part{Pour commencer}
...
\end{document}

Recommended reading 2024:

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

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

Post Reply