I'm trying to personalise my page setup using fancyhdr, but it only works for the document class book.
I read the fancyhdr documentation and I didn’t find any specific difference between the two document classes, although, as I said, it only works for book.
For more details, the line "COSTRUZIONE DI MACCHINE" and the page number appear on the same side every page, while I'm trying to alternate them.
Thanks in advance to everyone.
%impostazioni impaginazione
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{COSTRUZIONE DI MACCHINE}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter. \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\setlength{\headheight}{15pt}
\fancyhead[LE]{\slshape \leftmark}
\fancyhead[RO]{\slshape \rightmark}
%ridefinizione plain
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\documentclass[twoside]{article}– David Carlisle May 23 '23 at 22:54