%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Versao do modelo: 2023_04 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
%%%%%%%%%%%%%%%%%%%%%%%%
% Formatacao da pagina %
%%%%%%%%%%%%%%%%%%%%%%%%
%
%
%%%%%%%%%%%%%%
% Horizontal %
%%%%%%%%%%%%%%
%
% \pagewidth = [ 1in (25.4 mm) + \odd/evensidemargin + 
%                \textwidth + 
%                \marginparsep + marginparwidth + 
%                the rest (noname) 
%              ]
%
%%%\setlength{\pagewidth}{210mm}    %  A4 paper
%
\setlength{\textwidth}{170mm}
\setlength{\marginparsep}{0mm}
\setlength{\marginparwidth}{0mm}
%
\newlength{\apostmargin}
\setlength{\apostmargin}{210mm}
\addtolength{\apostmargin}{-\textwidth}
\addtolength{\apostmargin}{-\marginparsep}
\addtolength{\apostmargin}{-\marginparwidth}
%
%%\setlength{\oddsidemargin}{0mm}
\setlength{\oddsidemargin}{0.6\apostmargin}
\addtolength{\oddsidemargin}{-1in}
%
%%\setlength{\evensidemargin}{-10.8mm}
\setlength{\evensidemargin}{0.4\apostmargin}
\addtolength{\evensidemargin}{-1in}
%
%
%%%%%%%%%%%%
% Vertical %
%%%%%%%%%%%%
%
% \pageheight = [ 1in (25.4 mm) + \topmargin + 
%                 \headheight + \headsep + 
%                 \textheight + 
%                 \footskip + 
%                 the rest (noname) 
%               ]
%
% Note: "footsep" = (\footskip - \footheight)
%
%%%\setlength{\pageheight}{297mm}    %  A4 paper
%
\setlength{\headheight}{5mm}
\setlength{\headsep}{10mm}
\setlength{\textheight}{250mm}
%%%\setlength{\footheight}{\headheight}
%
\setlength  {\footskip}{20mm}
%%%\setlength  {\footskip}{\headsep}
%%%\addtolength{\footskip}{\footheight}
%
\newlength  {\doubletopmargin}
\setlength  {\doubletopmargin}{297mm}
\addtolength{\doubletopmargin}{-\headheight}
\addtolength{\doubletopmargin}{-\headsep}
\addtolength{\doubletopmargin}{-\textheight}
\addtolength{\doubletopmargin}{-\footskip}
\setlength  {\topmargin}{0.5\doubletopmargin}
\addtolength{\topmargin}{-1in}
%
%
%%%%%%%
% EOF %
%%%%%%%
%
