texlive[45163] Master: abnt (29aug17)

commits+karl at tug.org commits+karl at tug.org
Tue Aug 29 23:04:03 CEST 2017


Revision: 45163
          http://tug.org/svn/texlive?view=revision&revision=45163
Author:   karl
Date:     2017-08-29 23:04:03 +0200 (Tue, 29 Aug 2017)
Log Message:
-----------
abnt (29aug17)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/abnt/
    trunk/Master/texmf-dist/doc/latex/abnt/README.md
    trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
    trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex
    trunk/Master/texmf-dist/tex/latex/abnt/
    trunk/Master/texmf-dist/tex/latex/abnt/abnt.sty
    trunk/Master/tlpkg/tlpsrc/abnt.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/abnt/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/abnt/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/abnt/README.md	2017-08-29 21:04:03 UTC (rev 45163)
@@ -0,0 +1,18 @@
+======= abnt -- A package for typesetting Brazilian academic texts ==========
+
+This package implements rules to typeset Brazilian academic texts. 
+
+Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
+
+ This file is part of the abnt LaTeX2e package.
+ This work may be distributed and/or modified under the conditions of
+ the LaTeX Project Public License, version 1.3c of the license.
+ The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3c or later is part of all distributions of LaTeX
+ version 2005/12/01 and of this work.
+
+ This work has the LPPL maintenance status "author-maintained".
+ ========================================================================
+
+


Property changes on: trunk/Master/texmf-dist/doc/latex/abnt/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf	2017-08-29 21:02:07 UTC (rev 45162)
+++ trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf	2017-08-29 21:04:03 UTC (rev 45163)

