diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/colortbl/colortbl.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/colortbl/colortbl.sty | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/colortbl/colortbl.sty b/Master/texmf-dist/tex/latex/colortbl/colortbl.sty index edcd882749a..092775d1da8 100644 --- a/Master/texmf-dist/tex/latex/colortbl/colortbl.sty +++ b/Master/texmf-dist/tex/latex/colortbl/colortbl.sty @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1995/06/01] \ProvidesPackage{colortbl} - [2024/02/20 v1.0g Color table columns (DPC)] + [2024/07/06 v1.0i Color table columns (DPC)] \edef\@tempa{% \noexpand\AtEndOfPackage{% \catcode`\noexpand\^^A\the\catcode`\^^A\relax}} @@ -132,8 +132,7 @@ \AtBeginDocument{% \expandafter\def\expandafter\@tabarray\expandafter{% \expandafter\CT@start\@tabarray}} -\def\endarray{% - \crcr \egroup \egroup \@arrayright\gdef\@preamble{}\CT@end} +\expandafter\def\expandafter\endarray\expandafter{\endarray\CT@end} \def\@tempa#1\@arstrut#2\relax{ \long\def\multicolumn##1##2##3{% #1% @@ -376,8 +375,12 @@ \next} \lowercase{\def\HH@spacelet} {\futurelet\@tempb \HH@loop} \fi} +\ExplSyntaxOn +\cs_if_exist:NF\tag_mc_begin:n{ + \cs_new:Npn\tag_mc_begin:n#1{} + \cs_new:Npn\tag_mc_end:{} +} \AtBeginDocument{ - \ifx\longtable\@undefined\else \def\LT@@hline{% \ifx\LT@next\hline \global\let\LT@next\@gobble @@ -387,7 +390,10 @@ \else \gdef\CT@LT@sep{% \multispan\LT@cols{% - \CT@drsc@\leaders\hrule\@height\doublerulesep\hfill}\cr}% + \tag_mc_begin:n{artifact} + \CT@drsc@\leaders\hrule\@height\doublerulesep\hfill + \tag_mc_end: \int_gdecr:N \g__tbl_row_int + }\cr}% \fi \else \global\let\LT@next\empty @@ -396,13 +402,20 @@ \fi \ifnum0=`{\fi}% \multispan\LT@cols - {\CT@arc@\leaders\hrule\@height\arrayrulewidth\hfill}\cr + {\tag_mc_begin:n{artifact} + \CT@arc@\leaders\hrule\@height\arrayrulewidth\hfill + \tag_mc_end: \int_gdecr:N \g__tbl_row_int + }\cr \CT@LT@sep \multispan\LT@cols - {\CT@arc@\leaders\hrule\@height\arrayrulewidth\hfill}\cr + {\tag_mc_begin:n{artifact} + \CT@arc@\leaders\hrule\@height\arrayrulewidth\hfill + \tag_mc_end: \int_gdecr:N \g__tbl_row_int + }\cr \noalign{\penalty\@M}% \LT@next} - \fi} + } +\ExplSyntaxOff \endinput %% %% End of file `colortbl.sty'. |