I need to suppress the page number on the first page of the chapter. I read this and used their advice. It does its job. But fancyhdr inserts the header and footer line in the 'contents' page.
If I remove the recommended line
\fancypagestyle{plain}{\fancyhf{}}
after \usepackage{fancyhdr}
the header and footer lines disappear on the content page, but the page number appears on the Chapter page. I do not understand why.
MWE:
\documentclass[10pt]{book}%
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[english]{babel}
\usepackage[OT1]{fontenc}
\usepackage{euler,beton}
\usepackage[paperwidth=145mm, paperheight=215mm,inner=1.6cm,top=2.4cm,bottom=4cm,textwidth=7.4cm,marginparwidth=40mm]{geometry}
\usepackage{fancyhdr}
%\fancypagestyle{plain}{\fancyhf{}}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\fancypagestyle{style1}{
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
}
\fancypagestyle{style2}{
\fancyhf{}
\addtolength{\headwidth}{\marginparwidth}
\addtolength{\headwidth}{\marginparsep}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
}
\fancypagestyle{style3}{
\fancyhf{}
\setlength{\headwidth}{\textwidth}
\addtolength{\headwidth}{\marginparwidth}
\addtolength{\headwidth}{\marginparsep}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
}
\author{A. Uthor}
\title{What is the Title of This Book?}
\date{today}
\begin{document}
\newgeometry{top=24mm,bottom=40mm,inner=16mm,outer=3.2cm}
\pagestyle{style1}
\maketitle
\thispagestyle{empty}
{This page is intentionally left blank}
\newgeometry{top=24mm,bottom=40mm,inner=16mm,outer=3.2cm,marginparwidth=20mm}
\pagestyle{style2}
%\thispagestyle{empty}
\tableofcontents
\clearpage{\pagestyle{empty}\cleardoublepage}
\section*{Intro}
\addcontentsline{toc}{section}{\textbf{Intro}}
\lipsum
\clearpage{\pagestyle{empty}\cleardoublepage}
\newgeometry{inner=1.6cm,top=2.4cm,bottom=4cm,textwidth=7.4cm,marginparwidth=40mm}
\pagestyle{style3}
\chapter{The First Chapter}
\section{Section about everything}
\lipsum[1-2]\marginpar{\lipsum[1]}\lipsum[1-5]
\end{document}
My goal is to have different styles for the introduction and for the main part (wider margins for graffiti.
Contents preferably with page number (as they are now), but absolutely no rulers.
Introduction: rulers
Chapter: Absolutely blank first page. The text is narrower, no rulers. The following pages are with rulers and same (narrow) width of the text.
Thanks for help.