texlive[73303] Master: tabularray-abnt (4jan25)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 4 21:48:46 CET 2025


Revision: 73303
          https://tug.org/svn/texlive?view=revision&revision=73303
Author:   karl
Date:     2025-01-04 21:48:46 +0100 (Sat, 04 Jan 2025)
Log Message:
-----------
tabularray-abnt (4jan25)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-langportuguese.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/tabularray-abnt/
    trunk/Master/texmf-dist/doc/latex/tabularray-abnt/README.md
    trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt
    trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf
    trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.tex
    trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt.bib
    trunk/Master/texmf-dist/tex/latex/tabularray-abnt/
    trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty
    trunk/Master/tlpkg/tlpsrc/tabularray-abnt.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tabularray-abnt/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/README.md	2025-01-04 20:48:46 UTC (rev 73303)
@@ -0,0 +1,12 @@
+This is the abnt brazilian standard style theme for tabularray.
+It provides abnt (for table with numerical data) and quadro (for table with text information) theme.
+
+An additional environment abnttblr, tallabnttblr, and longabnttblr are wrapper to tblr, talltblr, and longtblr that apply abnt theme automatically and permit to set table font using \SetAbntTblrFont{} provided here.
+
+See the brazilian portugese manual tabularray-abnt-pt-br for detaiil.
+
+License:
+LaTeX Project Public License versão 1.3c
+https://www.latex-project.org/lppl/
+
+


Property changes on: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt	2025-01-04 20:48:46 UTC (rev 73303)
@@ -0,0 +1,2 @@
+2025-01-03
+- first public release


Property changes on: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf	2025-01-04 20:46:46 UTC (rev 73302)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf	2025-01-04 20:48:46 UTC (rev 73303)

