-
Notifications
You must be signed in to change notification settings - Fork 38
/
exemplo-cap1.tex
222 lines (197 loc) · 9.48 KB
/
exemplo-cap1.tex
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
%!TEX root = exemplo.tex
% Acima, um exemplo de como colocar o arquivo principal para compilar de
% qualquer arquivo.
%----------------------------------------------------------------------------------
% Exemplo do uso da classe pucrs-ppgcc.cls.
%----------------------------------------------------------------------------------
\chapter{\label{chap:intro}Introdução}
% Comando para inserir siglas. Tanto as siglas quanto as
% abreviaturas devem aparecer em ordem ALFABÉTICA nas listas
% correspondentes. Como a classe no momento não é capaz de ordenar
% as entradas automaticamente, existem duas alternativas:
%
% a- Insira todas as siglas e abreviaturas no começo do texto,
% manualmente e em ordem alfabética.
%
% b- Caso esteja em um ambiente UNIX (Linux, Mac ou Cygwin/similares),
% utilize o script sort.sh e o makefile que acompanham a
% classe. O makefile automaticamente compila a monografia para
% PDF (mas assume que o latex está acessível pela linha de
% comando). Neste caso a ordenação é feita de forma automática.
%
\sigla{abc}{aaaaa bbbbb ccccc}
\sigla{xyz}{lorem ipsum dolor sit}
\sigla{ijk}{lorem ipsum dolor sit}
%
% Comando para inserir abreviaturas.
%
\abrev{Abrev}{Abreviatura}
\abrev{Inform}{Informática}
%
% Comando para inserir símbolos. Eles irão aparecer em ordem
% de ocorrência, já que o número da página está presente na lista
% de símbolos.
\simbolo{Hz}{Hertz}
\simbolo{$\pi$}{Constante com valor aproximado de $3.1415926$}%
%
lorem ipsum dolor sit amet Capítulo~\ref{chap:intro} consetetur
sadipscing elitr sed diam nonumy eirmod tempor invidunt ut labore
et dolore magna aliquyam erat sed diam voluptua at vero eos et
accusam et justo duo dolores et ea rebum stet clita kasd gubergren
no sea takimata sanctus est lorem ipsum dolor sit amet lorem ipsum
dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod.
Ver Figura~\ref{fig:fig1}.
% Um exemplo de figura
\begin{figure}[htb!]
\centering\includegraphics[width=.65\textwidth]{fig/exemplo}
\caption%[This figure has a shorter caption now]%
{\label{fig:fig1}This is a figure with a very long
caption which looks ugly in the corresponding list of figures.
Fortunately, there is an optional parameter for a shorter
replacement of this monstrosity}%
\end{figure}
tempor invidunt~\cite{SKIENAC698} ut labore et dolore magna
aliquyam erat sed diam voluptua at vero eos et accusam et justo
duo dolores et ea rebum stet clita kasd gubergren no sea takimata
sanctus est lorem ipsum dolor sit amet lorem
ipsum~\cite{NAGAPACKING07}. O Algoritmo~\ref{alg:alg1}
mostra este processo.
\begin{algorithm}[htb]
\begin{center}
% Um exemplo de algoritmo utilizando a pacote 'algorithmic'
%\algsetup{linenosize=\small,linenodelimiter=.}
\begin{algorithmic}[1]
\STATE \textbf{function} $\sigma\left(i,j\right)$
\STATE \COMMENT{\texttt{table} lorem ipsum dolor consetetur sadipscing elitr sed $\left(i,j\right)$}
\IF{$\text{table}\left[i,j\right].\text{memoized}$}
\RETURN $\text{table}\left[i,j\right].\text{error}$
\ENDIF
\STATE $\text{minerror}\leftarrow\infty$
\STATE $\text{bestt}\leftarrow{}\text{nil}$
\FOR { each template $t$ in $T$ }
\STATE $\text{error}\leftarrow{}\text{allocate}\left(t,i,j\right)$
\IF{$\text{error}<\text{minerror}$}
\STATE $\text{minerror}\leftarrow{}\text{error}$
\STATE $\text{bestt}\leftarrow{}t$
\ENDIF
\ENDFOR
\STATE $\text{table}\left[i,j\right].\text{memoized}\leftarrow{}\text{true}$
\STATE $\text{table}\left[i,j\right].\text{template}\leftarrow{}\text{bestt}$
\STATE $\text{table}\left[i,j\right].\text{error}\leftarrow{}\text{minerror}$
\RETURN $\text{minerror}$
\end{algorithmic}
\end{center}
\caption[An algorithm with an optional, shorter caption]%
{\label{alg:alg1}This is an algorithm with a very long
caption. However, we replaced it with a shorter version
in the Outline for legibility reasons}%
\end{algorithm}
tempor invidunt ut labore et dolore magna aliquyam erat sed diam
voluptua at vero eos et accusam et justo duo dolores et ea
rebum~\cite{CORMEMALGORITHMS01}.
dolor sit~\cite{BENTLEYBC07} amet consetetur sadipscing elitr sed
diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat sed diam voluptua at vero~\cite{BRIANPL04}.
\begin{enumerate}
\item lorem
\item ipsum
\item dolor
\item sit
\item amet
\item consetetur
\end{enumerate}
\section{\label{sec:secao1}Primeira seção}
lorem ipsum dolor sit $x\leq 2$ amet consetetur sadipscing elitr
sed diam nonumy eirmod Seção~\ref{sec:secao1} tempor invidunt ut
labore et dolore magna aliquyam erat sed diam voluptua at vero eos
et accusam et justo duo dolores et ea rebum stet
clita.~\cite{OLIVEIRAAPL08}
% Um exemplo arbitrário de fórmula
\begin{equation}\label{eq:eq1}
\intop_{0}^{\infty}{x^2 + \frac{\pi}{\sum_{i=0}^{n}{\frac{1}{i^2}}}}
\end{equation}
kasd gubergren no sea Equação~\eqref{eq:eq1} takimata sanctus est
lorem ipsum dolor sit amet lorem ipsum dolor sit amet consetetur
sadipscing elitr sed diam nonumy eirmod.~\cite{PICCOLIAPL11}
amet lorem ipsum dolor sit amet consetetur sadipscing elitr sed
diam nonumy eirmod.~\cite{PICCOLIDM08}
\subsection{Subseção}
dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat sed diam
voluptua at vero.
lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat sed diam voluptua at vero eos et accusam et justo duo dolores
et ea rebum stet clita kasd gubergren no sea takimata sanctus est
lorem ipsum dolor sit amet lorem ipsum dolor sit amet consetetur
sadipscing elitr sed diam nonumy eirmod.
tempor invidunt ut labore et dolore magna aliquyam erat sed diam voluptua at
vero eos et accusam et justo duo dolores et ea rebum stet clita kasd
gubergren no sea takimata sanctus est lorem ipsum dolor sit amet lorem ipsum
dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat sed diam voluptua
at vero:
\begin{itemize}
\item lorem
\item ipsum
\item dolor
\item sit
\item amet
\item consetetur
\end{itemize}
\subsubsection{Subsub}
lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat sed diam
voluptua at vero eos et accusam et justo duo dolores et ea rebum
stet clita.~\cite{GOLDENBERGAPL02}
\begin{equation}\label{eq:apl}%
L\left(i,j,w,h\right)=
\begin{cases}
E\left(i,w,h\right) & i=j\\
\min\left(\min_{k=i}^{j-1}\left\{\heartsuit\left(i,k,j,w,h\right)\right\},
\min_{k=i}^{j-1}\left\{\spadesuit\left(i,k,j,w,h\right)\right\}\right) & i<j\text{.}
\end{cases}
\end{equation}
lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat sed diam
voluptua at vero eos et accusam et justo duo dolores et ea rebum stet clita
kasd gubergren no sea takimata sanctus est lorem ipsum dolor sit amet lorem
ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat sed diam voluptua at
vero eos et accusam et justo duo dolores et ea rebum stet clita kasd
gubergren no sea takimata sanctus est lorem ipsum dolor sit amet lorem ipsum
dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat sed diam voluptua at vero
eos et accusam et justo duo dolores et ea rebum stet clita kasd gubergren no
sea takimata sanctus est lorem ipsum dolor sit amet.
%----------------------------------------------------------------------------------
% Exemplo do ambiente para citações diretas com mais de 3 linhas.
%
% Para citações diretas de até 3 linhas, faça assim:
% De acordo com Direto~(2011, p.~21): "bla bla bla, bla 'bla'."
De acordo com Autor~(2011, p.~19):
\begin{directcite}
ut wisi enim ad minim veniam quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat duis autem vel eum iriure
dolor in hendrerit in vulputate velit esse molestie consequat vel illum
dolore eu feugiat nulla facilisis at vero eros et accumsan et
iusto odio
\end{directcite}
duis autem vel eum iriure dolor in hendrerit in vulputate velit esse
molestie consequat vel illum dolore eu feugiat nulla facilisis at vero eros
et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril
delenit augue duis dolore te feugait nulla facilisi lorem ipsum dolor sit
amet consectetuer adipiscing elit sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat.
ut wisi enim ad minim veniam quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat duis autem vel eum iriure
dolor in hendrerit in vulputate velit esse molestie consequat vel illum
dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te
feugait nulla facilisi.
nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet
doming id quod mazim placerat facer possim assum lorem ipsum dolor sit amet
consectetuer adipiscing elit sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat ut wisi enim ad minim veniam quis
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
commodo consequat.