- Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 15 anni, 2 mesi fa da .
-
Topic
-
Salve a tutti.
Esiste un modo meno contorto di ottenere delle testatine del genere:
`\documentclass[a4paper]{book}\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{calc}\newlength{\spazio}
\setlength{\spazio}{\marginparwidth+\marginparsep-\widthof{\textbf{\sffamily\thepage}}}\pagestyle{fancy}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{\textbf{\chaptername\ \thechapter}.\ #1}{}}
\fancyhead[RO]{\sffamily\small\nouppercase\leftmark\hspace{\the\spazio}\textbf{\sffamily\thepage}}
\fancyhead[LE]{\textbf{\sffamily\thepage}\hspace{\the\spazio}\sffamily\small\nouppercase\leftmark}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.0pt}
\fancypagestyle{plain}{%
\fancyhead{}\fancyfoot[C]{}%
\renewcommand{\headrulewidth}{0pt}}\begin{document}
\chapter{Esempio}
\lipsum\lipsum\lipsum
\end{document}`
?Grazie
Orlando
- Devi essere connesso per rispondere a questo topic.