Property changes on: trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex	2017-08-29 21:04:03 UTC (rev 45163)
@@ -0,0 +1,93 @@
+\documentclass{ltxdoc}
+\usepackage[svgnames,dvipsnames]{xcolor}
+\usepackage{fontspec}
+\setmainfont{Warnock Pro}
+\setsansfont{Cronos Pro}
+\setmonofont[Scale=MatchLowercase]{Fira Mono}
+\usepackage{polyglossia}
+\setmainlanguage{brazil}
+\usepackage{tcolorbox}
+\tcbuselibrary{listings,skins,xparse}
+
+\newtcblisting[auto counter,list inside=codigo]{codigo}[2][]{%
+	%title={Código~\thetcbcounter:~#2},
+	title=#2,
+	hbox,
+	center,
+	colback=green!30,
+	colbacktitle=green!50,
+	colframe=green,
+	listing only,fonttitle=\bfseries\sffamily\large,coltitle=black,titlerule=0pt,enhanced,drop fuzzy shadow%halign title=center
+	}
+
+
+
+\title{O pacote <<\texttt{abnt}>>}
+\author{Youssef Cherem}
+\date{2017}
+
+
+\begin{document}
+\frenchspacing 
+
+\maketitle
+
+%\tcblistof[\section*]{codigo}{Lista de Códigos}
+
+O pacote \tcboxverb[blank,fuzzy halo=.5mm with green]{abnt} é uma interpretação suficiente, mas não exaustiva, das normas da ABNT para apresentação de trabalhos acadêmicos, sendo uma implementação mais concisa que a classe \texttt{abntex2}, gerando menos erros e proporcionando mais facilidade e flexibilidade ao usuário. O uso deste pacote não dispensa conhecimento básico de \LaTeX, e não há qualquer garantia de que será aceito pela sua instituição sem nenhuma modificação (isso também se aplica à classe \texttt{abntex2}). Entretanto, ele facilita a implementação da norma NBR 14:724 pelo usuário. Seu objetivo é reduzir ao mínimo a interferência de comandos alheios às classes comuns. Sugere-se seu emprego com a classe \texttt{book}, mas também pode, porventura, funcionar com outras classes.
+
+Seus comandos são:
+
+\begin{codigo}{}
+\orientador{}   \coorientador{}   \orientadora{}   \coorientadora{}	
+
+\tipotrabalho{}    \local{}    \instituicao{} \capa  \folhaderosto
+\end{codigo}
+
+Para mudar as fontes dos elementos:
+
+\begin{codigo}{}
+\titlefont{}  \authorfont{}  \localfont{}  \datefont{}
+\end{codigo}
+
+Também são disponibilizados ambientes e listas para quadros e mapas, além das usuais figuras e tabelas. Assim, podem ser inseridas listas de “quadros” e “mapas”:
+
+\begin{codigo}{}
+\listofquadros
+\listofmapas
+\end{codigo}
+
+ Esses ambientes são usados da mesma forma que uma figura:
+
+\begin{codigo}{}
+\begin{quadro} ... \end{quadro}
+
+\begin{mapa} ... \end{mapa}
+\end{codigo}
+
+Para fazer citações, use o ambiente \texttt{citacao}:
+
+\begin{codigo}{}
+\begin{citacao} ... \end{citacao}
+\end{codigo}
+
+Se o usuário quiser criar outras listas e ambientes, basta seguir o exemplo abaixo:
+
+\begin{codigo}{Criando novos ambientes}
+\DeclareFloatingEnvironment[fileext=loe,listname={Lista de esculturas},%
+within=none]{escultura}
+\DeclareCaptionListFormat{listaescultura}{\esculturaname\ #1#2\hfill--\hfill}
+\captionsetup[escultura]{listformat=listaescultura}
+\makeatletter
+\renewcommand*{\l at escultura}{\@dottedtocline{1}{1.5em}{6.5em}}
+\makeatother
+
+\end{codigo}
+
+Aqui, definimos um novo ambiente “escultura”, com um arquivo de lista de extensão \texttt{loe} e nome “Lista de Figuras”, cujo contador não recomeça em todos os capítulos \texttt{within=none}. A redefinição de \verb|\l at escultura| serve para redefinir os espaços na lista. Para alternativas de formatação, referir-se à documentação dos pacotes \texttt{newfloat} e \texttt{caption}. 
+
+Todos os outros comandos são os usuais das classes padrão. Recomenda-se o uso do pacote \texttt{biblatex-abnt} para as normas de citação e referências bibliográficas segundo a ABNT. 
+
+Se porventura o usuário necessitar alterações, sugere-se empregar os pacotes \texttt{titlesec} e \texttt{sectsty}, para títulos, e o pacote \texttt{scrlayer-scrpage} para cabeçalhos, e o pacote \texttt{tocstyle} para listas e sumário,  ou então redefinir os comandos de sua classe (p. ex., \texttt{book.cls}).  
+
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/abnt/abnt-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/abnt/abnt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/abnt/abnt.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/abnt/abnt.sty	2017-08-29 21:04:03 UTC (rev 45163)
@@ -0,0 +1,198 @@
+%% abnt.sty
+%% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3c
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+% 
+% The Current Maintainer of this work is Youssef Cherem.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{abnt}[2017/08/28]
+\RequirePackage[left=3cm,top=3cm,right=2cm,bottom=2cm]{geometry}
+\RequirePackage{setspace}
+\RequirePackage[automark,markcase=used]{scrlayer-scrpage}
+\newcommand{\pretextual}{\clearpairofpagestyles}
+
+\newcommand{\textual}{
+\pagestyle{scrheadings}
+\rohead*{\pagemark}
+% same as: %\lohead[\pagemark]{\pagemark} 
+\lehead*{\pagemark}
+}
+
+\RequirePackage{emptypage}
+
+
+\def\@makechapterhead#1{%
+	%\vspace*{50\p@}% <----------------- Space from top of page to Chapter #
+	{\parindent \z@ \raggedright \normalfont
+		\ifnum \c at secnumdepth >\m at ne
+		\huge\bfseries \thechapter\ \enspace %\. <-- Chapter #
+		%\par\nobreak
+		%\vskip 20\p@% <-------------- Space between Chapter # and title
+		\fi
+		\interlinepenalty\@M
+		\Huge \bfseries #1\par\nobreak% <------------------ Chapter title
+		\vskip 40\p@% <------------------ Space between chapter title and first paragraph
+}}
+
+\def\@makeschapterhead#1{%
+	%\vspace*{50\p@}%
+	{\parindent \z@ \centering
+		\normalfont
+		\interlinepenalty\@M
+		\Huge \bfseries  #1\par\nobreak
+		\vskip 40\p@
+}}
+
+
+
+
+\RequirePackage{newfloat}
+\DeclareFloatingEnvironment[fileext=lom,listname={Lista de mapas},within=none]{mapa}
+\DeclareFloatingEnvironment[fileext=loq,listname={Lista de quadros},within=none]{quadro}
+
+\RequirePackage{caption}
+
+%\DeclareCaptionListFormat{list}{#1#2~--}
+%\DeclareCaptionListFormat{list}{#1#2~--}
+\DeclareCaptionListFormat{listafigura}{\figurename\ #1#2\hfill--\hfill}%\hfill--\hfill
+\DeclareCaptionListFormat{listamapa}{\mapaname\ #1#2\hfill--\hfill}
+\DeclareCaptionListFormat{listaquadro}{\quadroname\ #1#2\hfill--\hfill}
+\DeclareCaptionListFormat{listatabela}{\tablename\ #1#2\hfill--\hfill}
+\captionsetup[figure]{listformat=listafigura}
+\captionsetup[mapa]{listformat=listamapa}
+\captionsetup[quadro]{listformat=listaquadro}
+\captionsetup[table]{listformat=listatabela}
+\captionsetup{labelsep=endash}
+
+\RequirePackage{chngcntr}
+\counterwithout{figure}{chapter}
+\counterwithout{table}{chapter}
+
+\renewcommand*{\l at figure}{\@dottedtocline{1}{1.5em}{5.5em}}
+\renewcommand*{\l at table}{\@dottedtocline{1}{1.5em}{5.5em}}
+\renewcommand*{\l at mapa}{\@dottedtocline{1}{1.5em}{5.5em}}
+\renewcommand*{\l at quadro}{\@dottedtocline{1}{1.5em}{6em}}
+%\renewcommand{\p at table}{\tablename~}
+%\renewcommand*{\p at figure}{\figurename~} %=\DeclareCaptionListFormat{listafigura}{\figurename\#1#2~--}
+%\renewcommand*{\p at mapa}{\mapaname~}
+%\renewcommand*{\p at quadro}{\quadroname~}
+
+ 
+
+
+\renewcommand*\l at chapter[2]{%
+	\ifnum \c at tocdepth >\m at 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 at th
+	      \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+	       mu$}\hfill%
+	%%%
+	\nobreak\hb at xt@\@pnumwidth{\hss #2}\par%\vspace{12pt} % ADDED VSPACE
+	\penalty\@highpenalty
+	\endgroup
+	\fi}  
+
+\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{\@coorientador}{}
+\newcommand{\coorientador}[1]{\gdef\@coorientador{#1}}
+
+\newcommand{\@instituicao}{}
+\newcommand{\instituicao}[1]{\gdef\@instituicao{#1}}
+
+\newcommand{\@local}{}
+\newcommand{\local}[1]{\gdef\@local{#1}}
+
+\newcommand{\@tipotrabalho}{}
+\newcommand{\tipotrabalho}[1]{\gdef\@tipotrabalho{#1}}
+
+\newcommand*{\@titlefont}{\bfseries}
+\newcommand*{\titlefont}[1]{\gdef\@titlefont{#1}}
+
+\newcommand*{\@authorfont}{\normalfont}
+\newcommand*{\authorfont}[1]{\gdef\@authorfont{#1}}
+
+\newcommand*{\@localfont}{\normalfont}
+\newcommand*{\localfont}[1]{\gdef\@localfont{#1}}
+
+\newcommand*{\@datefont}{\normalfont}
+\newcommand*{\datefont}[1]{\gdef\@datefont{#1}}
+
+\newcommand{\capa}{%
+	\begin{titlepage}
+		\centering
+		{\@authorfont\@author}
+		\vfill
+		{\@titlefont\@title}
+		\vfill
+		{\@localfont\@local}\\
+		{\@datefont\@date}
+		
+		\if at twoside \cleardoublepage \else \clearpage \fi
+	\end{titlepage}
+}
+
+\newcommand{\folhaderosto}{%
+	\setcounter{page}{1}
+\thispagestyle{empty}
+\begin{center}
+{\@authorfont\@author}
+\vfill
+\vfill
+{\@titlefont\@title}
+\end{center}
+\vfill
+\bgroup
+\leftskip=6cm
+\singlespacing%
+\noindent\@tipotrabalho\par\medskip  
+\noindent \oorientador\par
+\noindent \ocoorientador\par
+\egroup
+\vfill
+\vfill
+\begin{center}
+{\@localfont\@local}\\
+{\@datefont\@date}
+\end{center}
+\if at twoside \cleardoublepage \else \clearpage \fi
+}
+
+
+\newenvironment{citacao}{\vskip -4pt
+	\singlespacing\setlength{\parindent}{0pt}
+	\leftskip=6cm\footnotesize}{\medskip}
+
+\RequirePackage{enumerate}
+
+
+
+\onehalfspacing
+
+
+\endinput
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/tex/latex/abnt/abnt.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-08-29 21:02:07 UTC (rev 45162)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-08-29 21:04:03 UTC (rev 45163)
@@ -23,7 +23,7 @@
   Asana-Math ESIEEcv GS1 HA-prosper IEEEconf IEEEtran
     SIstyle SIunits Tabbing Type1fonts
   a0poster a2ping a4wide a5comb
-    aastex abbr abc abntex2 abraces abstract abstyles
+    aastex abbr abc abnt abntex2 abraces abstract abstyles
     academicons accanthis accfonts achemso
     acmart acmconf acro acronym acroterm
     active-conf actuarialangle actuarialsymbol

Added: trunk/Master/tlpkg/tlpsrc/abnt.tlpsrc
===================================================================
Modified: trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc	2017-08-29 21:02:07 UTC (rev 45162)
+++ trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc	2017-08-29 21:04:03 UTC (rev 45163)
@@ -6,6 +6,7 @@
 depend IEEEconf
 depend IEEEtran
 depend aastex
+depend abnt
 depend abntex2
 depend acmart
 depend acmconf



More information about the tex-live-commits mailing list