I need to remove a string ("p.") that is appearing before each page number in the Table of Contents. I have this on the .sty file:
%table of contents
\renewcommand\@dotsep{2}
\renewcommand\l@chapter[2]{
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\ifthenelse{\boolean{ABNTpagenumstyle}}
{\renewcommand{\@pnumwidth}{3.5em}}
{}
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \normalsize\ABNTtocchapterfont
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\dotfill \nobreak%
\ifthenelse{\boolean{ABNTpagenumstyle}}
{%
\hb@xt@\@pnumwidth{\hss
\ifthenelse{\not\equal{#2}{}}{{\normalfont p.\thinspace#2}}{}}\par
}
{%
\hb@xt@\@pnumwidth{\hss #2}\par
}
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand*\l@section{\@dottedtocline{1}{0em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{0em}{3.2em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{0em}{4.1em}}
When I remove "p." from the following line:
\ifthenelse{\not\equal{#2}{}}{{\normalfont p.\thinspace#2}}{}}\par
I was able to remove "p." from upper levels. How can I remove "p." from the lower levels?
These are the packages being used:
\documentclass[tocpage=plain,espaco=simples,appendix=Name]{abnt}
\usepackage[latin1]{inputenc}
\usepackage[brazil]{babel}
\usepackage{hyperref}
\usepackage[alf]{abntcite}
\usepackage{mdwlist}
\usepackage{dsfont}
\usepackage{graphicx}
\usepackage{uff} % the .sty file
\usepackage[pagewise]{lineno}
\usepackage{longtable}
\@dottedtocline
command.abnt
class?abnt
is a really old class -- why not use abntex2?