- Questo topic ha 1 risposta, 2 partecipanti ed è stato aggiornato l'ultima volta 21 anni, 6 mesi fa da .
-
Topic
-
Salve a tutti ho intenzione di usare la classe report con le opzioni twoside e openright o mettere nell’intestazione il numero e nome del capitolo a dx nelle pagine dispari e a sx nelle pagine pari. Sotto riporto il mio preambolo. Se uso così come è il codice in file che non include altri file funziona bene ma se utilizzo questo codice per un file che poi incorpora altri file non mi funziona più e mi mette l’intestazione solo nelle pagine dispari a sx. Come mai? dove sta l’errore? qualcuno può aiutarmi? Grazie infinite a tutti.`
\documentclass[a4paper,11.5pt,italian,twoside,openright]{report}\usepackage{textcomp}
\usepackage{mathcomp}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage{tocloft}
\usepackage[small,bf]{caption2}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{amsthm}
\usepackage{wrapfig}
\usepackage{footmisc}
\usepackage{marvosym}
%\usepackage{layaureo}
\usepackage{fancyhdr}
\usepackage{enumerate}
\usepackage{indentfirst}
\usepackage{natbib}
\usepackage{latexsym}
\usepackage[dvipdfm]{}
\usepackage[dvips]{graphicx,color}
\usepackage[dvipdfm]{hyperref}
\usepackage{ctable,booktabs,tabularx,multirow}
\hypersetup{bookmarksnumbered={true}, pdfstartview={FitH},
bookmarksopen={true}, urlcolor={cyan}} \oddsidemargin=25pt
\pagestyle{fancy} \linespread{1.5}\setlength{\hoffset}{-1in}
\setlength{\footnotesep}{5mm} \setlength{\voffset}{-1in}
\setlength{\topskip}{0cm} \setlength{\headheight}{0cm}
\setlength{\headsep}{0cm}\setlength{\textwidth}{15cm}
\setlength{\evensidemargin}{3.5cm}
\setlength{\oddsidemargin}{3.5cm} \setlength{\textheight}{23cm}
\setlength{\topmargin}{2.5cm} \setlength{\headheight}{0.5cm}
\setlength{\headsep}{0.5cm} %\addtolength{\textwidth}{1.5cm}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
\fancyhf{} \makeatletter
\renewcommand{\chaptermark}[1]{\markboth{\@chapapp \space \thechapter.\ #1}{}}
\makeatother \fancyhead[RO,LE]{\bfseries\leftmark}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\setlength{\headwidth}{\textwidth}. . . . .
\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
\begin{document}
\input{capitolo1}
\input{capitolo2}. . . . . . .
\end{document}
`
- Devi essere connesso per rispondere a questo topic.