| 1 |
%============================================================================== |
| 2 |
% infufrgs-example.tex — Complete usage example for the infufrgs class |
| 3 |
% |
| 4 |
% This file is hereby placed in the public domain. |
| 5 |
% |
| 6 |
% Compile sequence: |
| 7 |
% pdflatex infufrgs-example |
| 8 |
% bibtex infufrgs-example |
| 9 |
% pdflatex infufrgs-example |
| 10 |
% pdflatex infufrgs-example |
| 11 |
%============================================================================== |
| 12 |
|
| 13 |
% Select program (ppgc, pgmicro, cic, ecp, ppgl) and document type |
| 14 |
% (diss/mestrado, tese/doutorado, tc/dipl, ti, rp, espec, pep, prop-tese, |
| 15 |
% plano-doutorado). Add `english' for English-language documents. |
| 16 |
\documentclass[ppgc,diss,english]{infufrgs} |
| 17 |
|
| 18 |
% If using pdfLaTeX, declare the input encoding (UTF-8 is recommended). |
| 19 |
% Not needed with XeLaTeX or LuaLaTeX. |
| 20 |
\usepackage[utf8]{inputenc} |
| 21 |
|
| 22 |
% For figure inclusion |
| 23 |
\usepackage{graphicx} |
| 24 |
|
| 25 |
% Optionally load math packages |
| 26 |
% \usepackage{amsmath} |
| 27 |
|
| 28 |
%------------------------------------------------------------------------------ |
| 29 |
% Document metadata |
| 30 |
%------------------------------------------------------------------------------ |
| 31 |
\title{Um Exemplo de Monografia do Instituto de Informática da UFRGS} |
| 32 |
\translatedtitle{Using \LaTeX\ to Prepare Documents at INF/UFRGS} |
| 33 |
|
| 34 |
% Author: \author{Surname}{First Name(s)} |
| 35 |
\author{Flaumann}{Fritz Gutenberg} |
| 36 |
% Multiple authors are supported: |
| 37 |
%\author{Flaumann}{Frida Gutenberg} |
| 38 |
|
| 39 |
% Advisor (title is optional): \advisor[Title]{Surname}{First Name(s)} |
| 40 |
\advisor[Prof.~Dr.]{Lamport}{Leslie} |
| 41 |
% Co-advisor is optional: |
| 42 |
%\coadvisor[Prof.~Dr.]{Knuth}{Donald Ervin} |
| 43 |
|
| 44 |
% Date of the defence. Defaults to the current month and year if omitted. |
| 45 |
%\date{maio}{2001} |
| 46 |
|
| 47 |
% Location of the defence. Defaults to Porto Alegre, RS. |
| 48 |
%\location{Itaquaquecetuba}{SP} |
| 49 |
|
| 50 |
%------------------------------------------------------------------------------ |
| 51 |
% Keywords — use Title Case; up to 10 keywords per language |
| 52 |
%------------------------------------------------------------------------------ |
| 53 |
\keyword{Ciência da Computação} |
| 54 |
\keyword{Formatação de documentos} |
| 55 |
\keyword{LaTeX} |
| 56 |
|
| 57 |
\translatedkeyword{Computer Science} |
| 58 |
\translatedkeyword{Document formatting} |
| 59 |
\translatedkeyword{LaTeX} |
| 60 |
|
| 61 |
%------------------------------------------------------------------------------ |
| 62 |
% Nominata — override individual fields if the bundled defaults are stale. |
| 63 |
% Example: |
| 64 |
% \renewcommand{\nominataReit}{Prof\textsuperscript{a}.~Nome Sobrenome} |
| 65 |
% \renewcommand{\nominataReitname}{Reitora} |
| 66 |
%------------------------------------------------------------------------------ |
| 67 |
|
| 68 |
%============================================================================== |
| 69 |
\begin{document} |
| 70 |
%============================================================================== |
| 71 |
|
| 72 |
% Title page + CIP (or nominata page) |
| 73 |
\maketitle |
| 74 |
|
| 75 |
%------------------------------------------------------------------------------ |
| 76 |
% Optional front matter |
| 77 |
%------------------------------------------------------------------------------ |
| 78 |
\begin{dedicatoria} |
| 79 |
À minha família. |
| 80 |
\end{dedicatoria} |
| 81 |
|
| 82 |
\begin{agradecimentos} |
| 83 |
Agradeço a todos que contribuíram para a realização deste trabalho. |
| 84 |
\end{agradecimentos} |
| 85 |
|
| 86 |
%------------------------------------------------------------------------------ |
| 87 |
% Abstract in the primary language |
| 88 |
%------------------------------------------------------------------------------ |
| 89 |
\begin{abstract} |
| 90 |
Este documento demonstra o uso da classe \textit{infufrgs} para a preparação |
| 91 |
de monografias, dissertações e teses no Instituto de Informática da UFRGS. |
| 92 |
A classe fornece formatação automática da folha de rosto, sumário, listas de |
| 93 |
figuras e tabelas, referências no padrão ABNT e outros elementos |
| 94 |
pré-textuais e pós-textuais. |
| 95 |
\end{abstract} |
| 96 |
|
| 97 |
%------------------------------------------------------------------------------ |
| 98 |
% Abstract in the second language (translatedabstract) |
| 99 |
%------------------------------------------------------------------------------ |
| 100 |
\begin{translatedabstract} |
| 101 |
This document demonstrates the use of the \textit{infufrgs} class for |
| 102 |
preparing monographs, dissertations and theses at the Institute of |
| 103 |
Informatics of UFRGS. The class provides automatic formatting of the |
| 104 |
title page, table of contents, lists of figures and tables, ABNT-style |
| 105 |
references, and other front- and back-matter elements. |
| 106 |
\end{translatedabstract} |
| 107 |
|
| 108 |
%------------------------------------------------------------------------------ |
| 109 |
% Lists |
| 110 |
%------------------------------------------------------------------------------ |
| 111 |
\tableofcontents |
| 112 |
|
| 113 |
\listoffigures |
| 114 |
|
| 115 |
\listoftables |
| 116 |
|
| 117 |
% Optional: list of abbreviations |
| 118 |
\begin{listofabbrv}{UFRGS} |
| 119 |
\item[ABNT] Associação Brasileira de Normas Técnicas |
| 120 |
\item[INF] Instituto de Informática |
| 121 |
\item[PPGC] Programa de Pós-Graduação em Computação |
| 122 |
\item[UFRGS] Universidade Federal do Rio Grande do Sul |
| 123 |
\end{listofabbrv} |
| 124 |
|
| 125 |
% Optional: list of symbols |
| 126 |
% \begin{listofsymbols}{$\alpha$} |
| 127 |
% \item[$\alpha$] Alpha coefficient |
| 128 |
% \end{listofsymbols} |
| 129 |
|
| 130 |
%============================================================================== |
| 131 |
% Text body |
| 132 |
%============================================================================== |
| 133 |
|
| 134 |
\chapter{Introdução} |
| 135 |
|
| 136 |
Este capítulo introduz o tema do trabalho. Citações bibliográficas seguem a |
| 137 |
norma ABNT; por exemplo, a linguagem \LaTeX\ foi descrita por |
| 138 |
\cite{lamport1994latex}. |
| 139 |
|
| 140 |
Figuras devem ser referenciadas pelo número (Figura~\ref{fig:exemplo}). |
| 141 |
|
| 142 |
\begin{figure}[htbp] |
| 143 |
\centering |
| 144 |
\fbox{\rule{0pt}{4cm}\rule{6cm}{0pt}} |
| 145 |
\caption{Exemplo de figura com legenda centralizada.} |
| 146 |
\label{fig:exemplo} |
| 147 |
\end{figure} |
| 148 |
|
| 149 |
\section{Organização do Texto} |
| 150 |
|
| 151 |
O restante deste documento está organizado da seguinte forma. O |
| 152 |
Capítulo~\ref{cap:fundamentacao} apresenta a fundamentação teórica. |
| 153 |
O Capítulo~\ref{cap:conclusao} apresenta as conclusões. |
| 154 |
|
| 155 |
\chapter{Fundamentação Teórica} |
| 156 |
\label{cap:fundamentacao} |
| 157 |
|
| 158 |
\section{Formatação} |
| 159 |
|
| 160 |
A classe \texttt{infufrgs} herda da classe \texttt{report} do \LaTeX. As |
| 161 |
margens, o espaçamento entre linhas, a numeração de páginas e os títulos de |
| 162 |
capítulos e seções são configurados automaticamente de acordo com as normas |
| 163 |
do Instituto. |
| 164 |
|
| 165 |
\subsection{Tabelas} |
| 166 |
|
| 167 |
Tabelas devem ter título acima do corpo e ser referenciadas no texto |
| 168 |
(Tabela~\ref{tab:exemplo}). |
| 169 |
|
| 170 |
\begin{table}[htbp] |
| 171 |
\centering |
| 172 |
\caption{Exemplo de tabela com legenda centralizada.} |
| 173 |
\label{tab:exemplo} |
| 174 |
\begin{tabular}{lcc} |
| 175 |
\hline |
| 176 |
\textbf{Coluna A} & \textbf{Coluna B} & \textbf{Coluna C} \\ |
| 177 |
\hline |
| 178 |
Linha 1 & 1.0 & 2.0 \\ |
| 179 |
Linha 2 & 3.0 & 4.0 \\ |
| 180 |
\hline |
| 181 |
\end{tabular} |
| 182 |
\end{table} |
| 183 |
|
| 184 |
\subsubsection{Citações longas} |
| 185 |
|
| 186 |
Citações com mais de três linhas devem ser destacadas em bloco, com recuo de |
| 187 |
4\,cm à esquerda: |
| 188 |
|
| 189 |
\begin{quote} |
| 190 |
Esta é uma citação longa de exemplo. O ambiente \texttt{quote} da classe |
| 191 |
\texttt{infufrgs} aplica automaticamente o recuo, o tamanho de fonte e o |
| 192 |
espaçamento simples exigidos pela norma. |
| 193 |
\end{quote} |
| 194 |
|
| 195 |
\chapter{Conclusão} |
| 196 |
\label{cap:conclusao} |
| 197 |
|
| 198 |
Este documento demonstrou os principais recursos da classe \texttt{infufrgs}. |
| 199 |
|
| 200 |
%============================================================================== |
| 201 |
% Back matter |
| 202 |
%============================================================================== |
| 203 |
|
| 204 |
% Appendices start with \appendix (optional \annexname for annexes) |
| 205 |
\appendix |
| 206 |
|
| 207 |
\chapter{Exemplo de Apêndice} |
| 208 |
|
| 209 |
Apêndices contêm material elaborado pelo próprio autor. |
| 210 |
|
| 211 |
\annex |
| 212 |
|
| 213 |
\chapter{Exemplo de Anexo} |
| 214 |
|
| 215 |
Anexos contêm material de terceiros reproduzido para documentação. |
| 216 |
|
| 217 |
%------------------------------------------------------------------------------ |
| 218 |
% References (ABNT author-date style) |
| 219 |
%------------------------------------------------------------------------------ |
| 220 |
\bibliographystyle{abntex2-alf} |
| 221 |
\bibliography{infufrgs-example} |
| 222 |
|
| 223 |
\end{document} |