-
Notifications
You must be signed in to change notification settings - Fork 0
/
ach2017.sty
186 lines (152 loc) · 6.65 KB
/
ach2017.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
% ach2017.sty: LaTeX macro providing the layout used for monographs
% in the courses "ACH2017 - Projeto de Graduação ou Supervisionado I"
% and "ACH2018 - Projeto de Graduação ou Supervisionado II" from the
% course Sistemas de Informação (SI) at Escola de Artes, Ciências e
% Humanidades da Universidade de São Paulo (EACH-USP).
%
% Adapted from the style file for the layout of "Tese/Dissertação
% segundo as normas da Pós-graduação do IFSC-USP", created by
% Alexandre de Castro Maciel - Grupo de Polimeros Bernhard Gross.
% That work was licenced under the license Creative Commons
% Atribuição-Uso Não-Comercial-Compartilhamento pela mesma Licença
% 2.5 Brasil.
%
% The original style file cited above was downloaded from:
%
% http://www.tex-br.org/index.php/Página_inicial
% http://www.teseemlatex.ifsc.usp.br/
% http://www.teseemlatex.ifsc.usp.br/modelos/TeseIFSC20081105.zip
%
% Copyright: 2009 Fernando Auil <[email protected]>
% Upstream Author: Fernando Auil <[email protected]>
% Last revision: 09Dec2009
%
% Contributors:
%
% Felipe Meneses Besson <[email protected]>
% Circa 03Jun2009 (?): First version of \capa and \folhadeaprovacao,
% now extensively modified and detached to the companion macro package
% ach2017-pretextual.
%
% John Robson <[email protected]>
% Dec2009: Helpful hints, discusions, and feedback.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ach2017}[2009/07/11 v0.1 (Fernando Auil)]
\typeout{Document Style: ach2017 2009/07/11 v0.1 ABNT compliant monograph for ACH2017 and ACH2018 at EACH-USP}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX macros which we need.
\usepackage{setspace} % Needed for abntex.
% Enables a better control in the layout of List Of Figures and Tables
% (loft), as well to define new lists.
\usepackage{tocloft}
\usepackage{multirow} % Mix cells in tables.
\usepackage{rotating} % Used by macro sidewaytable for tables rotated by Pi/2.
\usepackage{booktabs} % Modifies the layout of tables.
\usepackage{longtable} % For long tables extended along several pages.
% Improves the placement of float objects, as figures and tables, as
% also enables the definition new float objects.
\usepackage{float}
% Settings for the layout of the captions in tables and figures.
\usepackage[format=hang,font=it,justification=centerlast,labelfont=bf,labelsep=endash]{caption}
\usepackage{subfig} % CRIA AMBIENTES DE FIGURA COM VÁRIAS FIGURAS
% Settings for the layout of footnotes
\usepackage[bottom,marginal,flushmargin,stable,multiple]{footmisc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newboolean{DISCIPLINAach2017}
\newboolean{DISCIPLINAach2018}
\DeclareOption{disciplina=ach2017}{\setboolean{DISCIPLINAach2017}{true}\setboolean{DISCIPLINAach2018}{false}}
\DeclareOption{disciplina=ach2018}{\setboolean{DISCIPLINAach2017}{false}\setboolean{DISCIPLINAach2018}{true}}
\newboolean{ABNTrelax}
\newboolean{ABNTstrict}
\DeclareOption{abnt=relax}{\setboolean{ABNTrelax}{true}\setboolean{ABNTstrict}{false}}
\DeclareOption{abnt=strict}{\setboolean{ABNTrelax}{false}\setboolean{ABNTstrict}{true}}
\newboolean{DISABLEcopyright}
\DeclareOption{disable=copyright}{\setboolean{DISABLEcopyright}{true}}
% Hack on abntcite.sty.
\newboolean{DISABLEbiblabel}
\DeclareOption{disable=biblabel}{\setboolean{DISABLEbiblabel}{true}}
\ProcessOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifthenelse{\boolean{DISCIPLINAach2018}}
{\providecommand{\disciplinaname}{ACH2018 – Projeto Supervisionado ou de Gradua\c c\~ao II}}
{\providecommand{\disciplinaname}{ACH2017 – Projeto Supervisionado ou de Gradua\c c\~ao I}}
\providecommand{\disciplinanameformat}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definitions for some pre-textual elements of ABNT standard.
\usepackage{sty/ach2017-pretextual}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Layout for epigraphs.
\providecommand{\epigraphtopmargin}{}
\providecommand{\epigraphindent}{\indent}
\providecommand{\epigraphleftmargin}{\hspace{\stretch{1}}}
\providecommand{\epigraphformat}{\small}
\providecommand{\epigraphauthorformat}{\small\sl}
\newenvironment{epigraph}[4]{%
\ABNTifnotempty{#1}{\renewcommand{\epigraphtopmargin}{\vspace{#1}}}
\epigraphtopmargin
\begin{spacing}{1}
\begin{quote}
\epigraphindent\epigraphleftmargin
{\epigraphformat {#2}}\\[2mm]
\ABNTifnotempty{#3}{%
\indent\hspace{\stretch{1}}
{\epigraphauthorformat {#3}}\ABNTifnotempty{#4}{\,\footnote{{#4}}}
}
\end{quote}
\end{spacing}}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Cria o ambiente de lista de símbolos e abreviações
% Não há necessidade de editar isso ao menos que você saiba o que
% está fazendo.
\newenvironment{listaespecial}[1][R(x)]{%
\begin{list}{}{%
\renewcommand\makelabel[1]{\normalsize\ensuremath{##1}}
\setlength{\listparindent}{0pt}
\settowidth{\labelwidth}{\makelabel{#1}}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}}
}{\end{list}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Layout for figures
\newlength{\mylenf}
\settowidth{\mylenf}{\bfseries\cftfigpresnum\cftfigaftersnum}
\addtolength{\cftfignumwidth}{\mylenf}
\setlength{\mylenf}{0.5in}
\renewcommand{\cftfigpresnum}{\hfill}
\renewcommand{\cftfigaftersnum}{\hspace*{\mylenf}}
\addtolength{\cftfignumwidth}{\mylenf}
\renewcommand{\cftfigleader}{\cftdotfill{\cftfigdotsep}}
\renewcommand{\cftfigpresnum}{Figura }
\renewcommand{\cftfigaftersnum}{ - }
% Layout for tables
\newlength{\mylent}
\settowidth{\mylent}{\bfseries\cfttabpresnum\cfttabaftersnum}
\addtolength{\cfttabnumwidth}{\mylent}
\setlength{\mylent}{0.5in}
\renewcommand{\cfttabpresnum}{\hfill}
\renewcommand{\cfttabaftersnum}{\hspace*{\mylent}}
\addtolength{\cfttabnumwidth}{\mylent}
\renewcommand{\cfttableader}{\cftdotfill{\cfttabdotsep}}
\renewcommand{\cfttabpresnum}{Tabela }
\renewcommand{\cfttabaftersnum}{ - }
% Layout for the captions of long tables
\setlength{\LTcapwidth}{6.3in}
\setlength{\LTpre}{0.1in}
% Layout for footnotes
\newlength{\myFootnoteWidth}
\newlength{\myFootnoteLabel}
\setlength{\myFootnoteLabel}{0.5em} % <-- can be changed to any valid value
\renewcommand{\@makefntext}[1]{%
\setlength{\myFootnoteWidth}{\columnwidth}%
\addtolength{\myFootnoteWidth}{-\myFootnoteLabel}%
\noindent\makebox[\myFootnoteLabel][r]{\@makefnmark\ }%
\parbox[t]{\myFootnoteWidth}{#1}%
}
\renewcommand\footnoterule{\kern-.\p@\hrule\@width3cm\kern2.6\p@}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hack on abntcite.sty.
\ifthenelse{\boolean{DISABLEbiblabel}}
{\renewcommand{\@biblabel}[1]{}}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EndOfFile