\documentclass[oneside,abntfigtabnum,capchap,anapcustomindent]{Conf/abnt}

\usepackage[portuges,brazil]{babel}
\usepackage[ansinew]{inputenc}
\usepackage{amsfonts,amsthm,amsopn,amssymb,latexsym}

\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage[alf]{Conf/abntcite}
\usepackage{lscape}
\usepackage{booktabs}

\usepackage{fancyhdr}

\usepackage{amssymb,amsmath}
\usepackage{subeqnarray}

\usepackage{graphicx}
\usepackage[small,loose]{subfigure}
\subfiglabelskip=0pt
\usepackage{wallpaper}
\usepackage[section]{placeins}
\usepackage[subfigure,titles]{tocloft}

\usepackage[hmargin={30mm,20mm},vmargin={30mm,20mm}]{geometry}

\usepackage[labelfont=bf,textfont=bf,labelsep=endash, singlelinecheck=false]{caption} 

\hyphenpenalty=5000
\tolerance=1000
\sloppy

\usepackage{indentfirst}
\usepackage{multirow,colortbl,array}
\usepackage[portuguese,lined,figure]{algorithm2e}

\usepackage{listings}
\lstset{numbers=left, stepnumber=1, firstnumber=1, numberstyle=\tiny, numbersep=5pt, columns=fullflexible, extendedchars=false, breaklines=true,basicstyle=\footnotesize, keywordstyle=\bfseries\color{blue}, showstringspaces=false, frame=tb, numberbychapter=false}
\renewcommand{\lstlistingname}{Listagem}

\usepackage{titlesec}

\usepackage{chngcntr}
\counterwithout{equation}{chapter}

\renewcommand{\cftfigpresnum}{Figura }
\renewcommand{\cftfignumwidth}{5em}
\renewcommand{\cftfigaftersnum}{     -- }

\renewcommand{\cfttabpresnum}{Tabela }
\renewcommand{\cfttabnumwidth}{5em}
\renewcommand{\cfttabaftersnum}{     -- }

\usepackage{pgf,tikz}
\usepackage{pgfplots}
\usetikzlibrary{circuits.ee.IEC}
\usetikzlibrary{circuits.logic.US}
\usetikzlibrary{backgrounds,shapes,arrows,positioning,calc,snakes,fit,automata,chains}
\usepgflibrary{decorations.markings}

\titleformat{\section}
{\normalsize\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}
{\normalsize\bfseries\itshape}{\thesubsection}{1em}{}
\titleformat{\subsubsection}
{\normalsize\itshape}{\thesubsubsection}{1em}{}

\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}             

\renewcommand{\ABNTchapterfont}{\large\fontfamily{ptm}\bfseries\selectfont}
\renewcommand{\cftdot}{\ensuremath{}} 

\makeatletter
   \def\l@chapter#1#2{\pagebreak[3]
       \vskip 0.0em plus 0pt
   \@tempdima 1.75cm    
\begingroup
     \parindent \z@ \rightskip \@pnumwidth
     \parfillskip -\@pnumwidth
     \bfseries
     \leavevmode     
    \uppercase{#1}\hfil \hbox to\@pnumwidth{\hss #2}\medskip\par
 \endgroup}
			
      \def\l@section#1#2{\pagebreak[3]
       \vskip 0.0em plus 0pt 
       \@tempdima 1.75cm     
       \begingroup
         \parindent \z@ \rightskip \@pnumwidth
         \parfillskip -\@pnumwidth
        \normalsize\bfseries   
         \leavevmode         
         #1\hfil \hbox to\@pnumwidth{\hss #2}\medskip\par
       \endgroup}
	
	\def\l@subsection#1#2{\pagebreak[3]
       \vskip -0.2em plus -1pt
       \@tempdima 1.75cm      
       \begingroup
         \parindent \z@ \rightskip \@pnumwidth
         \parfillskip -\@pnumwidth
         \normalsize\bfseries\itshape     
         \leavevmode        
         #1\hfil \hbox to\@pnumwidth{\hss #2}\medskip\par
       \endgroup}
	
      \def\l@subsubsection#1#2{\pagebreak[3]
       \vskip -0.2em plus -1pt 
       \@tempdima 1.75cm      
       \begingroup
        \parindent \z@ \rightskip \@pnumwidth
         \parfillskip -\@pnumwidth
          \normalsize\itshape                 
         \leavevmode                
         #1\hfil \hbox to\@pnumwidth{\hss #2}\medskip\par
       \endgroup}
    \makeatother

\begin{document}

 \include{Prefacios/capa}                       % OBRIGATÓRIO
 \include{Prefacios/lombada}                 % OBRIGATÓRIO
 \include{Prefacios/folhaderosto}          % OBRIGATÓRIO
 \include{Prefacios/folhadeaprovacao} % OBRIGATÓRIO
 \include{Prefacios/dedicatoria}             % OPCIONAL
 \include{Prefacios/agradecimentos}     % OPCIONAL
 \include{Prefacios/epigrafe}                 % OPCIONAL
 \include{Prefacios/resumo}                   % OBRIGATÓRIO
 \include{Prefacios/abstract}                 % OBRIGATÓRIO

   \listoffigures                                         % OPCIONAL
   \listoftables                                          % OPCIONAL
   \include{Prefacios/lista_abrev_siglas} % OPCIONAL
   \include{Prefacios/lista_simb}              % OPCIONAL
   \tableofcontents                                  % OBRIGATÓRIO

 \include{Capitulos/visao}
 \include{Capitulos/casosdeuso}
 \include{Capitulos/negocio}
 \include{Capitulos/projeto}
 \include{Capitulos/suplementar}
 \include{Capitulos/glossario}
 \include{Capitulos/conclusao}

 \renewcommand{\emph}{\textbf}
 \bibliographystyle{Conf/abnt-alf}                   % define o estilo
 \bibliography{Referencias/referencias}          % busca o arquivo referencias.bib
 \renewcommand{\emph}{\textbf}
 
 \anexo
 \include{Posfacios/anexo}                     % OPCIONAL
 \apendice
 \include{Posfacios/apendice}                 % OPCIONAL

\end{document}