Ecco il codice:
`\documentclass[10pt,a4paper,twoside, openright]{book}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[usenames]{color}
\definecolor{Gray}{rgb}{0.65,0.65,0.65}
\usepackage{amsmath,amssymb}
\usepackage{subfigure}
\usepackage{caption}
\usepackage{booktabs,multirow}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%CANCELLA PAGINE BIANCHE%%%%
\makeatletter
\def\cleardoublepage{\clearpage
\if@twoside
\ifodd\c@page
\else
\null\thispagestyle{empty}\clearpage
\fi
\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%CARATTERI PER LE FORMULE%%%
\usepackage[euler-digits]
{eulervm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\chaptername}\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\scriptsize{Costuzioni in CA e CAP}}
\fancyhead[LO]{\thepage \textcolor[rgb]{1.00,1.00,1.00}{-} \leftmark}
\fancyhead[RE]{\leftmark \textcolor[rgb]{1.00,1.00,1.00}{-} \thepage}
\renewcommand{\headrule}{{\color{Gray}\hrule width\headwidth height\headrulewidth \vskip-\headrulewidth}}
\renewcommand{\footrule}{{\color{Gray}\vskip-\footruleskip\vskip-\footrulewidth\hrule width\headwidth height\footrulewidth\vskip\footruleskip}}
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}
{ \fancyhead{}
\fancyfoot[CE,CO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
}
\edef\footnoterule{{\noexpand\color{Gray}\footnoterule}}
\begin{document}
\tableofcontents
\listoftables
\listoffigures
\include{cap1}
\include{cap2}
\include{appA}
\end{document}`
Come puoi notare ci sono cose fatte in maniera barbarica, perchè dovevo stampare e mi sono arrangiato… ad esempio:
`\fancyhead[LO]{\thepage \textcolor[rgb]{1.00,1.00,1.00}{-} \leftmark}
\fancyhead[RE]{\leftmark \textcolor[rgb]{1.00,1.00,1.00}{-} \thepage}`
Comunque vorrei ingrandire lo spessore della linea perchè l’ho visto in un libro scritto sicurante con latex e l’effetto mi è piaciuto molto! 🙂