diff options
author | Karl Berry <karl@freefriends.org> | 2017-08-29 21:04:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-08-29 21:04:03 +0000 |
commit | 4e3b1132be25c93955d0e081e74871143c3f3564 (patch) | |
tree | 76c813d3a0ada4e3a23260bb162443f43513b244 /Master/texmf-dist/tex/latex/abnt/abnt.sty | |
parent | 3de87825b7a5cd47065c0c4522b0d355fd6607d8 (diff) |
abnt (29aug17)
git-svn-id: svn://tug.org/texlive/trunk@45163 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.sty | 198 |
1 files changed, 198 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/abnt/abnt.sty b/Master/texmf-dist/tex/latex/abnt/abnt.sty new file mode 100644 index 00000000000..2c5965ddf5b --- /dev/null +++ b/Master/texmf-dist/tex/latex/abnt/abnt.sty @@ -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@secnumdepth >\m@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@figure}{\@dottedtocline{1}{1.5em}{5.5em}} +\renewcommand*{\l@table}{\@dottedtocline{1}{1.5em}{5.5em}} +\renewcommand*{\l@mapa}{\@dottedtocline{1}{1.5em}{5.5em}} +\renewcommand*{\l@quadro}{\@dottedtocline{1}{1.5em}{6em}} +%\renewcommand{\p@table}{\tablename~} +%\renewcommand*{\p@figure}{\figurename~} %=\DeclareCaptionListFormat{listafigura}{\figurename\#1#2~--} +%\renewcommand*{\p@mapa}{\mapaname~} +%\renewcommand*{\p@quadro}{\quadroname~} + + + + +\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} + +\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@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@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 |