Debian Codegraph @

texmf-dist/doc/latex/infufrgs/infufrgs-doc.tex

raw
1 %==============================================================================
2 % infufrgs-documentation.tex — User Manual for the infufrgs LaTeX class
3 %
4 % Copyright (C) 2001-2026 UFRGS TeX Users Group
5 %
6 % This work may be distributed and/or modified under the conditions of
7 % the LaTeX Project Public License, either version 1.3c of this license
8 % or (at your option) any later version.
9 % The latest version of this license is in
10 % https://www.latex-project.org/lppl.txt
11 % and version 1.3c or later is part of all distributions of LaTeX
12 % version 2005/12/01 or later.
13 %
14 % Compile with:
15 % pdflatex infufrgs-documentation
16 % pdflatex infufrgs-documentation
17 %==============================================================================
18 \documentclass[11pt,a4paper]{article}
19
20 \usepackage[T1]{fontenc}
21 \usepackage[utf8]{inputenc}
22 \usepackage[english]{babel}
23 \usepackage{geometry}
24 \usepackage{microtype}
25 \usepackage{booktabs}
26 \usepackage{xcolor}
27 \usepackage{fancyvrb}
28 \usepackage{array}
29 \usepackage{parskip}
30 \usepackage[colorlinks=true,linkcolor=black,urlcolor=blue,citecolor=black,
31 bookmarksnumbered=true]{hyperref}
32
33 \geometry{top=25mm,bottom=25mm,left=30mm,right=25mm}
34
35 %------------------------------------------------------------------------------
36 % Convenience macros
37 %------------------------------------------------------------------------------
38 \newcommand{\pkg}[1]{\textsf{#1}}
39 \newcommand{\cls}[1]{\textsf{#1}}
40 \newcommand{\opt}[1]{\texttt{#1}}
41 \newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
42 \newcommand{\env}[1]{\texttt{#1}}
43 \newcommand{\file}[1]{\texttt{#1}}
44 \newcommand{\meta}[1]{\textit{\textlangle#1\textrangle}}
45
46 % Inline code box
47 \definecolor{codebg}{rgb}{0.96,0.96,0.96}
48 \newcommand{\code}[1]{%
49 \colorbox{codebg}{\texttt{\small #1}}}
50
51 % Verbatim environment for code listings
52 \DefineVerbatimEnvironment{latex}{Verbatim}{%
53 frame=single,
54 framesep=2mm,
55 fontsize=\small,
56 rulecolor=\color{gray!50},
57 xleftmargin=4mm,
58 xrightmargin=4mm,
59 gobble=0}
60
61 % Note box
62 \newenvironment{note}{%
63 \begin{center}
64 \begin{minipage}{0.93\linewidth}
65 \colorbox{yellow!20}{\parbox{\linewidth-2\fboxsep}{%
66 \smallskip\textbf{Note:}\enspace\ignorespaces
67 }{%
68 \smallskip}}
69 \end{minipage}
70 \end{center}}
71
72 %------------------------------------------------------------------------------
73 % Document metadata
74 %------------------------------------------------------------------------------
75 \title{%
76 \pkg{infufrgs} — LaTeX Class for\\[4pt]
77 INF/UFRGS Academic Documents\\[8pt]
78 \large\normalfont User Manual\\[4pt]
79 \large\normalfont Version~5.0.1 (2026-03-18)}
80 \author{UFRGS TeX Users Group\\
81 \small Institute of Informatics — UFRGS, Porto Alegre, Brazil\\
82 \small\url{https://www.inf.ufrgs.br/utug}}
83 \date{}
84
85 %==============================================================================
86 \begin{document}
87 %==============================================================================
88
89 \maketitle
90 \thispagestyle{empty}
91
92 \begin{abstract}
93 \noindent
94 The \cls{infufrgs} document class typesets theses, dissertations,
95 monographs, research reports, and related academic documents following
96 the typographic and bibliographic standards required by the Institute
97 of Informatics (INF) of the Universidade Federal do Rio Grande do Sul
98 (UFRGS), Porto Alegre, Brazil. This manual describes version~5.0.0,
99 a self-contained single-file consolidation released under the
100 LaTeX Project Public Licence~1.3c.
101 \end{abstract}
102
103 \tableofcontents
104
105 %==============================================================================
106 \section{Introduction}
107 %==============================================================================
108
109 The \cls{infufrgs} class has been maintained by the UFRGS TeX Users Group
110 since~2001. It builds on the standard \cls{report} class and provides:
111 %
112 \begin{itemize}
113 \item automatic typesetting of the title page and CIP
114 (Catalogação na Publicação) block;
115 \item front-matter environments for abstracts in two languages,
116 dedications, acknowledgements, and lists of abbreviations
117 and symbols;
118 \item chapter, section, and caption formatting that complies with
119 the ABNT standards adopted by INF/UFRGS;
120 \item built-in support for ABNT-style bibliographic citations via
121 the \pkg{abntex2cite} package;
122 \item support for several undergraduate and graduate programmes
123 at INF/UFRGS and the Microelectronics and Letters
124 Post-Graduate Programmes;
125 \item optional theorem/definition environments (\opt{formais} option);
126 \item support for UNIBRAL (UFRGS–TU\,Berlin) double-degree documents
127 (\opt{unibral} option).
128 \end{itemize}
129 %
130 Version~5.0.0 is a major modernisation: all auxiliary files
131 (\file{iidefs.sty}, \file{*.def}, \file{*.babel}) have been
132 consolidated into the single file \file{infufrgs.cls}.
133
134 %==============================================================================
135 \section{Requirements}
136 \label{sec:requirements}
137 %==============================================================================
138
139 \cls{infufrgs} requires a reasonably modern TeX installation.
140 TeX~Live~2021 or later (or MiK\TeX{} with all packages updated) is
141 recommended. The following packages must be available; all of them
142 are part of standard TeX~Live and MiK\TeX{} distributions.
143
144 \begin{center}
145 \begin{tabular}{@{}ll@{}}
146 \toprule
147 Package & Purpose \\
148 \midrule
149 \pkg{xspace} & Smart spacing after macros \\
150 \pkg{keyval} & Key–value option parsing \\
151 \pkg{iftex} & Engine detection (\cmd{ifpdftex}, \cmd{ifxetex}, \cmd{ifluatex}) \\
152 \pkg{babel} & Language support (Brazilian Portuguese and English) \\
153 \pkg{lastpage} & \verb|\pageref{LastPage}| for CIP \\
154 \pkg{indentfirst} & Indent first paragraph of each section \\
155 \pkg{setspace} & Line-spacing control \\
156 \pkg{titlesec} & Section heading formatting \\
157 \pkg{tocloft} & Table-of-contents formatting \\
158 \pkg{fancyhdr} & Page header/footer \\
159 \pkg{xcolor} & Colour support \\
160 \pkg{graphicx} & Figure inclusion \\
161 \pkg{caption} & Caption formatting \\
162 \pkg{hyperref} & PDF hyperlinks and metadata \\
163 \pkg{hypcap} & Correct hyperlink anchors for floats \\
164 \pkg{geometry} & Page layout \\
165 \pkg{newtxtext}, \pkg{newtxmath} & Times-based fonts (pdf\LaTeX{} only) \\
166 \pkg{fontspec} & OpenType fonts (Xe\LaTeX/Lua\LaTeX{} only) \\
167 \pkg{abntex2cite} & ABNT citation style (part of \pkg{abntex2}) \\
168 \bottomrule
169 \end{tabular}
170 \end{center}
171
172 The \pkg{abntex2} bundle is shipped with TeX~Live and MiK\TeX{}.
173 Font packages \pkg{newtxtext}/\pkg{newtxmath} are available in TeX~Live
174 as \texttt{tex-newtx}.
175
176 %==============================================================================
177 \section{Installation}
178 \label{sec:installation}
179 %==============================================================================
180
181 Copy \file{infufrgs.cls} to a directory where \TeX{} can find it.
182 Common choices are:
183 %
184 \begin{itemize}
185 \item the same directory as your document (simplest);
186 \item \texttt{TEXMFHOME/tex/latex/infufrgs/} for a personal
187 installation (run \texttt{texhash} afterwards).
188 \end{itemize}
189 %
190 When installed from CTAN via TeX~Live (\texttt{tlmgr install infufrgs})
191 or MiK\TeX, no manual step is required.
192
193 %==============================================================================
194 \section{Class Options}
195 \label{sec:options}
196 %==============================================================================
197
198 Options are supplied as a comma-separated list in the
199 \cmd{documentclass} argument:
200
201 \begin{latex}
202 \documentclass[<programme>,<document-type>,...]{infufrgs}
203 \end{latex}
204
205 \subsection{Programme options}
206 \label{sec:progopts}
207
208 Exactly one programme option should be given.
209
210 \begin{center}
211 \begin{tabular}{@{}lp{0.70\linewidth}@{}}
212 \toprule
213 Option & Programme \\
214 \midrule
215 \opt{cic} & Ciência da Computação (undergraduate) \\
216 \opt{ecp} & Engenharia de Computação (undergraduate) \\
217 \opt{ppgc} & Programa de Pós-Graduação em Computação \\
218 \opt{pgmicro} & Programa de Pós-Graduação em Microeletrônica \\
219 \opt{ppgl} & Programa de Pós-Graduação em Letras \\
220 \bottomrule
221 \end{tabular}
222 \end{center}
223
224 \subsection{Document-type options}
225 \label{sec:doctypeopts}
226
227 Exactly one document-type option should be given.
228
229 \begin{center}
230 \begin{tabular}{@{}lp{0.68\linewidth}@{}}
231 \toprule
232 Option(s) & Document type \\
233 \midrule
234 \opt{tc} / \opt{dipl} & Trabalho de Conclusão (bachelor's monograph) \\
235 \opt{diss} / \opt{mestrado} & Dissertação de Mestrado (Master's thesis) \\
236 \opt{tese} / \opt{doutorado} & Tese de Doutorado (Doctoral thesis) \\
237 \opt{espec} & Monografia de Especialização \\
238 \opt{ti} & Trabalho Individual \\
239 \opt{rp} & Relatório de Pesquisa \\
240 \opt{pep} & Plano de Estudos e Pesquisa \\
241 \opt{prop-tese} & Proposta de Tese de Doutorado \\
242 \opt{plano-doutorado} & Plano de Doutorado \\
243 \bottomrule
244 \end{tabular}
245 \end{center}
246
247 \subsection{Other options}
248 \label{sec:otheropts}
249
250 \begin{center}
251 \begin{tabular}{@{}lp{0.68\linewidth}@{}}
252 \toprule
253 Option & Effect \\
254 \midrule
255 \opt{english} & Typeset the document in English (headings, captions, etc.) \\
256 \opt{oneside} & Single-sided layout (default is two-sided) \\
257 \opt{noabntcite} & Do not automatically load \pkg{abntex2cite};
258 load it yourself or use a different citation package \\
259 \opt{nominatalocal} & Read nominata data from \file{nominatalocal.def}
260 instead of the built-in defaults
261 (see Section~\ref{sec:nominata}) \\
262 \opt{formais} & Load theorem/definition environments
263 (see Section~\ref{sec:formais}) \\
264 \opt{unibral} & Enable UNIBRAL double-degree support
265 (see Section~\ref{sec:unibral}) \\
266 \bottomrule
267 \end{tabular}
268 \end{center}
269
270 Any option not recognised by \cls{infufrgs} is passed through to the
271 underlying \cls{report} class.
272
273 %==============================================================================
274 \section{Document Preamble — Metadata Commands}
275 \label{sec:preamble}
276 %==============================================================================
277
278 All the following commands should appear in the preamble, i.e., between
279 \cmd{documentclass} and \cmd{begin\{document\}}.
280
281 \subsection{Title and translated title}
282
283 \begin{latex}
284 \title{<title of the document>}
285 \translatedtitle{<title in the other language>}
286 \end{latex}
287
288 \cmd{title} sets the document title. \cmd{translatedtitle} provides
289 the title in the second language (Portuguese if the document is in
290 English, English if the document is in Portuguese). The translated
291 title is displayed on the \env{translatedabstract} page.
292
293 \subsection{Author(s)}
294
295 \begin{latex}
296 \author{<surname>}{<first name(s)>}
297 \end{latex}
298
299 Up to four authors are supported; call \cmd{author} once for each.
300 The arguments are kept separate so that the CIP block (Catalogação na
301 Publicação) can format the name correctly. Example:
302
303 \begin{latex}
304 \author{Flaumann}{Fritz Gutenberg}
305 \author{Flaumann}{Frida Gutenberg}
306 \end{latex}
307
308 \subsection{Advisor and co-advisor}
309
310 \begin{latex}
311 \advisor[<title>]{<surname>}{<first name(s)>}
312 \coadvisor[<title>]{<surname>}{<first name(s)>}
313 \end{latex}
314
315 The optional \meta{title} argument is printed before the name
316 (e.g., \texttt{Prof.\textasciitilde Dr.}). \cmd{coadvisor} is optional.
317
318 \subsection{Date}
319
320 \begin{latex}
321 \date{<month>}{<year>}
322 \end{latex}
323
324 If omitted, the current month and year are used.
325 For a Portuguese document use the month name in Portuguese
326 (e.g., \texttt{maio}); for an English document, in English
327 (e.g., \texttt{May}).
328
329 \subsection{Location}
330
331 \begin{latex}
332 \location{<city>}{<state abbreviation>}
333 \end{latex}
334
335 Defaults to \texttt{Porto\textasciitilde Alegre} / \texttt{RS}.
336
337 \subsection{Keywords}
338
339 \begin{latex}
340 \keyword{<keyword in the primary language>}
341 \translatedkeyword{<keyword in the secondary language>}
342 \end{latex}
343
344 Call these commands once per keyword (up to ten each). Keywords appear
345 after the abstract text and in the PDF metadata.
346
347 \subsection{Department (optional)}
348
349 \begin{latex}
350 \dept{<department code>}
351 \end{latex}
352
353 Currently recognised codes: \opt{INA} (Departamento de Informática
354 Aplicada) and \opt{INT} (Departamento de Informática Teórica).
355
356 \subsection{Additional commands for specific document types}
357
358 \begin{center}
359 \begin{tabular}{@{}lll@{}}
360 \toprule
361 Document type & Command & Argument \\
362 \midrule
363 \opt{ti} & \cmd{ti}\texttt{[release]\{number\}}
364 & Release (default \texttt{I}) and TI number \\
365 \opt{rp} & \cmd{rp}\texttt{\{number\}}
366 & RP number \\
367 \opt{rp} & \cmd{financ}\texttt{\{agencies\}}
368 & Funding agencies (optional) \\
369 \opt{espec} & \cmd{espec}\texttt{\{specialisation name\}}
370 & Name of the specialisation programme \\
371 \opt{espec} & \cmd{coord}\texttt{[title]\{surname\}\{first name\}}
372 & Course coordinator \\
373 \bottomrule
374 \end{tabular}
375 \end{center}
376
377 %==============================================================================
378 \section{Front Matter}
379 \label{sec:frontmatter}
380 %==============================================================================
381
382 \subsection{Title page and CIP/nominata}
383
384 \begin{latex}
385 \begin{document}
386 \maketitle
387 \end{latex}
388
389 \cmd{maketitle} generates:
390 \begin{enumerate}
391 \item the title page, and
392 \item for Master/Doctoral/Specialisation documents: a CIP
393 (Catalogação na Publicação) block followed by the
394 \emph{nominata} (administrative officers listing);
395 for other document types: only the nominata.
396 \end{enumerate}
397
398 \subsection{Dedication}
399
400 \begin{latex}
401 \begin{dedicatoria}
402 To my family.
403 \end{dedicatoria}
404 \end{latex}
405
406 Produces a page with the dedication text flush-right at the bottom.
407 No section heading is added.
408
409 \subsection{Acknowledgements}
410
411 \begin{latex}
412 \begin{agradecimentos}
413 I thank everyone who contributed\ldots
414 \end{agradecimentos}
415 \end{latex}
416
417 Produces an unnumbered chapter titled \textit{Agradecimentos}.
418
419 %==============================================================================
420 \section{Abstracts}
421 \label{sec:abstracts}
422 %==============================================================================
423
424 \subsection{Primary-language abstract}
425
426 \begin{latex}
427 \begin{abstract}
428 <Abstract text.>
429 \end{abstract}
430 \end{latex}
431
432 Produces an unnumbered chapter titled \textit{Resumo} (or
433 \textit{Abstract} for English documents). The keywords defined with
434 \cmd{keyword} are appended automatically.
435
436 \subsection{Secondary-language abstract}
437
438 \begin{latex}
439 \begin{translatedabstract}
440 <Abstract in the other language.>
441 \end{translatedabstract}
442 \end{latex}
443
444 The environment automatically switches to the other language
445 (English--Brazilian Portuguese). The title of the document in the
446 other language, set with \cmd{translatedtitle}, is displayed above
447 the abstract text. The keywords defined with \cmd{translatedkeyword}
448 are appended automatically.
449
450 \bigskip
451 \noindent\textbf{Deprecated:} the \env{englishabstract} environment
452 from earlier versions is still accepted for backwards compatibility
453 but produces a warning. Replace it with \env{translatedabstract}.
454
455 %==============================================================================
456 \section{Lists}
457 \label{sec:lists}
458 %==============================================================================
459
460 The standard list commands work as usual:
461
462 \begin{latex}
463 \tableofcontents
464 \listoffigures
465 \listoftables
466 \end{latex}
467
468 \subsection{List of abbreviations and acronyms}
469
470 \begin{latex}
471 \begin{listofabbrv}{<widest-label>}
472 \item[ABNT] Associação Brasileira de Normas Técnicas
473 \item[INF] Instituto de Informática
474 \item[UFRGS] Universidade Federal do Rio Grande do Sul
475 \end{listofabbrv}
476 \end{latex}
477
478 The mandatory argument \meta{widest-label} (e.g., \texttt{UFRGS}) is used
479 to compute the column width so that all abbreviations align.
480
481 \subsection{List of symbols}
482
483 \begin{latex}
484 \begin{listofsymbols}{<widest-symbol>}
485 \item[$\alpha$] Alpha coefficient
486 \item[$\beta$] Beta coefficient
487 \end{listofsymbols}
488 \end{latex}
489
490 Same structure as \env{listofabbrv}.
491
492 %==============================================================================
493 \section{Main Text}
494 \label{sec:maintext}
495 %==============================================================================
496
497 \subsection{Sectioning}
498
499 The class provides all standard \cls{report} sectioning commands:
500 \cmd{chapter}, \cmd{section}, \cmd{subsection}, \cmd{subsubsection},
501 and \cmd{paragraph}. Section depth is set to~5 (\cmd{secnumdepth}).
502
503 Chapter headings are typeset in bold, 12\,pt, uppercase, flush-left.
504 Sections and subsections are bold; subsubsections are italic.
505
506 Chapters and sections are recorded in the table of contents with
507 uppercase names for chapters.
508
509 \subsection{Figures and tables}
510
511 Standard \env{figure} and \env{table} float environments are used.
512 Captions are formatted with an em-dash separator, centred,
513 in 10\,pt type.
514
515 \begin{latex}
516 \begin{figure}[htbp]
517 \centering
518 \includegraphics[width=0.7\textwidth]{filename}
519 \caption{Caption text.}
520 \label{fig:label}
521 \end{figure}
522 \end{latex}
523
524 The \cmd{legend} command produces an unnumbered caption:
525
526 \begin{latex}
527 \legend{Source: <reference>}
528 \end{latex}
529
530 \subsection{Long quotations}
531
532 The \env{quote} environment is redefined to comply with ABNT formatting:
533 4\,cm left indentation, 10\,pt font, single spacing.
534
535 \begin{latex}
536 \begin{quote}
537 Long quotation text of more than three lines goes here.
538 \end{quote}
539 \end{latex}
540
541 \subsection{Lists}
542
543 The \env{enumerate}, \env{itemize}, and \env{description} environments
544 are redefined with reduced vertical spacing to match the ABNT style.
545
546 %==============================================================================
547 \section{Back Matter}
548 \label{sec:backmatter}
549 %==============================================================================
550
551 \subsection{Appendices}
552
553 \begin{latex}
554 \appendix
555 \chapter{First Appendix}
556 ...
557 \end{latex}
558
559 \cmd{appendix} resets the chapter counter and switches to alphabetic
560 numbering. The optional argument overrides the heading label
561 (default: \textit{Apêndice} / \textit{Appendix}).
562
563 \subsection{Annexes}
564
565 \begin{latex}
566 \annex
567 \chapter{First Annex}
568 ...
569 \end{latex}
570
571 \cmd{annex} is similar to \cmd{appendix} but uses the heading label
572 \textit{Anexo} / \textit{Annex}. In Brazilian academic convention,
573 appendices contain material produced by the author; annexes contain
574 third-party material reproduced for documentation.
575
576 \subsection{Bibliography}
577
578 The class automatically loads \pkg{abntex2cite} (unless the
579 \opt{noabntcite} option is given). Use one of the ABNT styles:
580
581 \begin{latex}
582 \bibliographystyle{abntex2-alf} % author-year citations
583 %\bibliographystyle{abntex2-num} % numeric citations
584 \bibliography{<bib file(s)>}
585 \end{latex}
586
587 %==============================================================================
588 \section{Special Features}
589 %==============================================================================
590
591 \subsection{Formal environments (\opt{formais} option)}
592 \label{sec:formais}
593
594 Loading \opt{formais} adds a collection of theorem-like environments
595 and two additional lists.
596
597 \subsubsection{Theorem-like environments}
598
599 \begin{center}
600 \begin{tabular}{@{}ll@{}}
601 \toprule
602 Environment & Name \\
603 \midrule
604 \env{theorem} & Theorem / Teorema \\
605 \env{lemma} & Lemma / Lema \\
606 \env{corollary} & Corollary / Corolário \\
607 \env{proposition} & Proposition / Proposição \\
608 \env{conjecture} & Conjecture / Conjectura \\
609 \env{definition} & Definition / Definição \\
610 \env{example} & Example / Exemplo \\
611 \env{exercise} & Exercise / Exercício \\
612 \env{property} & Property / Propriedade \\
613 \env{remark} & Remark / Observação \\
614 \bottomrule
615 \end{tabular}
616 \end{center}
617
618 All environments take an optional name argument. Example:
619
620 \begin{latex}
621 \begin{theorem}[Pythagorean theorem]
622 In a right triangle, $a^2 + b^2 = c^2$.
623 \end{theorem}
624 \begin{proof}
625 See any introductory geometry text.
626 \end{proof}
627 \end{latex}
628
629 \subsubsection{Lists of definitions and theorems}
630
631 \begin{latex}
632 \listofdefinitions
633 \listoftheorems
634 \end{latex}
635
636 These produce numbered lists analogous to \cmd{listoffigures}.
637
638 \subsection{UNIBRAL double-degree (\opt{unibral} option)}
639 \label{sec:unibral}
640
641 The \opt{unibral} option activates support for the UNIBRAL programme
642 (joint double-degree between UFRGS and Technische Universität Berlin).
643
644 \subsubsection{Additional commands}
645
646 \begin{latex}
647 \advisorDE[<title>]{<surname>}{<first name>}
648 \coadvisorDE[<title>]{<surname>}{<first name>}
649 \end{latex}
650
651 These set the German advisor and co-advisor, which appear on the title
652 page alongside the Brazilian advisor(s).
653
654 \subsubsection{Extended summary}
655
656 \begin{latex}
657 \extendedsummary
658 <Portuguese extended summary for UFRGS.>
659 \end{latex}
660
661 Produces the \emph{Resumo Estendido} chapter required by UFRGS for
662 double-degree theses.
663
664 %==============================================================================
665 \section{Nominata Customisation}
666 \label{sec:nominata}
667 %==============================================================================
668
669 The nominata is the list of UFRGS administrative officers printed on
670 the CIP/nominata page. The class ships with defaults reflecting the
671 current officeholders; however, these data change every few years.
672
673 \subsection{Overriding individual fields}
674
675 Any nominata field can be updated in the preamble with
676 \cmd{renewcommand}:
677
678 \begin{latex}
679 \renewcommand{\nominataReit}{Prof\textsuperscript{a}.~Ana Silva}
680 \renewcommand{\nominataReitname}{Reitora}
681 \end{latex}
682
683 The available fields are listed in the table below.
684
685 \begin{center}
686 \footnotesize
687 \begin{tabular}{@{}ll@{}}
688 \toprule
689 Command & Content \\
690 \midrule
691 \cmd{nominataReit} & Rector \\
692 \cmd{nominataReitname} & Rector's title \\
693 \cmd{nominataPRCA} & Vice-rector \\
694 \cmd{nominataPRCAname} & Vice-rector's title \\
695 \cmd{nominataPRAPG} & Pro-rector for Graduate Studies \\
696 \cmd{nominataPRAPGname} & Pro-rector's title \\
697 \cmd{nominataPRAG} & Pro-rector for Undergraduate Studies \\
698 \cmd{nominataPRAGname} & Pro-rector's title \\
699 \cmd{nominataDir} & Director of INF \\
700 \cmd{nominataDirname} & Director's title \\
701 \cmd{nominataCoordPPGC} & PPGC coordinator \\
702 \cmd{nominataCoordnamePPGC} & PPGC coordinator title \\
703 \cmd{nominataCoordPGMICRO} & PGMICRO coordinator \\
704 \cmd{nominataCoordnamePGMICRO} & PGMICRO coordinator title \\
705 \cmd{nominataBibchefe} & Head librarian \\
706 \cmd{nominataBibchefename} & Head librarian's title \\
707 \cmd{nominataChefeINA} & Head of INA department \\
708 \cmd{nominataChefeINAname} & INA department head title \\
709 \cmd{nominataChefeINT} & Head of INT department \\
710 \cmd{nominataChefeINTname} & INT department head title \\
711 \cmd{nominataCoordCIC} & CIC course coordinator \\
712 \cmd{nominataCoordCICname} & CIC coordinator title \\
713 \cmd{nominataCoordECP} & ECP course coordinator \\
714 \cmd{nominataCoordECPname} & ECP coordinator title \\
715 \bottomrule
716 \end{tabular}
717 \end{center}
718
719 \subsection{External file (\opt{nominatalocal} option)}
720
721 If the \opt{nominatalocal} class option is given, all nominata data
722 are read from the file \file{nominatalocal.def} (searched via the
723 normal \TeX{} input path). This file should contain
724 \cmd{providecommand} or \cmd{renewcommand} definitions for the fields
725 listed above. This mechanism is convenient when the same nominata
726 data are shared by many documents in an institutional repository.
727
728 %==============================================================================
729 \section{A Complete Minimal Example}
730 \label{sec:example}
731 %==============================================================================
732
733 The following skeleton compiles a Master's dissertation for PPGC:
734
735 \begin{latex}
736 \documentclass[ppgc,diss]{infufrgs}
737
738 \usepackage[utf8]{inputenc} % for pdfLaTeX; not needed for XeLaTeX/LuaLaTeX
739 \usepackage{graphicx}
740
741 \title{Title of the Dissertation}
742 \translatedtitle{Título da Dissertação}
743 \author{Surname}{First Name}
744 \advisor[Prof.~Dr.]{AdvisorSurname}{AdvisorFirst}
745 % \coadvisor[Prof.~Dr.]{CoAdvisorSurname}{CoAdvisorFirst}
746 \date{March}{2026}
747
748 \keyword{Keyword one}
749 \keyword{Keyword two}
750 \translatedkeyword{Primeira palavra-chave}
751 \translatedkeyword{Segunda palavra-chave}
752
753 \begin{document}
754
755 \maketitle
756
757 \begin{dedicatoria}
758 To my family.
759 \end{dedicatoria}
760
761 \begin{agradecimentos}
762 I thank everyone\ldots
763 \end{agradecimentos}
764
765 \begin{abstract}
766 Abstract text in English.
767 \end{abstract}
768
769 \begin{translatedabstract}
770 Texto do resumo em português.
771 \end{translatedabstract}
772
773 \tableofcontents
774 \listoffigures
775 \listoftables
776
777 \begin{listofabbrv}{UFRGS}
778 \item[ABNT] Associação Brasileira de Normas Técnicas
779 \item[UFRGS] Universidade Federal do Rio Grande do Sul
780 \end{listofabbrv}
781
782 \chapter{Introduction}
783 ...
784
785 \appendix
786 \chapter{Supporting Material}
787 ...
788
789 \bibliographystyle{abntex2-alf}
790 \bibliography{references}
791
792 \end{document}
793 \end{latex}
794
795 A fully compiled example is provided in the file \file{example.tex}
796 (together with \file{example.bib}).
797
798 %==============================================================================
799 \section{Compilation}
800 \label{sec:compilation}
801 %==============================================================================
802
803 \cls{infufrgs} works with pdf\LaTeX, Xe\LaTeX, and Lua\LaTeX.
804
805 For pdf\LaTeX{}, declare the input encoding in the preamble:
806 \begin{latex}
807 \usepackage[utf8]{inputenc}
808 \end{latex}
809 This is not required for Xe\LaTeX{} or Lua\LaTeX, which handle UTF-8
810 natively.
811
812 The typical compilation sequence for a document with a bibliography is:
813
814 \begin{latex}
815 pdflatex <document>
816 bibtex <document>
817 pdflatex <document>
818 pdflatex <document>
819 \end{latex}
820
821 Or, using \texttt{latexmk}:
822
823 \begin{latex}
824 latexmk -pdf <document>
825 \end{latex}
826
827 %==============================================================================
828 \section{Package Files}
829 \label{sec:files}
830 %==============================================================================
831
832 The distribution contains the following files:
833
834 \begin{center}
835 \begin{tabular}{@{}ll@{}}
836 \toprule
837 File & Purpose \\
838 \midrule
839 \file{infufrgs.cls} & The document class (single self-contained file) \\
840 \file{infufrgs-doc.tex} & This user manual (source) \\
841 \file{infufrgs-example.tex} & Complete compilable usage example \\
842 \file{infufrgs-example.bib} & Bibliography database for the example \\
843 \file{README.md} & Short introduction and quick-start guide \\
844 \bottomrule
845 \end{tabular}
846 \end{center}
847
848 %==============================================================================
849 \section{Licence}
850 \label{sec:licence}
851 %==============================================================================
852
853 This work may be distributed and/or modified under the conditions of the
854 \textbf{LaTeX Project Public License} (LPPL), either version~1.3c of
855 this licence or (at your option) any later version. The latest version
856 of this licence is at \url{https://www.latex-project.org/lppl.txt} and
857 version~1.3c or later is part of all distributions of \LaTeX{} version
858 2005/12/01 or later.
859
860 This work has the LPPL maintenance status \textit{maintained}.
861
862 \medskip
863 \noindent
864 Copyright \textcopyright\ 2001-2026 UFRGS TeX Users Group\\
865 Institute of Informatics — UFRGS, Porto Alegre, Brazil\\
866 \url{https://www.inf.ufrgs.br/utug}
867
868 %==============================================================================
869 \end{document}
870 %==============================================================================