diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-02 03:02:38 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-02 03:02:38 +0000 |
commit | 14306f33be89150a135f81fc4ef56d50f2189915 (patch) | |
tree | b76c282b22070edd2ee6215a8b8c338871d62112 /macros/latex/contrib/tabularray | |
parent | e127e502f1bc7386699c44d75c89991f1a5e0ac6 (diff) |
CTAN sync 202112020302
Diffstat (limited to 'macros/latex/contrib/tabularray')
-rw-r--r-- | macros/latex/contrib/tabularray/tabularray.pdf | bin | 760493 -> 760910 bytes | |||
-rw-r--r-- | macros/latex/contrib/tabularray/tabularray.sty | 19 | ||||
-rw-r--r-- | macros/latex/contrib/tabularray/tabularray.tex | 2 |
3 files changed, 15 insertions, 6 deletions
diff --git a/macros/latex/contrib/tabularray/tabularray.pdf b/macros/latex/contrib/tabularray/tabularray.pdf Binary files differindex 450375620e..1a21a9f22a 100644 --- a/macros/latex/contrib/tabularray/tabularray.pdf +++ b/macros/latex/contrib/tabularray/tabularray.pdf diff --git a/macros/latex/contrib/tabularray/tabularray.sty b/macros/latex/contrib/tabularray/tabularray.sty index db63c63a3c..f5ad547d71 100644 --- a/macros/latex/contrib/tabularray/tabularray.sty +++ b/macros/latex/contrib/tabularray/tabularray.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\ProvidesExplPackage{tabularray}{2021-10-01}{2021P} +\ProvidesExplPackage{tabularray}{2021-12-01}{2021Q} {Typeset tabulars and arrays with LaTeX3} \RequirePackage{xparse} @@ -114,6 +114,12 @@ \int_new:N \c@rowcount \int_new:N \c@colcount +%% Add missing \therownum, \thecolnum, \therowcount, \thecolcount (issue #129) +\NewExpandableDocumentCommand \therownum {} { \@arabic \c@rownum } +\NewExpandableDocumentCommand \thecolnum {} { \@arabic \c@colnum } +\NewExpandableDocumentCommand \therowcount {} { \@arabic \c@rowcount } +\NewExpandableDocumentCommand \thecolcount {} { \@arabic \c@colcount } + %% Some dimensions for row and column spacing \dim_new:N \abovesep \dim_new:N \belowsep @@ -2679,9 +2685,12 @@ } %% Decrease row count by 1 if the last row has only one empty cell text %% We need to do it here since the > or < column type may add text to cells - \bool_lazy_and:nnTF - { \int_compare_p:nNn {\c@colnum} = {1} } - { \tl_if_empty_p:N \l_tmpa_tl } + \bool_lazy_all:nTF + { + { \int_compare_p:nNn {#1} = {\c@rowcount} } + { \int_compare_p:nNn {\c@colnum} = {1} } + { \tl_if_empty_p:N \l_tmpa_tl } + } { \int_decr:N \c@rowcount } { \__tblr_prop_gput:nnx @@ -4661,7 +4670,7 @@ \tl_if_empty:NT \l__tblr_caption_short_tl { \tl_set:Nx \l__tblr_caption_short_tl { \InsertTblrText { caption } } } \addcontentsline { lot } { table } - { \protect\numberline { \arabic { table } } { \l__tblr_caption_short_tl } } + { \protect\numberline { \thetable } { \l__tblr_caption_short_tl } } } \SetTblrTemplate { caption-lot } { normal } diff --git a/macros/latex/contrib/tabularray/tabularray.tex b/macros/latex/contrib/tabularray/tabularray.tex index bda64717b4..c2fddc1e36 100644 --- a/macros/latex/contrib/tabularray/tabularray.tex +++ b/macros/latex/contrib/tabularray/tabularray.tex @@ -1,7 +1,7 @@ % -*- coding: utf-8 -*- % !TEX program = lualatex \documentclass[oneside]{book} -\newcommand*{\myversion}{2021P} +\newcommand*{\myversion}{2021Q} \newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi} \usepackage[a4paper,margin=2.5cm]{geometry} |