Property changes on: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.tex	2025-01-04 20:48:46 UTC (rev 73303)
@@ -0,0 +1,358 @@
+% -*- coding: utf-8 -*-
+% !TEX program = lualatex
+
+% tabularray-abnt.sty
+%----------------------------------------------------------------------
+% copyright (C) January, 2025 by Sadao Massago
+% autor:
+%    Sadao Massago
+%    e-mail: sadao at ufscar.br
+%
+% Licença: LaTeX Project Public License versão 1.3c or (se for a sua escolha) qualquer versão posterior.
+% https://www.latex-project.org/lppl/
+%----------------------------------------------------------------------
+
+\documentclass[12pt,a4paper,oneside]{book}
+
+\usepackage{iftex} % Para detectar o motor de TeX utilizado
+% Fontes, de acordo com o motor do TeX
+
+\ifPDFTeX % PDFLaTeX
+  \usepackage[T1]{fontenc} % codificação da fonte em 8-bits
+  \usepackage{mlmodern} % fontes MLModern que é mais escura que Computer Modern tradicional (espessura de letra de Book)
+  %\usepackage{lmodern} % fontes Latin Modern: espessura tradicional do Computer Modern
+  \usepackage[utf8]{inputenc} % acentuação direta em UTF-8
+\else % XeLaTeX/LuaLaTeX
+  % \usepackage{fontspec} % pacote para configurar fontes
+  % \defaultfontfeatures{Ligatures=TeX}
+  % seleção das fontes desejadas pode ser colocados aqui
+  \usepackage{fontsetup} % New Cmputer Modern com espessura da letra de Book
+  % \usepackage[olddefault]{fontsetup} % espessura tradicional do Computer Modern
+\fi
+
+% pacotes matemáticas de acordo com o motor TeX
+\ifPDFTeX % PDFLaTeX
+  \usepackage{amsmath,amssymb} % para matematica
+\else % XeLaTeX/LuaLaTeX
+  % para matemática: MikTeX pode precisar instlaçao manual de lm-math
+  \usepackage{unicode-math}
+  \ifLuaTeX
+    \usepackage{lualatex-math}
+  \fi
+\fi
+
+\usepackage[brazil]{babel}
+
+% Para linhas horizontais com espaçamento melhorado: \toprule, \midrule, \bottomrule, \cmidrule
+\usepackage{booktabs}
+\usepackage{siunitx} % medidas internacionais e numeros
+% para tabela longa que quebra entre páginas
+\usepackage{tabularray} % tabelas configuráveis
+\UseTblrLibrary{booktabs,siunitx} % para compatibilidade com booktabs e siunitx
+% Configuração do tabularray para abnt
+\usepackage{tabularray-abnt}
+
+%% Para cores
+\usepackage[table]{xcolor} % pacote extendido de color (ativando opção de carregar colortbl paa colorir tabelas, se desejar)
+
+% Para inserir código de LaTeX;
+\usepackage{codehigh} % https://ctan.org/pkg/codehigh
+\colorlet{highbackcolor}{yellow!50}
+\CodeHigh{language=latex/table,style/main=highbackcolor,style/code=highbackcolor}
+% \CodeHigh{language=latex/table,style/main=yellow9,style/code=red9,style/demo=azure9}
+
+\usepackage[
+  backend=biber,
+  language=auto,
+  % bibencoding=utf8,
+  style=abnt %authoryear,
+]{biblatex}
+\addbibresource{tabularray-abnt.bib} % arquivo bib
+
+\sloppy % preferência a underfull (muito espaço entre palavras)
+
+\usepackage{hyperref} % Para link automatico
+
+%\SetAbntTblrFont{\footnotesize}
+
+\title{Tabularray-abnt: tema abnt para tabularray}
+\author{Sadao Massago}
+\date{03/01/2025}
+
+%%%%%%%%%%%%%%%%%%%%%
+% INÍCIO DO DOCUMENTO
+%%%%%%%%%%%%%%%%%%%%%
+\pagestyle{empty} % inicia sem paginação
+\begin{document}
+
+\maketitle
+
+%%%%%%%%%%%%%%%%%%%%%
+% SUMARIO E SIMILARES
+%%%%%%%%%%%%%%%%%%%%%
+
+% LISTA DE QUADROS
+%\clearpage\phantomsection\pdfbookmark[chapter]{\listquadroname}{lot}
+%\listadequadros % Na classe memoir (ou ABNTeX2), use a versão * para não constar no sumário
+
+
+% LISTA DE TABELAS
+%\clearpage\phantomsection\pdfbookmark[chapter]{\listtablename}{lot}
+%\listoftables %  % Na classe memoir (ou ABNTeX2), use a versão * para não constar no sumário
+
+% SUMÁRIO
+\clearpage\phantomsection\pdfbookmark{\contentsname}{toc}
+\tableofcontents % No ABNTeX2 ou memoir, * para não constar ele mesmo
+% para ABNTexto
+
+%%%%%%%%%%%%%%%%%%%%
+% CONTEÚDO PRINCIPAL
+%%%%%%%%%%%%%%%%%%%%
+\chapter{Apresentação}
+ O arquivo de estilo \texttt{tabularray.sty} implementa o tema \texttt{abnt} e \texttt{quadro} para \texttt{tblr}, \texttt{talltblr} e \texttt{longtblr} para que eles produzam tabelas e quadros de acordo com a norma \texttt{ABNT}.
+
+O ambiente \texttt{tblr} (com opção \texttt{tall}) e \texttt{talltblr} podem ser usados para produzir tabelas dentro do ambiente de tabelas flutuante e   
+O ambiente \texttt{tblr} (com opção \texttt{long}) e \texttt{longtblr} produzem tabelas e quadros longos. Ao escolher tema \texttt{abnt} ou \texttt{quadro} para estes ambientes, poderá configurar para produzir tabela ou quadro compatível com a norma ABNT, com poucos ajustes.
+
+Para a comodidade, foram implementados ambientes \texttt{abnttblr}, \texttt{tallabnttblr} e \texttt{longabnttblr} que aplicam o tema \texttt{abnt} por padrão, além de permitir configurar a fonte usada pelo comando \verb+\SetAbntTblrFont+. Por exemplo, \verb+\SetAbntTblrFont{\footnotesize}+ configurará para que as fontes usadas enstas tabelas e quadros sejam no tamanho \verb+\footnotsize+.
+
+Note que, para classe exceto o \texttt{abntexto}, será providenciado o ambiente \texttt{quadro} que funciona similarmente para tabelas, e para a classe \texttt{abntexto}, será criada a entrada de legenda ``quadro'' em vez do ambiente que funcionará devidamente como quadro.
+
+\chapter{Alguns Comentários e Exemplos}
+Note que a norma \texttt{ABNT} adota o padrão \texttt{IBGE} para tabelas.
+Além disso, separa em duas categorias.
+O primeiro delas é quando é uma tabela para finalidade de apresentar dados numéricos, denominado de \emph{tabela}.
+O segundo delas é quando o conteúdo é texto ou similar na qual não tem pretensão de apresentar dados numéricos, denominados de \emph{quadro}.
+
+As tabelas, não podem ter fechamento nos laterais (esquerda e direita), além de não usar linhas horizontais no corpo da tabela.
+Tabelas devem ter uma linha de títulos das colunas (que descreve o que são cada colunas), separado do corpo de tabelas pela linha horizontal. A parte de cima e de baixo deve apresentar linha horizontal para fechamento.
+Por outro lado, quadro deve ser fechado nos latarias, parte de cima e de baixo e ter grade de divisão.
+
+O \texttt{ABNTeX2} e \texttt{ABNTexto} implementam as tabelas curtas no padrão \texttt{ABNT}, mas ainda não tem suporte as tabelas longas (2004) que ocupam mais de uma página. O objetivo desta estilo é dar suporte a tabela e quadros curtos e longos no padrão \texttt{ABNT} através do ambientes fornecidos pelo \texttt{tabularray}.
+
+Para diagramar uma tabela curta, basta usar o ambiente \texttt{abnttblr} com opção \texttt{tall} ou o ambiente \texttt{tallabnttblr} de forma similar a \texttt{tblr} com opção \texttt{tall} ou \texttt{talltblr}. 
+No ABNT, tabelas e figuras devem ser centralizados no texto.
+
+\begin{codehigh}[boxsep=4mm]
+A Tabela~\ref{abnttblr:curta} é tabela que auto posiciona.
+\begin{table}[hbp!]
+\center
+\begin{tallabnttblr}
+[
+  caption={Tabela curta},
+  label={abnttblr:curta},
+  remark{Fonte} = {Elaboração do autor.},  
+  remark{Nota} = {Testando o estilo ABNT. 
+    A nota é opcional no ABNT},
+]
+{
+  rowspec={lr}, % l=left, r=right
+  row{1}={\bfseries}, % primeira linha
+  row{Z}={\bfseries}, % última linha
+}
+\toprule
+   produto & preço \\
+\midrule
+   cenouras  (500g)          & R\$0,50  \\
+   cogumelos (vidro de 500g) & R\$5,00  \\
+   batata    (1Kg)           & R\$1,20  \\
+\midrule
+   total & R\$6,70 \\
+\bottomrule   
+\end{tallabnttblr}
+\end{table}
+\end{codehigh}
+
+Lembrando que toda tabela deve ser referenciada no texto e deve conter a fonte (no exemplo, criado pelo \texttt{remark}). O parâmetro \texttt{note} não vai funcionar como \texttt{ABNT}.
+
+\begin{codehigh}[boxsep=4mm]
+\begin{table}[hbp!]
+\begin{talltblr}
+[
+  theme=abnt,
+  caption={Tabela curta simples},
+  label={tab:talltblr:simples},
+  remark{Fonte}={Elaboração do autor},
+]
+{
+  colspec = {XX}, % largura automatica das colunas
+}
+\toprule
+  nome & valor \\
+\midrule
+  Nome 1 & 1 \\ 
+  Nome 2 & 2 \\ 
+  Nome 3 & 3 \\
+\bottomrule
+\end{talltblr}
+\end{table}
+\end{codehigh}
+
+A Tabela~\ref{tab:longa} é uma tabela que ocupa várias páginas.
+Tal tabela pode ser criado pelo ambiente \texttt{longabnttblr}. Devido ao código implementado no \texttt{tabularray-abnt.sty}, precisa de duas compilações para que o cabeçalho seja ajustada devidamente.
+
+A Tabela~\ref{tab:longa} usa o pacote \texttt{siunitx} para converter os  decimais em virgula, além de lidar com o seu alinhamento no decimal. Nesta tabela, foi usado a coloração de linhas em zebra (branco e cinza alternada) para facilitar o acompanhamento das linhas.
+
+Configuração foi como segue.
+
+\begin{codehigh}[boxsep=4mm]
+\sisetup{
+  locale=DE, % Alemão: virgula como decimal
+  table-format=4.2, % 4 digitos, 2 digitos decimais
+  table-number-alignment=center % alinhar no decimal
+}
+\begin{longabnttblr}
+[
+  caption = {Tabela longa}, % titulo
+  label={tab:longa}, % rotulo para referências cruzadas
+  remark{Fonte}={Elaboração do autor},  
+]
+{ 
+  colspec = {XX[r,si]}, % X é largura automatica. Segundo X tem como parâmetro opcional r (direita) e si (número usando pacote siunitx)
+  rowhead = 1, % primeira linha será repatida em todas páginas
+  row{1} = {font=\bfseries}, % linha de título
+  row{even} = {gray!15}, % linhas par em cinza
+  % row{Z} = {font=\bfseries,white}, % última linha  
+}
+...
+\end{longabnttblr}
+\end{codehigh}
+
+% alinhamento no decimal:
+%https://tex.stackexchange.com/questions/303395/align-numbers-based-on-their-decimal-point
+% configurando o siunitx
+\sisetup{
+  locale=DE, % Alemão: virgula como decimal
+  table-format=4.2, % 4 digitos, 2 digitos decimais
+  table-number-alignment=center % alinhar no decimal
+}  
+
+\begin{longabnttblr}
+[
+  caption = {Tabela longa}, % titulo
+  label={tab:longa}, % rotulo para referências cruzadas
+  remark{Fonte}={Elaboração do autor},  
+]
+{ 
+  colspec = {XX[r,si]}, % X é largura automatica. Segundo X tem como parâmetro opcional r (direita) e si (número usando pacote siunitx)
+  rowhead = 1, % primeira linha será repatida em todas páginas
+  row{1} = {font=\bfseries}, % linha de título
+  row{even} = {gray!15}, % linhas par em cinza
+  % row{Z} = {font=\bfseries,white}, % última linha  
+}
+\toprule
+ texto & \text{número} \\ \midrule
+ linha 1 & 1.1 \\ % \midrule
+ linha 2 & 2.2 \\ % \midrule
+ linha 3 & 3.3 \\ % \midrule
+ linha 4 & 4.4 \\ % \midrule
+ linha 5 & 5.5 \\ % \midrule
+ linha 6 & 6.6 \\ % \midrule
+ linha 7 & 7.7 \\ % \midrule
+ linha 8 & 8.8 \\ % \midrule
+ linha 9 & 9.9 \\ % \midrule
+ linha 10 & 10.10 \\ % \midrule
+ %\linebreak % para teste
+ linha 11 & 11.11 \\
+ linha 12 & 12.12 \\
+ linha 13 & 13.13 \\
+ linha 14 & 14.14 \\
+ linha 15 & 15.15 \\    
+ \bottomrule
+ \end{longabnttblr}
+
+Quadro flutuante poderá ser produzido pelo ambiente \texttt{quadro}, exceto para classe \texttt{abntexto} (na qual deverá usar \texttt{table}, caso queira que seja flutuante), como no Quadro~\ref{quadro:flutuante}. 
+Para produzir o quadro, use o tema \texttt{quadro} fornecido pelo \texttt{tabularray-abnt.sty}, como em
+
+\begin{codehigh}[boxsep=4mm]
+\begin{quadro}[hbp!]
+\begin{tallabnttblr}
+[
+  theme=quadro,
+  caption={Quadro flutuante simples},
+  label={quadro:flutuante},
+  remark{Fonte}={Elaboração do autor},  
+]
+{
+  colspec = {XX},
+  vlines,hlines, % grades, necessários para quadro.
+}
+...
+\end{tallabnttblr}
+\end{quadro}
+\end{codehigh}
+
+Note o uso de grade, o que é necesário para quadros.
+
+\begin{quadro}[hbp!]
+\begin{tallabnttblr}
+[
+  theme=quadro,
+  caption={Quadro flutuante simples},
+  label={quadro:flutuante},
+  remark{Fonte}={Elaboração do autor},  
+]
+{
+  colspec = {XX},
+  vlines,hlines, % grades, necessários para quadro.
+}
+Nome 1 & Sobrenome 1 \\
+Nome 2 & Sobrenome 2 \\
+\end{tallabnttblr}
+\end{quadro}
+
+O quadro longo pode ser produzido pelo tema \texttt{quadro} fornecido pelo \texttt{tabularray-abnt.sty}, sobre \texttt{longanbttblr} como no Exemplo~\ref{quadro:longo}.
+
+\begin{longabnttblr}
+[
+  theme={quadro},
+  caption={Um quadro longo simples},
+  label={quadro:longo},
+  remark{Fonte}={Elaboração do autor},  
+  remark{Nota}={Usando o tema quadro para produzir quadro},    
+]
+{
+  colspec = {XX}, % largura automatica das colunas
+  vlines,hlines, % fazer grade
+}
+linha 1 & texto 1 \\
+linha 2 & texto 2 \\
+linha 3 & texto 3 \\
+linha 4 & texto 4 \\
+linha 5 & texto 5 \\
+%\pagebreak % quebrando página para teste
+linha 6 & texto 6 \\
+linha 7 & texto 7 \\
+linha 8 & texto 8 \\
+linha 9 & texto 9 \\
+linha 10 & texto 10 \\
+linha 11 & texto 11 \\
+linha 12 & texto 12 \\
+linha 13 & texto 13 \\
+linha 14 & texto 14 \\
+linha 15 & texto 15 \\
+\end{longabnttblr}
+
+Para configurar a fonte usado em \texttt{abnttblr}, \texttt{tallabnttblr} e \texttt{longabnttblr}, usa-se o comando \verb+\SetAbntTblrFont+. Por exemplo, \verb+\SetAbntTblrFont{\footnotesize}+ configura o corpo de tabelas em \texttt{footnotesize} até que tenha nova chamada de \verb+\SetAbntTblrFont+.
+Os ambientes \texttt{tallabnttblr}/\texttt{longabnttblr} é mesmo que \texttt{talltblr}/\texttt{longtblr} com a opção \texttt{theme=abnt} no parâmetro opcional, exceto pela possibilidade de ajuste da fonte pelo comando \verb+\SetAbntTblrFont+.
+
+Note que \texttt{tblr}, \texttt{talltblr} e \texttt{longtblr} do \texttt{tabularray} funciona também no modo matemático. Assim, \texttt{abnttblr}, \texttt{tallabnttblr} e \texttt{longabnttblr} também funcionarão no modo matemático.
+
+\textbf{Observação sobre lista de quadros}
+A lista de quadros pode ser produzido pelo \verb+\listadequadros+. Note que na classe \texttt{ABNTeX2} acrescenta no sumário por padrão e para evitar isso, basta usar a versão ``*''. Para classe \texttt{abntexto}, terá o comando \verb+\makeloq+ que funcionará da mesma forma que \verb+makelot+.
+
+Para \texttt{tabularray}, veja o \textcite{book:tabularray:lyu}. Sobre \texttt{ABNTeX2} e \texttt{ABNText}, vejam \textcite{book:abnt2:araujo} e \textcite{book:abntexto:abreu}.
+
+\chapter{Código}
+
+%\CodeHigh{lite}
+\dochighinput[language=latex/latex3]{tabularray-abnt.sty}
+
+\phantomsection
+\printbibliography[heading=bibintoc]
+
+\end{document}
+
+%%%%%%%%%%%%%%%%%%%
+% FIM DO DOCUMENTO
+%%%%%%%%%%%%%%%%%%%


