[latex3-commits] [latex3/latex2e] UF-latex-lab-table: handle negative row header values (9b95cf947)
github at latex-project.org
github at latex-project.org
Sun Jul 28 19:39:06 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : UF-latex-lab-table
Link : https://github.com/latex3/latex2e/commit/9b95cf9474f8984b11dbdd2c655cecb45a89dfb1
>---------------------------------------------------------------
commit 9b95cf9474f8984b11dbdd2c655cecb45a89dfb1
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Jul 28 19:39:06 2024 +0200
handle negative row header values
>---------------------------------------------------------------
9b95cf9474f8984b11dbdd2c655cecb45a89dfb1
required/latex-lab/latex-lab-table.dtx | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/required/latex-lab/latex-lab-table.dtx b/required/latex-lab/latex-lab-table.dtx
index 6e95bd2ed..48be2ad5e 100644
--- a/required/latex-lab/latex-lab-table.dtx
+++ b/required/latex-lab/latex-lab-table.dtx
@@ -349,6 +349,15 @@
\tl_set:Nn \l_@@_celltag_tl {TH}
\tl_set:Ne \l_@@_cellattribute_tl {\l_@@_cellattribute_tl,TH-row}
}
+% \end{macrocode}
+% Here we handle negative value for row headers:
+% \begin{macrocode}
+ \tl_set:Ne \l_@@_tmpa_tl {\int_eval:n { \g_@@_col_int - 1 - \g_@@_table_cols_tl }}
+ \clist_if_in:NoT \l_@@_header_columns_clist { \l_@@_tmpa_tl }
+ {
+ \tl_set:Nn \l_@@_celltag_tl {TH}
+ \tl_set:Ne \l_@@_cellattribute_tl {\l_@@_cellattribute_tl,TH-row}
+ }
\tag_struct_begin:n
{
tag =\l_@@_celltag_tl,
More information about the latex3-commits
mailing list.