Nevermind” post=85062Salve a tutti.
Vengo al punto…questo stralcio di codice fa senza errori quello che volevo fare (senza errori)…ma adesso desidererei che mentre con questo codice sulle facciate destre mi inserisce nell’intestazione il titolo del paragrafo; adesso mi inserisse il titolo del capitolo (come nelle pagine a sinistra):!:
Vi chiedo, se possibile, di postare il codice e, se possibile, evidenziare in rosso i cambiamenti apportati…didatticamente è molto utile 😉Ringrazio anticipatamente quanti mi daranno questo aiuto. 😕
`\usepackage{fancyhdr}
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\scshape\thepage}
\fancyhead[LO]{\scshape\footnotesize\nouppercase{\rightmark}}
\fancyhead[RE]{\scshape\footnotesize\nouppercase{\leftmark}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{1.6pt}\makeatletter
\renewcommand{\headrule}{%
\setlength\@tempdima{\headrulewidth}%
\hrule\@height\@tempdima\@width\headwidth
\vskip 2\@tempdima
\hrule\@height\@tempdima\@width\headwidth
\vskip -4\@tempdima
}
\makeatother`Se dovesse essere di aiuto questo è un pezzo del preambolo:
`
\documentclass[a4paper,11pt,twoside,openright]{book}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{indentfirst}
\usepackage[font=small,format=hang]{caption}
\usepackage{subfig}
\usepackage{eurosym}
\usepackage{graphicx}
\graphicspath{{Immagini/}}
\usepackage{emptypage}
\usepackage[binding=5mm]{layaureo}
\usepackage{xcolor}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{caption}
`
`\fancyhead[LO]{\scshape\footnotesize\nouppercase{\rightmark}}% eliminare questa riga
\fancyhead[LO,RE]{\scshape\footnotesize\nouppercase{\leftmark}}`Purtroppo non riesco a colorare i caratteri monospazio, ma solo il testo.
Lorenzo