Property changes on: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt.bib	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt.bib	2025-01-04 20:48:46 UTC (rev 73303)
@@ -0,0 +1,44 @@
+% Encoding: UTF-8
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+tabularray-abnt.bib: Referencia bibliografica
+Usado por: tabularray-abnt-pt-br.tex
+ultima atualizacao: 03/01/2025 por Sadao Massago
+http:/www.dm.ufscar.br/~sadao
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+ at book{book:abnt2:araujo,
+author={Lauro César Araujo},
+title={A classe abntex2: Documentos técnicos e científicos brasileiros compatíveis com as normas ABNT},
+url={https://ctan.org/pkg/abnt2/},
+lastchecked={2018-06-11},
+urldate={2018-06-11},
+year=2016
+}
+ at comment{note="URL: {\url{https://ctan.org/pkg/abnt2/}}",}
+
+ at book{book:abntexto:abreu,
+author={Elayson Abreu},
+title={abntexto: classe para {\LaTeX}},
+url={https://ctan.org/pkg/abntexto},
+lastchecked={2024-12-29},
+urldate={2024-12-29},
+year=2024
+}
+ at comment{note="URL: {\url{https://ctan.org/pkg/abntexto}}",}
+
+ at book{book:tabularray:lyu,
+author={Jianrui Lyu},
+title={Tabularray: Typeset Tabulars and Arrays with {\LaTeX}3},
+url={https://ctan.org/pkg/tabularray},
+lastchecked={2025-01-03},
+urldate={2025-01-03},
+year=2024
+}
+ at comment{note="URL: {\url{https://ctan.org/pkg/tabularray}}",} 
+
+ at Comment{jabref-meta: databaseType:biblatex;}
+
+ at comment{e-mail: Scott Pakin <scott+clsl_AT_pakin.org>}
+
+%%%%%%%%%% fim do arquivo %%%%%%%%%%%


Property changes on: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty	2025-01-04 20:48:46 UTC (rev 73303)
@@ -0,0 +1,356 @@
+%%% % -*- coding: utf-8 -*-
+%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% % tabularray-abnt.sty
+%%% %----------------------------------------------------------------------
+%%% % copyright (C) January, 2025 by Sadao Massago
+%%% % autor:
+%%% %    Sadao Massago
+%%% %    e-mail: sadao at ufscar.br
+%%% %
+%%% % Licença: LaTeX Project Public License versão 1.3c or (se for a sua escolha) qualquer versão posterior.
+%%% % https://www.latex-project.org/lppl/
+%%% %----------------------------------------------------------------------
+
+%% Need LaTeX 2e version 2020-10-01 or latter (due to AddToHoock)
+\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+
+%%% file name
+\ProvidesFile{tabularray-abnt.sty}
+ [2025/01/03 tabularray-abnt style (require tabularray package)]
+\typeout{tabularray-abnt style 2025-01-03 <January/2025>.}
+
+%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% It not works on older LaTeX compatibility mode (documentstyle)
+
+\if at compatibility 
+  \PackageError{tabularray-abnt}{Not support older compatible mode (documentstyle)}
+     {Use documentclass instead of documentstyle}
+  \endinput
+\else
+  %% OK
+\fi
+
+%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% In way to adjust on memoir (ex. abntex2) or abntexto as document class
+
+\newif\if at tabularray@abnt at using@memoir
+\newif\if at tabularray@abnt at using@abntexto
+\@tabularray at abnt@using at memoirfalse
+\@tabularray at abnt@using at abntextofalse
+\@ifclassloaded{memoir}% Using memoir?
+{\@tabularray at abnt@using at memoirtrue}% YES
+{
+  \@ifclassloaded{abntexto}% Using ABNTexto?
+  {\@tabularray at abnt@using at abntextotrue}% YES
+  { % generic class
+    \RequirePackage{float}
+  }
+}
+
+%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Required package
+
+\RequirePackage{tabularray}
+
+%%% %----------------------
+%%> \section{ABNT theme}
+
+%% ABNT theme for table
+\NewTblrTheme{abnt}{
+  \DefTblrTemplate{caption-sep}{default}{\space ---\space}% default is ": \space"
+  \SetTblrTemplate{firsthead-text,lasthead-text,conthead-text}{abnt}
+  \SetTblrTemplate{caption,lasthead,capcont}{abnt}
+  \DefTblrTemplate{firstfoot,middlefoot}{default}{}% disabling the first and middle footnote
+  \SetTblrTemplate{lastfoot-text,lastfoot-text-note}{abnt}
+  \if at tabularray@abnt at using@abntexto
+    \SetTblrTemplate{caption-lot}{abnt}
+  \fi
+  
+  \SetTblrTemplate{remark-tag}{abnt}
+  \SetTblrTemplate{remark}{abnt}
+
+  \SetTblrStyle{caption,lasthead,capcont}{font=\normalsize}
+  \SetTblrStyle{firsthead-text,lasthead-text,conthead-text}{font=\footnotesize}
+  \SetTblrStyle{lastfoot}{font=\footnotesize}
+}
+
+%%% Example of how to insert value from parameter
+%%% %\DefTblrTemplate{caption-text}{default}{\InsertTblrText{caption}
+
+%%% ---------------------------------
+%% theme ``quadro'' (text only table)
+
+%%% % Caution: Avoid space between braces and parameters
+\NewTblrTheme{quadro}{
+  %% same as abnt theme of table
+  \DefTblrTemplate{caption-sep}{default}{\space ---\space}% default is ": \space"
+  \SetTblrTemplate{firsthead-text,lasthead-text,conthead-text}{abnt}
+  \SetTblrTemplate{caption,lasthead,capcont}{abnt}
+  \DefTblrTemplate{firstfoot,middlefoot}{default}{}% desabling first and middle footnote
+  \SetTblrTemplate{lastfoot-text,lastfoot-text-note}{abnt}
+  \if at tabularray@abnt at using@abntexto
+    \SetTblrTemplate{caption-lot}{abnt}
+  \fi
+  
+  \SetTblrTemplate{remark-tag}{abnt}
+  \SetTblrTemplate{remark}{abnt}
+
+  \SetTblrStyle{caption,lasthead,capcont}{font=\normalsize}
+  \SetTblrStyle{firsthead-text,lasthead-text,conthead-text}{font=\footnotesize}
+  \SetTblrStyle{lastfoot}{font=\footnotesize}
+
+  %% Change specific for ``quadro'
+  \SetTblrTemplate{caption-tag}{quadro}
+  \SetTblrTemplate{caption-lot}{quadro}
+} 
+
+%%% -----------------------------
+%%> \section{Setup table as ABNT}
+
+%% counter of table are not nested
+
+\ifdefined\chapter
+  \counterwithout{table}{chapter}
+\else
+  \ifdefined\section
+    \counterwithout{table}{section}
+  \fi
+\fi
+
+%% additional texto for header
+\DefTblrTemplate{firsthead-text}{abnt}{\par~\hfill(continua)} % first header
+\DefTblrTemplate{lasthead-text}{abnt}{\par~\hfill(conclusão)} % last header
+\DefTblrTemplate{conthead-text}{abnt}{\par~\hfill(continuação)} % middle header
+%% first header
+\DefTblrTemplate{caption}{abnt}{
+  \UseTblrTemplate{caption-tag}{default}
+  \UseTblrTemplate{caption-sep}{default}
+  \UseTblrTemplate{caption-text}{default}
+  
+%%% % like \ifdefined, but with csname
+  \ifcsname tblr at abnt@spanpages@\roman{table}\endcsname % if span pages
+    \UseTblrTemplate{firsthead-text}{abnt} % acrescentar o firsthead-text
+  \fi
+}
+
+%% redefine last head title
+\DefTblrTemplate{lasthead}{abnt}{
+  \UseTblrTemplate{caption-tag}{default}
+  \UseTblrTemplate{caption-sep}{default}
+  \UseTblrTemplate{caption-text}{default}
+  \UseTblrTemplate{lasthead-text}{abnt} % add lasthead-text
+}
+%% redefine middle head title
+\DefTblrTemplate{capcont}{abnt}{
+  \UseTblrTemplate{caption-tag}{default}
+  \UseTblrTemplate{caption-sep}{default}
+  \UseTblrTemplate{caption-text}{default}
+  \UseTblrTemplate{conthead-text}{abnt}
+}
+
+%%% %-------------------------------------------------
+%%> \section{To save ``page span'' status}
+
+\newif\if at tablular@abnt at mark@spanpages%
+\@tablular at abnt@mark at spanpagesfalse % initially false
+
+%%% % tblr with long optional option  
+\AddToHook{env/tblr/before}
+{  
+  \@tablular at abnt@mark at spanpagestrue
+}
+\AddToHook{env/tblr/after}
+{  
+  \@tablular at abnt@mark at spanpagesfalse
+  \DefTblrTemplate{lastfoot-text}{abnt}{}   
+  \DefTblrTemplate{lastfoot-text-note}{abnt}{}            
+}
+
+%%% % longtblr
+\AddToHook{env/longtblr/before}
+{  
+  \@tablular at abnt@mark at spanpagestrue
+}
+\AddToHook{env/longtblr/after}
+{  
+  \@tablular at abnt@mark at spanpagesfalse
+  \DefTblrTemplate{lastfoot-text}{abnt}{}          
+  \DefTblrTemplate{lastfoot-text-note}{abnt}{}  
+}
+
+%% if change pages, mark as ``span pages'' on aux file
+\AddToHook{shipout/after}
+{
+  \if at tablular@abnt at mark@spanpages
+    %% tip from https://tex.stackexchange.com/questions/115932/on-the-basics-of-writing-to-reading-from-auxiliary-files-aux-toc-etc
+    \immediate\write\@auxout{\gdef\string\tblr at abnt@spanpages@\roman{table}{true}}
+  \fi
+  %% to the associated commands act globally
+  %% tip from https://tex.stackexchange.com/questions/566884/setting-a-newif-to-false-ignored-on-first-check-in-custom-itemize-environment
+  \global\let\if at tablular@abnt at mark@spanpages\iffalse
+}    
+
+%% For abntexto class, need change the form to write on ``lot''
+\if at tabularray@abnt at using@abntexto
+  \ExplSyntaxOn
+    \DefTblrTemplate{caption-lot}{abnt}
+    {      
+      \tl_if_empty:NTF \lTblrEntryTl
+        {\tl_set_eq:NN \l__tblr_caption_short_tl \lTblrCaptionTl}
+        {\tl_set_eq:NN \l__tblr_caption_short_tl \lTblrEntryTl}
+      %% \addcontentsline { lot } { table }
+      %%  { \protect\numberline { \thetable } { \l__tblr_caption_short_tl } }
+      %% add on list of tables using command from abntexto
+      \addtoext{lot}{lofi}{\protect\lotlabelbox{\thetable}{\l__tblr_caption_short_tl}}        
+    }
+  \ExplSyntaxOff
+\fi% \if at tabularray@abnt at using@abntexto
+
+%% Change reamrk to use for source and note as ABNT
+\DefTblrTemplate{remark-tag}{abnt}{\InsertTblrRemarkTag}
+
+%% Change left margin using tip from
+%% https://tex.stackexchange.com/questions/645175/how-to-indent-notes-in-tabularray
+\newlength\tabularray at abnt@remark at labellength
+\DefTblrTemplate{remark}{abnt}{%
+  \MapTblrRemarks{%
+    \settowidth{\tabularray at abnt@remark at labellength}{\UseTblrTemplate{remark-tag}{abnt}\UseTblrTemplate{remark-sep}{default}}%
+    \UseTblrTemplate{remark-tag}{abnt}\UseTblrTemplate{remark-sep}{default}%
+    \parbox[t]{\dimexpr\linewidth-\tabularray at abnt@remark at labellength}{\UseTblrTemplate{remark-text}{default}}%
+    \par}\medskip
+}
+
+%%% %-------------------
+%%> \section{``Quadro'' (text only table)}
+
+%%% %------------------
+%% On the abntexto class, create legend entry named ``quadro''. In other cases, create environment ``quadro''.
+  
+%% Names
+\providecommand{\quadroname}{Quadro}
+\providecommand{\listquadroname}{Lista de quadros}
+\@ifpackageloaded{babel}{
+  \ifdefined\captionsbrazil
+    \addto\captionsbrazil{% brazilian portugese
+      \renewcommand{\quadroname}{Quadro}
+      \renewcommand{\listquadroname}{Lista de quadros}
+    }
+  \fi
+  \ifdefined\captionsbrazilian
+    \addto\captionsbrazil{% brazilian portugese
+      \renewcommand{\quadroname}{Quadro}
+      \renewcommand{\listquadroname}{Lista de quadros}
+    }
+  \fi
+  \ifdefined\captionsenglish
+    \addto\captionsenglish{% English
+      \renewcommand{\quadroname}{Text table}
+      \renewcommand{\listquadroname}{List of text table}
+    }
+  \fi
+}{} %  \@ifpackageloaded{babel}{   
+
+%% define for each class
+
+%% ABNTexto class
+\if at tabularray@abnt at using@abntexto   % ABNTexto.
+  %% using command from ABNTexto  
+  \definelegendplace{quadro}{Quadro}{quad.\,}{loq} % new legend entry 
+
+\ifdefined\chapter
+  \newcommand{\listadequadros}{\notoc\nonum\chapter{\listquadroname}\makeloq} 
+\else
+  \newcommand{\listadequadros}{\notoc\nonum\section{\listquadroname}\makeloq} 
+\fi
+  %% Caution: don't put space between braces and parameters
+  \DefTblrTemplate{caption-tag}{quadro}{\quadroname\hspace{0.25em}\the\countquadro}
+
+  \ExplSyntaxOn
+    \DefTblrTemplate {caption-lot}{quadro}
+    {
+      \addtocounter{table}{-1}%Não contar como table
+      
+  %% counter created by \definelegendplace{quadro} is not \c at quadro+, but \countquadro, and is necessary to use TeX command to increase
+      \global\advance\countquadro by 1% count as ``quadro''
+      \tl_if_empty:NTF \lTblrEntryTl
+        {\tl_set_eq:NN \l__tblr_caption_short_tl \lTblrCaptionTl}
+        {\tl_set_eq:NN \l__tblr_caption_short_tl \lTblrEntryTl}
+      %% add to list of ``quadro'' using command from abntexto
+      \addtoext{loq}{loqi}{\protect\loqlabelbox{\the\countquadro} {\l__tblr_caption_short_tl}}%
+    }
+  \ExplSyntaxOff
+\else %% memoir (ABNTeX2 or like) or generic class
+  \if at tabularray@abnt at using@memoir   %% memoir (ABNTeX2 or like)
+
+%%% %\newfloat[chapter]{quadro}{loq}{\quadroname}
+%%% %\counterwithout{quadro}{chapter}
+    %% using command from memoir
+    \newfloat{quadro}{loq}{\quadroname}
+    \newlistof{listadequadros}{loq}{\listquadroname}  
+
+%%% %\newlistentry[chapter]{quadro}{loq}{0}
+    \newlistentry{quadro}{loq}{0}
+    
+    \cftsetindents{quadro}{0em}{2.3em}
+    \renewcommand{\cftquadroname}{\quadroname\space}
+    \renewcommand*{\cftquadroaftersnum}{\hfill\textendash\hfill}	
+  \else %% generic class
+    %% using float package
+    \newcommand{\listadequadros}{\listof{quadro}{\listofquadrosname}}
+    \newfloat{quadro}{tbp}{loq}%[chapter]
+    
+%%% %\counterwithout{quadro}{chapter} counter not nested frm chapter
+  \fi
+  
+%%% % We need to use \hspace and \enskip, but not ~ or \space,
+%%% % since we want a correct hangindent caption paragraph.
+  \DefTblrTemplate {caption-tag} {quadro} {\quadroname\hspace{0.25em}\thequadro}
+
+  \ExplSyntaxOn
+    \DefTblrTemplate { caption-lot } { quadro }
+    {
+      \addtocounter{table}{-1}
+      \stepcounter{quadro}
+      \tl_if_empty:NTF \lTblrEntryTl
+        { \tl_set_eq:NN \l__tblr_caption_short_tl \lTblrCaptionTl }
+        { \tl_set_eq:NN \l__tblr_caption_short_tl \lTblrEntryTl }
+      \addcontentsline { loq } { table }
+        { \protect\numberline { \thequadro } { \l__tblr_caption_short_tl } }
+    }
+  \ExplSyntaxOff   
+\fi
+
+%%% %------------------------------
+%%> \section{New table environment}
+%% New environment as wrapper for tblr, instead of new tblr, in way to support table font settings 
+
+%% To set table font for new envrronment
+\NewDocumentCommand{\SetAbntTblrFont}{+m}
+{
+  \gdef\AbntTblrFont{#1}
+}
+
+%%% % New environments for tables
+\NewDocumentEnvironment{abnttblr}{+o +m +b}{
+\ifdefined\AbntTblrFont \AbntTblrFont \fi
+\begin{tblr}[theme=abnt,#1]{#2}
+#3
+\end{tblr}
+}{}
+
+\NewDocumentEnvironment{tallabnttblr}{+o +m +b}{
+\ifdefined\AbntTblrFont \AbntTblrFont \fi
+\begin{talltblr}[theme=abnt,#1]{#2}
+#3
+\end{talltblr}
+}{}
+
+\NewDocumentEnvironment{longabnttblr}{+o +m +b}{
+\ifdefined\AbntTblrFont \AbntTblrFont \fi
+\begin{longtblr}[theme=abnt,#1]{#2}
+#3
+\end{longtblr}
+}{}
+
+%% end: tabularray-abnt.sty
+


Property changes on: trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2025-01-04 20:46:46 UTC (rev 73302)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2025-01-04 20:48:46 UTC (rev 73303)
@@ -830,7 +830,7 @@
     tabbing tabfigures table-fct tableaux tablefootnote tableof
     tablists tablor tabls tablvar
     tabriz-thesis tabstackengine tabto-generic tabto-ltx
-    tabu tabularborder tabularray tabularcalc tabularew
+    tabu tabularborder tabularray tabularcalc tabularew tabularray-abnt
     tabulary tabvar tagging tagpair tagpdf talk talos tamefloats
     tamethebeast tango tangocolors tangramtikz tap tapir tasks
     tblr-extras tcldoc tcolorbox tdclock tds tdsfrmath

Modified: trunk/Master/tlpkg/tlpsrc/collection-langportuguese.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-langportuguese.tlpsrc	2025-01-04 20:46:46 UTC (rev 73302)
+++ trunk/Master/tlpkg/tlpsrc/collection-langportuguese.tlpsrc	2025-01-04 20:48:46 UTC (rev 73303)
@@ -1,6 +1,6 @@
 category Collection
 shortdesc Portuguese
-longdesc Support for Portuguese.
+longdesc Support for Portuguese and Brazilian Portuguese.
 #
 depend collection-basic
 #
@@ -15,4 +15,5 @@
 depend numberpt
 depend ordinalpt
 depend ptlatexcommands
+depend tabularray-abnt
 depend xypic-tut-pt

Added: trunk/Master/tlpkg/tlpsrc/tabularray-abnt.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.