-
Notifications
You must be signed in to change notification settings - Fork 7
/
ufscar.cls
122 lines (101 loc) · 2.82 KB
/
ufscar.cls
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ufscar}[2016/04/12 Template UFSCar relatorio]
% Packages
\LoadClass[a4, 12pt]{article}
\RequirePackage[brazilian]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage{helvet}
\RequirePackage{indentfirst}
\RequirePackage{etoolbox}
\RequirePackage{geometry}
\RequirePackage{setspace}
\RequirePackage{titlesec}
\RequirePackage{tocloft}
\RequirePackage{graphicx}
\RequirePackage{fancyhdr}
% Personal data
\input{seus-dados}
% Document structure
\doublespacing
\renewcommand{\familydefault}{\sfdefault}
\pagestyle{fancy}
\geometry{margin=1in, bottom=2.5in}
\AtBeginDocument {\capa\conteudo}
\AtEndDocument {\assinaturas}
% Sections
\titleformat{\section}
{\normalfont\bfseries}{\thesection.}{1em}{}[{\titlerule[0.8pt]}]
\titleformat{\subsection}
{\normalfont\bfseries}{\thesubsection}{1em}{}
% Header and footer
\setlength\headheight{108pt}
\renewcommand{\headrulewidth}{0pt}
\lhead{}
\chead{%
\includegraphics[width=2.8cm]{assets/logo}\\%
\textbf{\footnotesize UNIVERSIDADE FEDERAL DE SÃO CARLOS (UFSCar) – SOROCABA}\\%
\footnotesize Departamento de Computação (DComp)\\%
Estágio Supervisionado em Ciência da Computação%
}
\rhead{}
\lfoot{}
\rfoot{\thepage}
\cfoot{\data}
\fancypagestyle{coverstyle}
{
\lfoot{}
\rfoot{}
\cfoot{}
}
% Summary
\addto\captionsbrazilian{%
\renewcommand{\contentsname}%
{\normalfont\bfseries Conteúdo}%
}
\newcommand{\conteudo}{\tableofcontents\thispagestyle{coverstyle}\newpage}
\renewcommand{\cftsecfont}{}
\renewcommand{\cftdotsep}{0.5}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
% Signatures
\newcommand{\assinaturas}{\newpage\section{Assinaturas}%
\begin{center}%
\vspace{2cm}%
\line(1,0){250}\\%
\emph{Assinatura do Estagiário}\\%
\emph{\aluno}%
\end{center}%
\begin{center}%
\vspace{2cm}%
\line(1,0){250}\\%
\emph{Assinatura do supervisor do estágio na concedente}\\%
\emph{\supervisorNome\enskip(\supervisorCargo)}%
\end{center}%
\begin{center}%
\vspace{2cm}%
\line(1,0){250}\\%
\emph{Assinatura do supervisor do estágio na UFSCar}\\%
\emph{\professorNome\enskip(\professorCargo)}%
\end{center}}
% Cover page
\newcommand{\capa}{\vspace*{10cm}%
\begin{flushright}%
\footnotesize%
\textbf{Aluno:} \aluno\\%
\textbf{Supervisor na UFSCar – Sorocaba:} \professorNome\\%
\textbf{Supervisor na Concedente:} \supervisorNome\\%
\textbf{Empresa:} \empresa\\%
\textbf{Período de estágio:} \periodo\\%
\textbf{Disciplina(s):} \disciplinas%
\end{flushright}%
\vspace{1cm}%
\begin{center}%
\footnotesize%
\ifdef{\relatorioFinal}
{\textbf{RELATÓRIO PARCIAL [\quad] \hspace{1cm} RELATÓRIO FINAL [ X ]}\\}%
{\textbf{RELATÓRIO PARCIAL [ X ] \hspace{1cm} RELATÓRIO FINAL [\quad]}\\}%
\vspace{1cm}%
\footnotesize%
\textbf{APROVADO [\quad] \hspace{1.5cm} REPROVADO [\quad] \hspace{1.5cm} AJUSTES [\quad]}%
\end{center}%
\thispagestyle{coverstyle}%
\newpage}