summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/abnt/abnt.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-31 21:23:16 +0000
committerKarl Berry <karl@freefriends.org>2017-10-31 21:23:16 +0000
commit98f219417fa46e55f7a2d5f6288a1914ca7724f6 (patch)
tree8def3395acec48bb429dd8a5ee15d8cd2566fc93 /Master/texmf-dist/tex/latex/abnt/abnt.sty
parent8caa49bc37510e71dde53e40258d76036b746cdd (diff)
abnt (31oct17)
git-svn-id: svn://tug.org/texlive/trunk@45655 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/abnt/abnt.sty')
-rw-r--r--Master/texmf-dist/tex/latex/abnt/abnt.sty27
1 files changed, 20 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/abnt/abnt.sty b/Master/texmf-dist/tex/latex/abnt/abnt.sty
index 2c5965ddf5b..28a90a6a258 100644
--- a/Master/texmf-dist/tex/latex/abnt/abnt.sty
+++ b/Master/texmf-dist/tex/latex/abnt/abnt.sty
@@ -14,7 +14,7 @@
% The Current Maintainer of this work is Youssef Cherem.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{abnt}[2017/08/28]
+\ProvidesPackage{abnt}[2017/10/31]
\RequirePackage[left=3cm,top=3cm,right=2cm,bottom=2cm]{geometry}
\RequirePackage{setspace}
\RequirePackage[automark,markcase=used]{scrlayer-scrpage}
@@ -29,6 +29,8 @@
\RequirePackage{emptypage}
+\RequirePackage{etoolbox}%\ifdefempty{def}{true}{false}
+
\def\@makechapterhead#1{%
%\vspace*{50\p@}% <----------------- Space from top of page to Chapter #
@@ -114,14 +116,23 @@
\newcommand{\@orientador}{}
\newcommand{\orientador}[1]{\gdef\@orientador{#1}}
-\newcommand{\oorientador}{Orientador: \@orientador}
-\newcommand{\aorientadora}{Orientador: \@orientador}
-\newcommand{\ocoorientador}{Coorientador: \@orientador}
-\newcommand{\acoorientadora}{Coorientadora: \@orientador}
+\newcommand{\@orientadora}{}
+\newcommand{\orientadora}[1]{\gdef\@orientadora{#1}}
+
\newcommand{\@coorientador}{}
\newcommand{\coorientador}[1]{\gdef\@coorientador{#1}}
+\newcommand{\@coorientadora}{}
+\newcommand{\coorientadora}[1]{\gdef\@coorientadora{#1}}
+
+
+\newcommand{\oorientador}{\if\@orientador\empty\relax \else Orientador: \@orientador\fi}
+\newcommand{\aorientadora}{\if\@orientadora\empty\relax \else Orientadora: \@orientadora\fi}
+\newcommand{\ocoorientador}{\if\@coorientador\empty\relax \else Coorientador: \@coorientador\fi}
+\newcommand{\acoorientadora}{\if\@coorientadora\empty\relax \else Coorientadora: \@coorientadora\fi}
+
+
\newcommand{\@instituicao}{}
\newcommand{\instituicao}[1]{\gdef\@instituicao{#1}}
@@ -171,8 +182,10 @@
\leftskip=6cm
\singlespacing%
\noindent\@tipotrabalho\par\medskip
-\noindent \oorientador\par
-\noindent \ocoorientador\par
+\noindent \ifdefempty{\@orientador}{\aorientadora}{\oorientador}\par
+\noindent \ifdefempty{\@coorientador}{\acoorientadora}{\ocoorientador}
+
+\par
\egroup
\vfill
\vfill