diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-14 22:27:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-14 22:27:22 +0000 |
commit | 26a6877005886f7623bbafd019b8a06f95c1926b (patch) | |
tree | dd7de8859af3d8e2170c4ef08cd3faecf02cf7b5 /Master/texmf-dist/tex/latex | |
parent | 9681de0d55a13e71967700035f500454393000be (diff) |
abnt (14dec19)
git-svn-id: svn://tug.org/texlive/trunk@53128 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/abnt/abnt.sty | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/abnt/abnt.sty b/Master/texmf-dist/tex/latex/abnt/abnt.sty index 4c89246eba3..d3cdd42b4b0 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>, 2018 +%% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2019 % % 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}[2018/11/19] +\ProvidesPackage{abnt}[2019/12/14] \RequirePackage[left=3cm,top=3cm,right=2cm,bottom=2cm]{geometry} \RequirePackage{setspace} \RequirePackage[automark,markcase=used]{scrlayer-scrpage} @@ -27,7 +27,7 @@ \lehead*{\pagemark} } -\RequirePackage{emptypage} + \RequirePackage{etoolbox}%\ifdefempty{def}{true}{false} @@ -129,17 +129,39 @@ linefill=\TOCLineLeaderFill, \newcommand{\@tipotrabalho}{} \newcommand{\tipotrabalho}[1]{\gdef\@tipotrabalho{#1}} + +%titlefont, @authorfont and @datefont defined by koma classes + +\@ifundefined{KOMAClassName}{% + \typeout{Usando uma classe padrĂ£o} +% if not koma +\RequirePackage{emptypage} \newcommand*{\@titlefont}{\bfseries} \newcommand*{\titlefont}[1]{\gdef\@titlefont{#1}} - \newcommand*{\@authorfont}{\normalfont} \newcommand*{\authorfont}[1]{\gdef\@authorfont{#1}} +\newcommand*{\@datefont}{\normalfont} +\newcommand*{\datefont}[1]{\gdef\@datefont{#1}} +} +{% if koma +\typeout{Usando KOMA-Sript.} +%\KOMAoptions{cleardoublepage=empty} not needed in koma version 3.0 and later +\newcommand*{\@titlefont}{\bfseries} +\renewcommand*{\titlefont}[1]{\gdef\@titlefont{#1}} +\renewcommand*{\@authorfont}{\normalfont} +\newcommand*{\authorfont}[1]{\gdef\@authorfont{#1}} +\renewcommand*{\@datefont}{\normalfont} +\newcommand*{\datefont}[1]{\gdef\@datefont{#1}} +} + + +\@ifclassloaded{scrbook}{% +\typeout{Usando a classe scrbook} +}{} \newcommand*{\@localfont}{\normalfont} \newcommand*{\localfont}[1]{\gdef\@localfont{#1}} -\newcommand*{\@datefont}{\normalfont} -\newcommand*{\datefont}[1]{\gdef\@datefont{#1}} \newcommand*{\@instituicaofont}{\normalfont} \newcommand*{\instituicaofont}[1]{\gdef\@instituicaofont{#1}} @@ -197,7 +219,4 @@ linefill=\TOCLineLeaderFill, -\onehalfspacing - - \endinput
\ No newline at end of file |