I need to cut off the line in the header, under the page number and the title of the chapter. So, what I want to see is just like this:
[Page number] [Chapter title]
And not:
[Page number] [Chapter title]
Is it possible?
Here's my code:
Code: Select all
\documentclass[11pt,a4paper,twoside,italian]{book}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[%
papersize={120mm,195mm},
left=18mm,
right=18mm,
bottom=20mm,
top=25mm,
headheight=14pt,
includehead,
nofoot,
]{geometry}
\usepackage{babel}
\usepackage[raggedright,pagestyles]{titlesec}% Add “clearempty” option if you need to get rid of headers/footers on empty pages
\usepackage{blindtext}
\usepackage{color}
\titleformat{\chapter}{\normalfont\large\bfseries}{}{0pt}{\Large}[\thispagestyle{plain}]
%%% Page styles
\makeatletter
\newpagestyle{toc}{% Create a page style for TOC
\let\ps@plain\ps@empty% Redefine plain style which is automatically applied to the first page of TOC; put “empty”, or “main”, or any other page style you like
\sethead[][][]{}{}{}
}
\newpagestyle{chapter}{% Create a page style for the first page of a chapter
\setfoot[][\thepage][]{}{\thepage}{}
}
\newpagestyle{main}{%
\let\ps@plain\ps@chapter% Activate page style for the first page of a chapter
\sethead[\thepage][][\chaptertitle]{\chaptertitle}{}{\thepage}
\headrule
}
\makeatother
\begin{document}