I'm writing my Thesis (in Portuguese) and I'm having trouble using /fancyhdr package. Maybe I am missing something. But nothing happens! I tried to remove roman and/or arabic numbering because I thought they were creating conflicts and the problem mantains. I can't make chapter names in the header, or page number.
Here is the code:
Code: Select all
\documentclass[a4paper,12pt]{report}
\usepackage{graphicx}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
% Header
\newcommand\nomecapitulo{}
\renewcommand\chaptermark[1]{\renewcommand\nomecapitulo{#1}}
\begin{document}
\begin{titlepage}
\begin{center}
% Picture on top of page
includegraphics[width=0.75\textwidth]{Path/To/Picture/picture1.jpg}\\[2cm]
\textsc{\large TEMA DO PROJECTO}\\[1.5cm]
\textit{\normalsize O MEU NOME}\\[1cm]
\textsc{\large RELATÓRIO DE PROJECTO FINAL}\\[0.5cm]
\textsc{\normalsize Orientador: NOME DO ORIENTADOR}\\[1cm]
\vskip .25 in
% Another picture
\includegraphics[width=0.45\textwidth]{link/da/figura/figura2.jpg}\\[2cm]
\vfill
% data
{\large \today}
\end{center}
\end{titlepage}
\pagenumbering{roman}
\begin{abstract}
Este é o resumo!!!
\end{abstract}
% Aknowledgements
\chapter*{Agradecimentos}
% Conteúdo
\tableofcontents
% Lista de figuras
\listoffigures
% Lista de tabelas
\listoftables
% I Chapter - Indroduction
\chapter{Introdução}
\rhead{\nomedocapitulo}
Este é o primeiro capítulo
\pagenumbering{arabic}
% Section
\section{Introdução - Primeiro Subcapitulo}
Este é o primeiro subcapitulo
% II Chapter
\chapter{Arvores}
\rhead{\nomedocapitulo}
Este é o segundo capítulo que designei de Árvores
% Section
\section{Ramos}
Este é o segundo subcapitulo que designei de Ramos
% Bibliography
\begin{thebibliography}{9}
\bibitem{lamport94}
Leslie Lamport,
\emph{\LaTeX: A Document Preparation System}.
Addison Wesley, Massachusetts,
2nd Edition,
1994.
\end{thebibliography}
% end of Bibliography
\end{document}
% end of Report
PS:
in...
Code: Select all
\rhead{\nomedocapitulo}
Code: Select all
\rhead{\nomecapitulo}