Re: Intestazioni fachydr

#88431
Up
0
Down
::

Indiana Pips” post=87871Molte grazie, potrebbe indicarmi il link del manuale o come si fa a reperirlo?

La documentazione dei pacchetti in genere si può reperire da terminale con il comando texdoc nome-pacchetto, ma si può anche ricorrere al sito apposito http://texdoc.net/

Ti consiglio, per il futuro di allegare un esempio minimo che riproduca il problema. Ad esempio:`
\documentclass[a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}

\usepackage{fancyhdr}
\usepackage{hyperref}

%intestazione

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhead{}
\fancyhead[LE]{\textbf{\thepage} \quad \chaptername \, \thechapter}
\fancyhead[RO]{\leftmark \quad \textbf{\thepage}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

\title{qualcosa}
\author{qualcuno}
\begin{document}
\frontmatter
\maketitle

\tableofcontents
\phantomsection
\addcontentsline{toc}{chapter}{Indice}
\markboth{Indice}{Indice}

\mainmatter

\chapter{Un titolo}
\newpage
\section{titolo sezione}
\newpage
\section{titolo altra sezione}

\chapter{Un secondo titolo}
\section{titolo sec sezione}
\section{titolo sec altra sezione}
\end{document}
` Questo non è proprio minimo, ma secondo me andrebbe bene lo stesso. Partendo da qualcosa è molto più semplice dare una soluzione, tipo:`
\documentclass[a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}

\usepackage{fancyhdr}
\usepackage{hyperref}
%intestazione

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\textbf{\thepage} \quad \chaptername\, #1}{}}

\fancyhead{}
\fancyhead[LE]{\leftmark}
\fancyhead[RO]{\nouppercase{\rightmark}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

\title{qualcosa}
\author{qualcuno}
\begin{document}
\frontmatter
\maketitle

\tableofcontents
\phantomsection
\addcontentsline{toc}{chapter}{Indice}
\markboth{Indice}{Indice}

\mainmatter

\chapter{Un titolo}
\newpage
\section{titolo sezione}
\newpage
\section{titolo altra sezione}

\chapter{Un secondo titolo}
\section{titolo sec sezione}
\section{titolo sec altra sezione}
\end{document}
` Consulta comunque la documentazione per capire come effettuare ulteriori personalizzazioni.

Ciao
Claudio

Go to top