HowToCriarNovoAmbienteListing

Open Beginner friendly
#277 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
latex, tex
Domain
documentation

Research direction

The issue points to a wiki page with outdated example code for creating a new listing environment. Start by reading the wiki page at https://github.com/abntex/abntex2/wiki/HowToCriarNovoAmbienteListing and comparing it to the current source code in the repository. Look for recent changes in how listings are defined, possibly in .cls or .sty files. Test the corrected example in a minimal LaTeX document to ensure it works with the latest abntex2 class.

Written by the indexing model from the issue text.

Description

Vindo da conversa em https://groups.google.com/g/abntex2/c/--bKGRUEy4U, cheguei em https://github.com/abntex/abntex2/wiki/HowToCriarNovoAmbienteListing. Contudo, o código de exemplo, quando editado, não funciona. Suspeito que a página da wiki esteja desatualizada.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Listas personaliadas segundo ABNT NBR 14724:2024:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Novo list of (listings) para FLUXOGRAMAS

\newcommand{\fluxogramaname}{Fluxograma}
\newcommand{\listoffluxogramasname}{Lista de fluxogramas}

\newfloat[chapter]{fluxograma}{loq}{\fluxogramaname}
\newlistof{listoffluxogramas}{loq}{\listoffluxogramasname}
\newlistentry{fluxograma}{loq}{0}

% configurações para atender às regras da ABNT
\setfloatadjustment{fluxograma}{\centering}
\counterwithout{fluxograma}{chapter}
\renewcommand{\cftfluxogramaname}{\fluxogramaname\space} 
\renewcommand*{\cftfluxogramaaftersnum}{\hfill--\hfill}

% Configuração de posicionamento padrão:
\setfloatlocations{fluxograma}{hbtp}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Dominant language
TeX
Stars
1.1k
Forks
223
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abntex/abntex2

All issues in abntex/abntex2

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.