diff options
author | Karl Berry <karl@freefriends.org> | 2018-07-29 21:14:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-07-29 21:14:59 +0000 |
commit | 29c87f6f8d04ab90bd8fc5eac22d5fc1055a92c7 (patch) | |
tree | b4c4e26172c340adec935127ce156f8791ff3307 /Master/texmf-dist/tex/latex/abnt | |
parent | 49401a31aacb9f38f0cb73c473504c3249b34284 (diff) |
abnt (29jul18)
git-svn-id: svn://tug.org/texlive/trunk@48305 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/abnt')
-rw-r--r-- | Master/texmf-dist/tex/latex/abnt/abnt.sty | 40 |
1 files changed, 16 insertions, 24 deletions
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 <ycherem(at)gmail.com>, 2017 +%% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 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} |