Directory macros/latex/contrib/gmap-ufrgs
gmap-ufrgs – LaTeX class for technical reports of GMAp/UFRGS
Name: gmap-ufrgs Version: v0.1 (2026/11/20) Maintainer: Boris N. Rojo Tanzi Repository: https://github.com/GMAp-UFRGS/gmap-ufrgs Bug tracker: https://github.com/GMAp-UFRGS/gmap-ufrgs/issues License: LaTeX Project Public License (LPPL), version 1.3c or later (https://ctan.org/license/lppl1.3c)
Summary
gmap-ufrgs is a LaTeX class built on top of abntex2 for the technical reports, technical notes and letters of the Grupo de Mecanica Aplicada (GMAp), Universidade Federal do Rio Grande do Sul (UFRGS), following the Brazilian ABNT standards (NBR 10719, 14724, 6023, 10520, 6024, 6027, 6028). Portuguese is the default language; English is available with the english option. Project-specific data (team, process numbers, footer text, signatures) are given by commands in the document, never hard-coded in the class.
Files
gmap-ufrgs.clsthe classgmap-math.styoptional: vector/matrix/derivative shortcutsgmap-codigo.styoptional: code and command-line environmentsgmap-figuras.styoptional (needs the class): figures with subfigures split across pages, figure series from a list of values, key=value mapsdoc/gmap-ufrgs-doc.tex/.pdfmanual (Portuguese, with an English summary)example/exemplo-minimo.texminimal compilable exampleexample/exemplo-classico.texclassicoprofile: automatic cover, table of contents, lists of acronyms/symbols and glossaryexample/latexmkrcletslatexmkfind the class in the parent folder
Only in the Git repository (not distributed on CTAN):
fig/logo-example-01.pdf,fig/logo-example-02.pdfUFRGS and GMAp logos, used by default on the cover and header (see "Logos")install.ps1,install.shinstall the class and the logos into TEXMFHOMEtexstudio/*.cwlTeXstudio completion files, installed by the scripts abovectan/scripts that build the CTAN archive and the Overleaf templateextras/project-specific packages, not part of the bundle
Class options
relatorio (default), notatecnica, carta, english, confidencial, preliminar, sans, and the layout profile abnt (default) or classico. Front matter: pretextualautomatico (default with classico) prints the cover, control sheet (when needed), table of contents and lists at \begin{document}; pretextualmanual turns that off; semsiglas, semsimbolos and semglossario drop the corresponding list.
classico reproduces the former GMAp layout: Latin Modern Sans throughout, 2 cm side margins, single spacing, numeric citations [1], captions below figures, revision on the cover, dd/mm/yyyy dates and the project name in the footer. No abstract is required. (petrobras, its former internal name, is still accepted as an alias.)
Figures
\figura[keys]{file}{caption} inserts an image at scale 1 (shrunk with a warning only if it does not fit), with the automatic label fig:<file>; \figura* places it exactly there. Images are searched in fig/ and figuras/. Keys: fonte, rotulo, pos, tamanho, escala, largura, altura and any \includegraphics key. tamanho=0.6, or just \figura[0.6]{file}{caption}, makes the image 60% of the text width; \tamanhofiguras{0.8} sets that default for every figure without its own size.
Cross-references
\reffig, \reftab, \refeq, \refcap, \refsec, \refap (appendix) and \refanexo print the name with the number as one link: \reffig{fig:viga} gives "Figura 1" and \refeq{eq:a} gives "Equação (1)". A comma-separated list switches to the plural, \reffig{fig:a,fig:b,fig:c} gives "Figuras 1, 2 e 3". The starred form has no link. Names follow the document language ("Figure 1" with the english option).
Signatures
\blocoassinatura[keys]{Name \\ Role \\ Group \\ Institution} prints a right-aligned sans-serif signature block anywhere in the text. For several people side by side, put the blocks inside \begin{assinaturas} ... \end{assinaturas}. Keys: imagem (signature image), altura, linha (line for a handwritten signature), posicao (direita/centro/esquerda), espaco, nofim (defer the block to the end of the document) and novapagina (deferred blocks on a page of their own); \imprimirassinaturas prints the deferred blocks on the spot and \configurarassinatura{keys} sets document-wide defaults.
Acronyms, symbols and glossary
Built on glossaries-extra, with no external tool: \sigla{label}{ABBR}{Longform}, simbolo{label}{symbol}{description} and termo{label}{term}{definition}define the entries (the package's own commands also work), \gls{label} uses them, and \imprimirsiglas, \imprimirsimbolos and \imprimirglossario print the lists (only entries actually used; an empty list prints nothing).
Requirements
LaTeX 2022-06-01 or newer (TeX Live 2022+ or an up-to-date MiKTeX) with abntex2, etoolbox, iftex, graphicx, xcolor, microtype, indentfirst, amsmath, amssymb, siunitx, booktabs, tabularx, multirow, longtable, float, xspace, substr, todonotes, enumitem and glossaries-extra (plus fontenc, inputenc and lmodern with pdfLaTeX). The optional packages also need bm (gmap-math) and fancyvrb and listings (gmap-codigo). Recommended engine: pdfLaTeX + BibTeX; LuaLaTeX and XeLaTeX also work.
Installation
From a TeX distribution: install the package gmap-ufrgs with tlmgr or the MiKTeX console. Manually: copy the .cls and .sty files to TEXMFHOME/tex/latex/gmap-ufrgs/ (and refresh the file-name database), or put them in the folder of your main .tex file. GMAp/UFRGS documents also need the two logo files (see "Logos").
From the Git repository: run install.ps1 (Windows) or install.sh (Linux/macOS); they install the class together with the logos and, if TeXstudio is configured, its completion files (restart TeXstudio afterwards).
On Overleaf: start from the GMAp template (class, packages and logos already in the project), or upload the .cls, .sty and logo files to the root of the project.
Quick start
\documentclass{gmap-ufrgs}
\projeto{...} \numerodoc{...} \titulo{...} \local{Porto Alegre} \data{...}
\addautor{Name}{Title}{Registration}
\begin{document}
\imprimircapa
\imprimirfolhadecontrole
...
\end{document}
Logos
logo-example-01.pdf and logo-example-02.pdf are not part of the CTAN/TeX Live package. They are available in the fig/ folder of the Git repository (https://github.com/GMAp-UFRGS/gmap-ufrgs), are installed by install.ps1/install.sh and are included in the GMAp Overleaf template.
The class looks for them in the folder of the document, in fig/, in figuras/ and in the TeX installation. If a file is missing, it issues a warning and leaves the space blank. Users outside UFRGS should replace them with \logoesquerda{file}, \logodireita{file} and \logotopoesquerda{file}, or disable them (and the warning) with an empty argument, e.g. \logoesquerda{}.
Bibliography tip
To print compound surnames in upper case in citations and references, glue the words with an empty group in the .bib file: author = {Da{ }Silva, Ana} gives (DA SILVA, 2020) instead of (SILVA, 2020).
License
Copyright (C) 2026 Boris N. Rojo Tanzi and GMAp/UFRGS. All the files of this work are distributed under the LaTeX Project Public License, version 1.3c or later (https://www.latex-project.org/lppl.txt). This work has the LPPL maintenance status maintained.
Download the contents of this package in one zip archive (363.8k).
GMAp/UFRGS – LaTeX class for technical reports of GMAp/UFRGS, compliant with ABNT standards
This class extends abntex2 to
typeset the technical reports, technical notes and letters
of the Applied Mechanics Group (GMAp) at the Universidade
Federal do Rio Grande do Sul (UFRGS), Brazil, following the
Brazilian ABNT standards (NBR 10719, 14724, 6023, 10520, 6024,
6027, 6028). It provides the cover page, a control sheet with
author/checker/approver signatures, an optional confidentiality
notice, a preliminary
mark, a one-line figure command,
signature blocks, and automatic front matter with lists of
acronyms, symbols and a glossary (glossaries-extra, no
external tool).
Portuguese is the default language, and English is available
as an option.
Project data (team, process numbers, footer text) are set
by commands in the document and never hard-coded in the class.
Optional packages provide math shortcuts (gmap-math) and
code environments (gmap-codigo) and figures with subfigures
split across pages (gmap-figuras).
| Package | GMAp/UFRGS |
| Bug tracker | |
| Repository | |
| Version | 0.1 2026-11-20 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2026 Boris N. Rojo Tanzi |
| Maintainer | Boris N. Rojo Tanzi |
| Contained in | TeX Live as gmap-ufrgs MiKTeX as gmap-ufrgs |
| Topics | Portuguese from Brazil Dissertation Standard conform Class |