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
Code, edit and compile here:
\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}