- Questo topic ha 7 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 15 anni, 7 mesi fa da .
-
Topic
-
Ciao a tutti.
Ho urgnte bisogno della vostra sapienza!xD. Ho appena scoperto che il professore vuole una testina nel documento che dovrò stampare domani. Ho quindi cambiato la classe report in classe book per ottenere la testina ma quella predefinita è davvero orrenda.Allora ho cercato sull’arte la soluzione. E ovviamente l’ho trovata (pagina 170, Ottobre 2009).
Utilizzando il codice proposto ho però riscontrato i seguenti problemi:
-
*** Nella seconda pagina della Premessa (pagina 8) appare ancora l’intestazione dell’indice.
*** Appaiono i seguenti messaggi d’errore, che però non bloccano la compilazione. Visivamente sembra comunque tutto ok… 😕
`Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.[6]
Underfull \vbox (badness 1831) has occurred while \output is active [7]Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.[8] [9] [10]
Capitolo 1.
[11]Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.[12]
Capitolo 2.
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.[14]) (./passarrayfunz.cpp) (./protarrayfunz.cpp)
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
`Inoltre visto che i titoli delle sezioni, che appaiono nelle pagine di destra, sono abbastanza corte vorrei toglierle dalla testina (perché non tutte fanno a tempo ad apparire). Come faccio a levarle? Cosa posso mettere al loro posto (nome del capitolo anche a destra? Il mio nome?)?
Qui posto parte del mio documento. Contiene l’intestazione, la pagina del titolo, una pagina contenente una citazione e la premessa!
`
\documentclass[11pt, a4paper]{book}\usepackage{emptypage}
\usepackage[italian]{babel}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{color}
\usepackage{mathtools}\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[RE]{\bfseries\footnotesize\nouppercase{\leftmark}}
\fancyhead[LO]{\bfseries\footnotesize\nouppercase{\rightmark}}\lstset{language=C++,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries\ttfamily\color[RGB]{190,0,215},
identifierstyle=\ttfamily,
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\ttfamily\color[RGB]{245,0,0},
showstringspaces=false,
numberstyle=\scriptsize,
numbers=left,
stepnumber=1,
numbersep=9pt,
tabsize=2,
breaklines=true,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
breakatwhitespace=false,
aboveskip={1.5\baselineskip},
columns=fixed,
upquote=true,
extendedchars=true}\begin{document}
\begin{titlepage}
\begin{center}
\textsc{\large Liceo Lugano 1}\\[2cm]
\textsc{\Large Lavoro di maturità 2010/2011}\\[3cm]
{\Huge \bfseries Robotica e programmazione:}\\[0.5cm]
{\Huge \bfseries strutture dati in C++}\\[3cm]
\Huge{\textbf{\texttt{[ ] [0] [ ]}}}\\[0.5cm]
\Huge{\textbf{\texttt{[ ] [ ] [0]}}}\\[0.5cm]
\Huge{\textbf{\texttt{[0] [0] [0]}}}\\[3cm]
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Autore:}\\
Rocco \textsc{Meli}
\end{flushleft}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Docente:}\\
Albert \textsc{Strupler}
\end{flushright}
\end{minipage}
\end{center}
\end{titlepage}\newpage
\
\thispagestyle{empty}
\newpage
\
\ {}\
\ {}\
\
\thispagestyle{empty}
\begin{flushright}
\emph{You can't trust code that you did not totally create yourself.}
\end{flushright}\begin{flushright}
– Kenneth Lane Thompson
\end{flushright}\newpage
\
\thispagestyle{empty}
\newpage\tableofcontents
\newpage
\addcontentsline{toc}{chapter}{Premessa}
\chapter*{Premessa} \thispagestyle{empty}
[…]\section*{Ringraziamenti}
[…]\newpage
\addcontentsline{toc}{chapter}{Abstract}
\chapter*{Abstract} \thispagestyle{empty}[…]
[…]
[…]\newpage
\thispagestyle{empty}
\addcontentsline{toc}{chapter}{Bibliografia}
\nocite{*}
\bibliographystyle{plain}
\bibliography{bibliografia}\newpage
\thispagestyle{empty}
\addcontentsline{toc}{chapter}{Elenco delle figure}
\listoffigures\end{document}
\end{document}`
- Devi essere connesso per rispondere a questo topic.