I have a problem with the page in my document. How do I put the page number in top right corner of the page in case I need to use the option
twoside
in the docment class report
?Here is my minimal example (my apologies for that because until now I can't do a good example, but hope that you understand).
Code: Select all
\documentclass[
12pt,
a4paper,
% twoside
]{report}
%%%%%Preambule
\usepackage[T1]{fontenc} %encoding
\usepackage{times} %font
\usepackage{setspace}
\usepackage[utf8]{inputenc} %encoding
\usepackage{graphicx}
\usepackage{fancyhdr} % draw header and foot
% Pacote para divisão silábica do portugues
\usepackage[english, brazilian]{babel}
\usepackage[titles]{tocloft} %% formatar a lista de figuras e tabelas.
\usepackage{geometry}
\geometry{tmargin=20mm,bmargin=20mm,lmargin=30mm,rmargin=20mm}
% change indent of table of content
\usepackage[titles]{tocloft}
\cftsetindents{chapter}{0cm}{.3cm}
\cftsetindents{section}{0cm}{.6cm}
\cftsetindents{subsection}{0cm}{.9cm}
\cftsetindents{subsubsection}{0cm}{1.2cm}
\cftsetindents{paragraph}{0cm}{1.5cm}
%%%%%%%%%%% CONFIG ABOUT HEADER E AND FOOT %%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\fancyhf{}
%para margem do cabeçalho ficar do tamanho da margem do texto
\fancyheadoffset{0cm}
\rhead{\thepage} %% PUT THE PAGE ON TOP RIGHT BUT NOT WORK
\setlength\parindent{0pt}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
% \fancyhead[R]{\thepage}
\lfoot{}
%%%%%%%%%%%% Begin Docment %%%%%%%%%%%%%%%%%%
\begin{document}
% \listafiguras % list of figures
% \listatabelas % list of tables
% \listadesiglas % list abrevy
\tableofcontents
% \sumario %My custon tableofcontents
%%%%%%%%%%%%%%% Textos %%%%%%%%%%%%%%%%%%
\chapter{\uppercase{Introdução}}
A introdução deverá conter a natureza do trabalho, justificativa.
\section{Problema}
a lek lek lek lelek lekyyyy girando girando girando prum lado
girando girando pro outro kkk.
\section{Justificativa}
Esta seção foi inserida para ilustrar uma seção
\chapter{\uppercase{Desenvolvimento}}
Eu não sei falar ingles, ela não entende uma palavra em portugues.
I saw you saying that you say that you saw I saw you saying that you say that you
\chapter{\uppercase{Conclusão}}
I feel good because you put your butt on me
I feel good because you put your butt on...
\bibliography{bibliografia} %my bib file
\end{document}