Re: differente intestazione – capitolo / abstract

#61117
Up
0
Down
::

eh ma il cavatappi funziona così così 😛

va tutto “meglio” però sempre stesso problema… i capitoli 1-2-etc hanno una intestazione uguale a destra e sinistra con il titolo del capitolo… non so perchè!

l’unica cosa che c’è inserita nel preambolo prima dell inizio del documento è questa

\makeatletter
\def\cleardoublepage{\clearpage
\if@twoside
\ifodd\c@page
\else
\null\thispagestyle{empty}\clearpage
\fi
\fi}
\makeatother

può incidere?

Nuova versione.
`\documentclass[a4paper]{book}

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\headheight=15pt
\headsep=34pt
\footskip=50pt

\fancypagestyle{normal}{%
\fancyhf{}
\fancyhead[LE]{\chaptername \ \thechapter}%
\fancyhead[RO]{\nouppercase\leftmark}%
\fancyfoot[LE,RO]{\thepage}%
\renewcommand{\headrulewidth}{0.4pt}}

\fancypagestyle{plain}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}}

\fancypagestyle{intro}{%
\renewcommand{\headrulewidth}{0pt}%
\fancyhf{}%
\fancyhead[LE,RO]{\nouppercase\leftmark}%
\fancyfoot[LE,RO]{\thepage}}

\begin{document}
\frontmatter
\pagestyle{intro}
\tableofcontents
\listoffigures
\listoftables

\mainmatter
\chapter*{Abstract}
\markboth{Abstract}{}

\chapter*{Introduzione}
\markboth{Introduzione}{}

\pagestyle{normal}

\chapter{…}

\end{document}`
Quel codice complicato per \cleardoublepage può diventare un semplice
`\usepackage{emptypage}`
Ciao
Enrico

Go to top