From 29c87f6f8d04ab90bd8fc5eac22d5fc1055a92c7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 29 Jul 2018 21:14:59 +0000 Subject: abnt (29jul18) git-svn-id: svn://tug.org/texlive/trunk@48305 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/abnt/abnt.sty | 40 +++++++++++++------------------ 1 file changed, 16 insertions(+), 24 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/abnt/abnt.sty b/Master/texmf-dist/tex/latex/abnt/abnt.sty index 28a90a6a258..95f7ef9ad82 100644 --- a/Master/texmf-dist/tex/latex/abnt/abnt.sty +++ b/Master/texmf-dist/tex/latex/abnt/abnt.sty @@ -1,5 +1,5 @@ %% abnt.sty -%% Copyright (c) Youssef Cherem , 2017 +%% Copyright (c) Youssef Cherem , 2018 % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3c @@ -14,7 +14,7 @@ % The Current Maintainer of this work is Youssef Cherem. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{abnt}[2017/10/31] +\ProvidesPackage{abnt}[2018/08/02] \RequirePackage[left=3cm,top=3cm,right=2cm,bottom=2cm]{geometry} \RequirePackage{setspace} \RequirePackage[automark,markcase=used]{scrlayer-scrpage} @@ -89,29 +89,16 @@ %\renewcommand*{\p@quadro}{\quadroname~} +\usepackage{tocbasic} - -\renewcommand*\l@chapter[2]{% - \ifnum \c@tocdepth >\m@ne - \addpenalty{-\@highpenalty}% - \vskip 1.0em \@plus\p@ - \setlength\@tempdima{1.5em}% - \begingroup - \parindent \z@ \rightskip \@pnumwidth - \parfillskip -\@pnumwidth - \leavevmode \bfseries %\LARGE % added for large font for chapters - \advance\leftskip\@tempdima - \hskip -\leftskip %\@chapapp~ \par % added \@chapapp~ \par - #1\nobreak \hfil %\raggedright % originally \hfil - %added for leaders (dots) in chapter in toc - \xleaders\hbox{$\m@th - \mkern \@dotsep mu\hbox{.}\mkern \@dotsep - mu$}\hfill% - %%% - \nobreak\hb@xt@\@pnumwidth{\hss #2}\par%\vspace{12pt} % ADDED VSPACE - \penalty\@highpenalty - \endgroup - \fi} +\DeclareTOCStyleEntry[ +linefill=\TOCLineLeaderFill, +%entryformat=%\large\textbf, +%pagenumberformat=\color{red}, +%entrynumberformat=\color{red}, +%beforeskip= 0pt plus .2pt +%pagenumberformat=%\large\textbf%\normalfont +]{tocline}{chapter} \newcommand{\@orientador}{} \newcommand{\orientador}[1]{\gdef\@orientador{#1}} @@ -154,9 +141,14 @@ \newcommand*{\@datefont}{\normalfont} \newcommand*{\datefont}[1]{\gdef\@datefont{#1}} +\newcommand*{\@instituicaofont}{\normalfont} +\newcommand*{\instituicaofont}[1]{\gdef\@instituicaofont{#1}} + + \newcommand{\capa}{% \begin{titlepage} \centering + {\@instituicaofont\@instituicao}\par\medskip {\@authorfont\@author} \vfill {\@titlefont\@title} -- cgit v1.2.3