Preambule file:
Code: Select all
\NeedsTeXFormat{LaTeX2e}
\input{cvs-id.def}
\CVSExtract$Id: abakos.sty,v 0.1 2012/29/08 15:08:25 gweber Exp $
\CVSPackage{abakos}{} %substitui \ProvidesPackage (replaces \ProvidesPackage)
% Pacotes de codificação das fontes para português
\usepackage[T1]{fontenc}
\usepackage{times}
% \usepackage{memhfixc} % Para mudança de tamanho de fontes
% Merge em duas células (linhas diferentes)
\usepackage{multirow}
%desenhar cabeçalho e rodapé
\usepackage{fancyhdr}
\pagestyle{fancy}
% Pacote para divisão silábica do portugues
\usepackage[english, brazil]{babel}
\usepackage{selinput}
\SelectInputMappings{ % Semi-automatic input selection
atilde={ã}, % by a list of selected glyphs
aacute={á}, % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
ccedilla={ç}
}
\usepackage{babel}
% \usepackage{txfonts} % Font in Times New Roman style
\usepackage[onehalfspacing]{setspace}
\usepackage{lipsum} % Only for dummy text, to be dropped in actual document
% Pacote de adequação do formato ABNT para normas da PUCMinas
%\usepackage{abnt-PPGInf-PUCMG}
% Pacote para citação e referências seguindo ABNT no sistema (AUTOR, Data)
\usepackage[alf]{abntcite}
\usepackage{cite}
\usepackage{abnt-alf}
\usepackage{setspace}
%\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\citeoption{abnt-full-initials=yes}
\usepackage[portugues, linesnumbered, ruled, vlined]{algorithm2e}
\usepackage{algorithmic} %algorithm
\usepackage{listings}
\usepackage{leading}
% \usepackage[inner=30mm,outer=20mm,top=30mm,bottom=20mm]{geometry}
\usepackage{geometry}
\geometry{tmargin=20mm,bmargin=20mm,lmargin=30mm,rmargin=20mm}
% % % Citação direta
\newenvironment{citacaodireta}{%
\begin{list}{}{%
\small
\setlength{\leftmargin}{4cm}
\singlespacing
}
\item\relax
}{\end{list}}
\newcommand{\secao}[1]{\section{#1}}
\renewcommand{\section}{\@startsection
{section} %Nome
{0} %Nivel
{0mm} %Indentacao
{1.5\baselineskip} % Antes do paragrafo
{1.5\baselineskip} % Depois do paragrafo
{\noindent\bfseries\textsc}} % Estilo - negrito e maiusculo
% Titulo de subsecao ---
\newcommand{\subsecao}[1]{\subsection{#1}}
\renewcommand{\subsection}{\@startsection
{subsection} %Nome
{1} %Nivel
{0mm} %Indentacao
{1.5\baselineskip} % Antes do paragrafo
{1.5\baselineskip} % Depois do paragrafo
{\noindent\bfseries}} % Estilo
% Titulo de subsubsecao ---
\newcommand{\subsubsecao}[1]{\subsubsection{#1}}
\renewcommand{\subsubsection}{\@startsection
{subsubsection}% %Nome
{2} %Nivel
{0mm} %Indentacao
{1.5\baselineskip} % Antes do paragrafo
{1.5\baselineskip} % Depois do paragrafo
{\noindent\bfseries\itshape}} % Estilo
%% Comando para citação individual de Autor e Ano
\newcommand{\citeAutorAno}[1]{\citeauthoronline{#1} (\citeyear{#1})}
\newcommand{\citeCitacao}[1]{\citeauthoronline{#1}, \citeyear{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\parindent}{1.25cm}
\usepackage{indentfirst}
%Desenhar figuras geometricas
\usepackage{tikz}
\fancyhf{}
\rhead[\footnotesize{\por}]{\footnotesize{\monog}}
\renewcommand{\footrulewidth}{1.5pt}
\rfoot [\footnotesize{\editorial}]{\thepage}
\lfoot [\thepage]{\footnotesize{\autor}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Altera o tamanho das fontes dos capítulos e dos apêndices
% \renewcommand{\ABNTchapterfont}{\bfseries}
It happens that aa line \renewcommand{\footrulewidth}{1.5pt} is generated a
line ending before finishing the space bounded by the total margin.
To adapt to that need, it is necessary that she go to the bank and that the page number is on the right corner at the end of the line.
Example :
Code: Select all
\documentclass[a4paper,12pt,Times]{article}
\usepackage{abakos} % package created by me
\begin{document}
\thispagestyle{empty}
\section{Introdução}
Texto texto texto texto ....
\newpage
\bibliography{bibliografia}
\end{document}
I need just the header and footer commands to create line, using all the space to the bank.
Currently he is finishing a 4 cm before the end of the margin.