| 1 | # infufrgs — LaTeX Class for INF/UFRGS Documents |
| 2 | |
| 3 | **infufrgs** is a LaTeX document class that formats theses, dissertations, |
| 4 | monographs and research reports following the typographic and bibliographic |
| 5 | standards required by the **Institute of Informatics (INF)** of the |
| 6 | **Universidade Federal do Rio Grande do Sul (UFRGS)**, Porto Alegre, Brazil. |
| 7 | |
| 8 | ## Supported document types |
| 9 | |
| 10 | | Option | Description | |
| 11 | |---|---| |
| 12 | | `cic` | Ciência da Computação (undergraduate) | |
| 13 | | `ecp` | Engenharia de Computação (undergraduate) | |
| 14 | | `ppgc` | Programa de Pós-Graduação em Computação | |
| 15 | | `pgmicro` | Programa de Pós-Graduação em Microeletrônica | |
| 16 | | `ppgl` | Programa de Pós-Graduação em Letras | |
| 17 | | `dipl` / `tc` | Trabalho de Conclusão (bachelor's monograph) | |
| 18 | | `diss` / `mestrado` | Dissertação de Mestrado | |
| 19 | | `tese` / `doutorado` | Tese de Doutorado | |
| 20 | | `espec` | Monografia de Especialização | |
| 21 | | `ti` | Trabalho Individual | |
| 22 | | `rp` | Relatório de Pesquisa | |
| 23 | | `pep` | Plano de Estudos e Pesquisa | |
| 24 | | `prop-tese` | Proposta de Tese | |
| 25 | | `plano-doutorado` | Plano de Doutorado | |
| 26 | | `formais` | Extra theorem/definition environments | |
| 27 | | `unibral` | UNIBRAL double-degree (UFRGS + TU Berlin) | |
| 28 | |
| 29 | Other options: |
| 30 | |
| 31 | | Option | Description | |
| 32 | |---|---| |
| 33 | | `english` | Typeset document in English | |
| 34 | | `oneside` | Single-sided layout (default is two-sided) | |
| 35 | | `noabntcite` | Omit automatic loading of `abntex2cite` | |
| 36 | | `nominatalocal` | Read nominata data from `nominatalocal.def` | |
| 37 | |
| 38 | ## Requirements |
| 39 | |
| 40 | This class requires a modern TeX installation (TeX Live 2021 or later is |
| 41 | recommended). The following packages must be available: |
| 42 | |
| 43 | * Standard packages shipped with every TeX distribution: |
| 44 | `xspace`, `keyval`, `iftex`, `babel` (with `brazilian` and `english` |
| 45 | language support), `lastpage`, `indentfirst`, `setspace`, `titlesec`, |
| 46 | `tocloft`, `fancyhdr`, `xcolor`, `graphicx`, `caption`, `hyperref`, |
| 47 | `hypcap`, `geometry` |
| 48 | * Font packages: `newtxtext` and `newtxmath` (for pdfLaTeX) **or** |
| 49 | `fontspec` with the *TeX Gyre Termes* font (for XeLaTeX/LuaLaTeX) |
| 50 | * Bibliography: `abntex2cite` (part of the `abntex2` bundle, shipped with |
| 51 | TeX Live and MiKTeX) |
| 52 | |
| 53 | ## Quick start |
| 54 | |
| 55 | ```latex |
| 56 | \documentclass[ppgc,diss]{infufrgs} |
| 57 | |
| 58 | \usepackage[utf8]{inputenc} % for pdfLaTeX; not needed with XeLaTeX/LuaLaTeX |
| 59 | \usepackage{graphicx} |
| 60 | |
| 61 | \title{Title of the Document} |
| 62 | \translatedtitle{Translated Title} |
| 63 | \author{Surname}{First Name} |
| 64 | \advisor[Prof.~Dr.]{AdvisorSurname}{AdvisorFirstName} |
| 65 | \date{month}{year} |
| 66 | |
| 67 | \keyword{First keyword} |
| 68 | \keyword{Second keyword} |
| 69 | \translatedkeyword{First keyword in other language} |
| 70 | \translatedkeyword{Second keyword in other language} |
| 71 | |
| 72 | \begin{document} |
| 73 | \maketitle |
| 74 | \begin{abstract} ... \end{abstract} |
| 75 | \begin{translatedabstract} ... \end{translatedabstract} |
| 76 | \tableofcontents |
| 77 | \listoffigures |
| 78 | \listoftables |
| 79 | \chapter{Introduction} ... |
| 80 | \bibliographystyle{abntex2-alf} |
| 81 | \bibliography{references} |
| 82 | \end{document} |
| 83 | ``` |
| 84 | |
| 85 | See `example.tex` for a complete, compilable example. |
| 86 | |
| 87 | ## Files |
| 88 | |
| 89 | ``` |
| 90 | infufrgs/ |
| 91 | README.md — this file |
| 92 | infufrgs.cls — the document class (single self-contained file) |
| 93 | documentation.tex — user manual (LaTeX source) |
| 94 | example.tex — complete compilable usage example |
| 95 | example.bib — bibliography database for the example |
| 96 | ``` |
| 97 | |
| 98 | ## Compiling the example |
| 99 | |
| 100 | ```sh |
| 101 | pdflatex example |
| 102 | bibtex example |
| 103 | pdflatex example |
| 104 | pdflatex example |
| 105 | ``` |
| 106 | |
| 107 | ## Changes from previous versions |
| 108 | |
| 109 | * See the CHANGELOG file. |
| 110 | |
| 111 | ## Maintainer |
| 112 | |
| 113 | * Lucas Mello Schnorr (@schnorr) |
| 114 | |
| 115 | ## License |
| 116 | |
| 117 | This work may be distributed and/or modified under the conditions of the |
| 118 | **LaTeX Project Public License**, either version 1.3c of this license or |
| 119 | (at any option) any later version. The latest version of this license is |
| 120 | in <https://www.latex-project.org/lppl.txt> and version 1.3c or later is |
| 121 | part of all distributions of LaTeX version 2005/12/01 or later. |
| 122 | |
| 123 | This work has the LPPL maintenance status *maintained*. |
| 124 | |
| 125 | Copyright (C) 2001–2025 UFRGS TeX Users Group |
| 126 | Institute of Informatics — UFRGS |
| 127 | Porto Alegre, Brazil |
| 128 | <https://www.inf.ufrgs.br/utug> |