texlive[76009] Master/texmf-dist: tabularray-abnt (9aug25)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 9 21:36:18 CEST 2025


Revision: 76009
          https://tug.org/svn/texlive?view=revision&revision=76009
Author:   karl
Date:     2025-08-09 21:36:18 +0200 (Sat, 09 Aug 2025)
Log Message:
-----------
tabularray-abnt (9aug25)

Modified Paths:
--------------
    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/tex/latex/tabularray-abnt/tabularray-abnt-2025A.sty
    trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty

Modified: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt	2025-08-08 23:42:48 UTC (rev 76008)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/changelog.txt	2025-08-09 19:36:18 UTC (rev 76009)
@@ -1,6 +1,8 @@
+2025-08-08
+  - adjusted to work correctly on abntexto 4.0.2 (2025-08-05)
 2025-03-14
   - bug fix
-  - Better code for case of tabularray 2025-01-01
+  - Better code for case of using tabularray 2025-01-01
 2025-01-16
   - bug fix for case that some quadros appear as tables on list of quadros.
 2025-01-06

Modified: trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.pdf
===================================================================
(Binary files differ)

Modified: 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	2025-08-08 23:42:48 UTC (rev 76008)
+++ trunk/Master/texmf-dist/doc/latex/tabularray-abnt/tabularray-abnt-pt-br.tex	2025-08-09 19:36:18 UTC (rev 76009)
@@ -77,7 +77,8 @@
 
 \title{Tabularray-abnt: tema abnt para tabularray}
 \author{Sadao Massago}
-\date{2025/03/14}
+% \date{2025-03-14}
+\date{2025-08-08}
 
 %%%%%%%%%%%%%%%%%%%%%
 % INÍCIO DO DOCUMENTO
@@ -128,7 +129,7 @@
 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}.
+O \texttt{ABNTeX2} e \texttt{ABNTexto} implementam as tabelas curtas no padrão \texttt{ABNT}, mas ainda não tem suporte as tabelas longas (agosto de 2005) 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.
@@ -359,7 +360,7 @@
 
 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{Problema conhecida}
+\chapter{Problema conhecido}
 Quando o inicio de uma tabela ficar no final de uma página, numa compilação, ficará em duas páginas sem a indicação de continuação da tabela e na próxima compilação, ficará tudo na próxima página, indicando que tem continuação. Isto repete. A causa disso é que o tamanho do título da tabela aumenta em uma linha quando tem a indicação de continuação (assim, não cabendo no final da página, ficará tudo na próxima página). Quando esta tudo na próxima página, agora o título não tem indicação de continuação, reduzindo em uma linha (logo, o inicio da tabela pode ser colocado no final da página anterior). Como a informação de continuação é referente à compilação anterior, a indicação de compilação ficará inconsistente.
 Para resolver este problema, coloque a quebra de linha (\verb+\newpage+ antes da tabela para assegurar que o início da tabela não venha a ocorrer no final da página anterior.
 

Modified: trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt-2025A.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt-2025A.sty	2025-08-08 23:42:48 UTC (rev 76008)
+++ trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt-2025A.sty	2025-08-09 19:36:18 UTC (rev 76009)
@@ -32,6 +32,27 @@
   %% OK
 \fi
 
+%% It not works for abntexto version 2025-07-17 or latter
+% if using old version of abntexto (before 2025-07-17), invoke old version
+\@ifclassloaded{abntexto}% Using ABNTexto?
+{
+  \newif\if at tabularray@abnt at abntexto@old
+  \@tabularray at abnt@abntexto at oldfalse
+  % place (and subplace, and indexcard) is environment now (if envirnment, end<env> are defined)
+  \ifx\endplace\undefined%empty not works
+    \@tabularray at abnt@abntexto at oldtrue
+  \fi
+  % \toclabel (and \nohyph) added now
+  \ifx\toclabel\undefined
+    \@tabularray at abnt@abntexto at oldtrue
+  \fi
+  % if older abntexto, invke preview version
+  \if at tabularray@abnt at abntexto@old
+  \else
+    \PackageError{tabularray-abnt-2025A}{This version does not work with abntexto 2025-07-17 or latter}{Use tabularray-abnt with tabularray 2025-01-01 or latter}
+  \fi
+}{}
+
 %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% In way to adjust on memoir (ex. abntex2) or abntexto as document class
 

Modified: trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty	2025-08-08 23:42:48 UTC (rev 76008)
+++ trunk/Master/texmf-dist/tex/latex/tabularray-abnt/tabularray-abnt.sty	2025-08-09 19:36:18 UTC (rev 76009)
@@ -15,11 +15,11 @@
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 
 % Releases
-\DeclareRelease{}{2025-01-16}{tabularray-2025A.sty}
-\DeclareCurrentRelease{}{2025-03-14}
+\DeclareRelease{}{2025-01-16}{tabularray-abnt-2025A.sty}
+\DeclareCurrentRelease{}{2025-08-08}
 
 %%% package name
-\ProvidesPackage{tabularray-abnt}[2025/03/14 tabularray-abnt style (require tabularray package)]
+\ProvidesPackage{tabularray-abnt}[2025/08/08 tabularray-abnt style (require tabularray package)]
 
 %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% Does not works on older LaTeX compatibility mode (documentstyle)
@@ -41,6 +41,24 @@
 % If tabularray is old, use old abularray-abnt too.
 \IfPackageAtLeastTF{tabularray}{2025-01-01}{}{\RequirePackage{tabularray-abnt-2025A}\endinput}
 
+% if using old version of abntexto (before 2025-07-17), invoke old version
+\@ifclassloaded{abntexto}% Using ABNTexto?
+{
+  \newif\if at tabularray@abnt at abntexto@old
+  \@tabularray at abnt@abntexto at oldfalse
+  % place (and subplace, and indexcard) is environment now (if envirnment, end<env> are defined)
+  \ifx\endplace\undefined%empty not works
+    \@tabularray at abnt@abntexto at oldtrue
+  \fi
+  % \toclabel (and \nohyph) added now
+  \ifx\toclabel\undefined
+    \@tabularray at abnt@abntexto at oldtrue
+  \fi
+  % if older abntexto, invke old version
+  \if at tabularray@abnt at abntexto@old
+    \RequirePackage{tabularray-abnt-2025A}\endinput
+  \fi
+}{}
 
 %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% In way to adjust on memoir (ex. abntex2) or abntexto as document class
@@ -128,11 +146,11 @@
 %% counting table and quadro together
 
 %%% \ExplSyntaxOn
-\if at tabularray@abnt at using@abntexto
-  \newcommand{\tabularray at abnt@tblr at count@roman}{\romannumeral\inteval{\value{table} + \countquadro}}
-\else
+%\if at tabularray@abnt at using@abntexto
+%  \newcommand{\tabularray at abnt@tblr at count@roman}{\romannumeral\inteval{\value{table} + \countquadro}}
+%\else
   \newcommand{\tabularray at abnt@tblr at count@roman}{\romannumeral\inteval{\value{table} + \value{quadro}}}  
-\fi
+%\fi
 %%% \ExplSyntaxOff
 
 %% additional text for header
@@ -192,8 +210,14 @@
         {\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}}        
