Re: \thepage e testatine nelle note a margine

#23797
Up
0
Down
::


Non so se possa servire ad altri… ma ho risolto il problema del numero di pagina all’altezza delle note a margine:

`
\documentclass{book}

%\setlength{\marginparsep}{2em}
%\setlength{\marginparwidth}{5em}

\newlength{\sepwidth}
\setlength{\sepwidth}{\marginparsep+\marginparwidth}

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyheadoffset[LE, RO]{\sepwidth}
\fancyhead[RO]{Testatina \makebox[\sepwidth][l]{\hspace{\marginparsep}\thepage}}
\fancyhead[LE]{\makebox[\sepwidth][r]{\thepage\hspace{\marginparsep}} Testatina}
\renewcommand{\headrulewidth}{0pt}
`

Go to top