summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
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
parent8caa49bc37510e71dde53e40258d76036b746cdd (diff)
abnt (31oct17)
git-svn-id: svn://tug.org/texlive/trunk@45655 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/abnt/abnt-doc.pdfbin31186 -> 92709 bytes
-rw-r--r--Master/texmf-dist/doc/latex/abnt/abnt-doc.tex21
-rw-r--r--Master/texmf-dist/tex/latex/abnt/abnt.sty27
3 files changed, 36 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf b/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
index 78dab62f28a..1c63d4d0164 100644
--- a/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
+++ b/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex b/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex
index 731f3232325..9e26add1b3f 100644
--- a/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex
+++ b/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex
@@ -8,6 +8,8 @@
\setmainlanguage{brazil}
\usepackage{tcolorbox}
\tcbuselibrary{listings,skins,xparse}
+\usepackage{tikz}
+\usetikzlibrary{positioning,shapes,snakes}
\newtcblisting[auto counter,list inside=codigo]{codigo}[2][]{%
%title={Código~\thetcbcounter:~#2},
@@ -22,15 +24,24 @@
-\title{O pacote <<\texttt{abnt}>>}
+\title{\tikz \node[inner sep=0pt,remember picture,overlay] at (0,1){\includegraphics[height=3cm,width=0.4\textwidth,keepaspectratio]{icone}};\\O pacote <<\texttt{abnt}>>}
\author{Youssef Cherem}
\date{2017}
-
\begin{document}
\frenchspacing
-\maketitle
+\begin{center}
+ \tikz\node[diamond,shape aspect=1.2,%draw=green,ultra thick,
+ overlay,remember picture,overlay,%minimum size=0.6\textwidth,
+ left color=SpringGreen,shading angle=45,align=center] at (0,0){\includegraphics[height=3cm,width=0.4\textwidth,keepaspectratio]{icone}\\{\Large O pacote <<\texttt{abnt}>>}\\[10pt]\large Youssef Cherem\\[6pt]2017};
+\end{center}
+
+\vspace{4cm}
+
+%\maketitle
+
+%\BgThispage
%\tcblistof[\section*]{codigo}{Lista de Códigos}
@@ -39,9 +50,9 @@ O pacote \tcboxverb[blank,fuzzy halo=.5mm with green]{abnt} é uma interpretaçÃ
Seus comandos são:
\begin{codigo}{}
-\orientador{} \coorientador{} \orientadora{} \coorientadora{}
+\orientador{} \orientadora{} \coorientador{} \coorientadora{}
-\tipotrabalho{} \local{} \instituicao{} \capa \folhaderosto
+\tipotrabalho{} \local{} \instituicao{} \capa \folhaderosto
\end{codigo}
Para mudar as fontes dos elementos:
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