+      %% add on list of tables using command from abntexto (old)
+      % \addtoext{lot}{lofi}{\protect\lotlabelbox{\thetable}{\l__tblr_caption_short_tl}}    
+      %% add on list of tables (new abntexto: 202-07-17)      
+      \addcontentsline
+        {\ext at table}%
+        {\ext at table}%
+        {\expandafter\protect
+         \csname\ext at table labelbox\endcsname{\tablename\space\thetable\space---\space}\l__tblr_caption_short_tl}%    
     }
   \ExplSyntaxOff
 \fi% \if at tabularray@abnt at using@abntexto
@@ -248,12 +272,17 @@
   \fi
 }{} %  \@ifpackageloaded{babel}{   
 
+%%% % We need to use \hspace and \enskip, but not ~ or \space,
+%%% % since we want a correct hangindent caption paragraph.
+\DeclareTblrTemplate{caption-tag}{quadro}{\quadroname\hspace{0.25em}\thequadro}
+
 %% 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 
+  %%% % \definelegendplace{quadro}{Quadro}{quad.\,}{loq} % new legend entry. abntexto old 
+  \definelegendplace{quadro}{Quadro}{loq} % new legend entry.
 
   \ifdefined\chapter
     \newcommand{\listadequadros}{\notoc\nonum\chapter{\listquadroname}\makeloq} 
@@ -261,22 +290,29 @@
     \newcommand{\listadequadros}{\notoc\nonum\section{\listquadroname}\makeloq} 
   \fi
   %% Caution: don't put space between braces and parameters
-  \DeclareTblrTemplate{caption-tag}{quadro}{\quadroname\hspace{0.25em}\the\countquadro}
+  %\DeclareTblrTemplate{caption-tag}{quadro}{\quadroname\hspace{0.25em}\the\countquadro}
+%  \DeclareTblrTemplate{caption-tag}{quadro}{\quadroname\hspace{0.25em}\thequadro}
 
   \ExplSyntaxOn
     \DeclareTblrTemplate{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''
+      \addtocounter{table}{-1}% not count as table
+      \stepcounter{quadro}% 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}}%
+        { \tl_set_eq:NN \l__tblr_caption_short_tl \lTblrCaptionTl }
+        { \tl_set_eq:NN \l__tblr_caption_short_tl \lTblrEntryTl }
+      %% \addcontentsline { loq } { quadro }
+      %%  { \protect\numberline { \thequadro } { \l__tblr_caption_short_tl } }
+      %% add on list of tables (new abntexto: 202-07-17)      
+      \addcontentsline
+        {\ext at quadro}%
+        {\ext at quadro}%
+        {\expandafter\protect
+         \csname\ext at quadro labelbox\endcsname{\quadroname\space\thequadro\space---\space}\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}
@@ -315,8 +351,9 @@
         { \protect\numberline { \thequadro } { \l__tblr_caption_short_tl } }
     }
   \ExplSyntaxOff   
-\fi
 
+\fi % \else of \if at tabularray@abnt at using@abntexto   % ABNTexto.
+
 %%% %------------------------------
 %%> \section{New table environment}
 %% New environment as wrapper for tblr, instead of new tblr, in way to support table font settings 



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