texlive[74358] branches/branch2024.final/Master/texmf-dist: xltabular
commits+karl at tug.org
commits+karl at tug.org
Fri Feb 28 23:14:56 CET 2025
Revision: 74358
https://tug.org/svn/texlive?view=revision&revision=74358
Author: karl
Date: 2025-02-28 23:14:56 +0100 (Fri, 28 Feb 2025)
Log Message:
-----------
xltabular (branch) (28feb25)
Modified Paths:
--------------
branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/Changes
branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.pdf
branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex
branches/branch2024.final/Master/texmf-dist/tex/latex/xltabular/xltabular.sty
Removed Paths:
-------------
branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.bib
branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-example-hyp.tex
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/Changes
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/Changes 2025-02-28 22:14:40 UTC (rev 74357)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/Changes 2025-02-28 22:14:56 UTC (rev 74358)
@@ -1,3 +1,4 @@
+2.0i 2025/02/28 - added tagging (HV)
2.0h 2024/11/13 - Simplifying the code, taking into account the current longtable version
2.0g 2024/10/28 - prevent problematic behavior of longtable at page breaks
2.0e 2020/11/04 - insert a \par at the beginning of xltabular
Deleted: branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.bib
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.bib 2025-02-28 22:14:40 UTC (rev 74357)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.bib 2025-02-28 22:14:56 UTC (rev 74358)
@@ -1,24 +0,0 @@
- at ctan{ltablex,
- Title = {The \texttt{ltablex} package},
- Author = {Anil Goel},
- url = {/macros/latex/contrib/ltablex/},
- version = {1.1},
- date = {2014-08-13},
-}
-
- at ctan{tabularx,
- Title = {The \texttt{tabularx} package},
- Author = {David Carlisle},
- url = {/macros/latex/contrib/carlisle/},
- version = {2.11},
- date = {2016-02-03},
-}
-
- at ctan{Pak-longtable,
- Title = {The \texttt{longtable} package},
- Author = {David Carlisle},
- url = {/macros/latex/required/tools/longtable.pdf},
- date = {2014-10-28},
- version = {4.11},
-}
-
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex 2025-02-28 22:14:40 UTC (rev 74357)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex 2025-02-28 22:14:56 UTC (rev 74358)
@@ -1,6 +1,14 @@
%% $Id: xltabular-doc.tex 635 2017-10-24 18:22:59Z herbert $
%
\listfiles\setcounter{errorcontextlines}{100}
+
+\DocumentMetadata
+ {
+ lang=en-US,
+ pdfversion=2.0,
+ pdfstandard=ua-2,
+ testphase={latest}
+ }
\documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
captions=tableabove,twoside=on]{scrartcl}
\usepackage{fontspec}
@@ -35,7 +43,11 @@
%\nolig{oe}{o|e}
\usepackage{xltabular}
-
+\makeatletter
+%\def\LT at caption{%
+% \noalign\bgroup
+% \@ifnextchar[{\egroup\LT at c@ption\@firstofone}\LT at capti@n}
+\makeatother
%\specialLTpagebreak
\usepackage{fancyvrb}
@@ -44,7 +56,8 @@
\usepackage{ragged2e}
\usepackage[bibstyle=dtk]{biblatex}
-\addbibresource{\jobname.bib}
+%\addbibresource{\jobname.bib}
+\addbibresource[location=remote]{https://mirror.ctan.org/biblio/ctan-bibdata/ctan.bib}
\raggedbottom
\usepackage[colorlinks,linktocpage]{hyperref}
@@ -434,7 +447,7 @@
\pagebreak
-\nocite{*}
+\nocite{ctan-ltablex,ctan-tabularx,ctan-longtable}
\printbibliography
Deleted: branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-example-hyp.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-example-hyp.tex 2025-02-28 22:14:40 UTC (rev 74357)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/xltabular/xltabular-example-hyp.tex 2025-02-28 22:14:56 UTC (rev 74358)
@@ -1,10 +0,0 @@
-
-%---------------------------
-\setcounter{errorcontextlines}{100}
-\listfiles
-\documentclass{scrbook}
-\usepackage{caption}
-\usepackage{xltabular}
-\usepackage{hyperref}
-\input{xltabular-example.inp}
-%---------------------------
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/xltabular/xltabular.sty
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/xltabular/xltabular.sty 2025-02-28 22:14:40 UTC (rev 74357)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/xltabular/xltabular.sty 2025-02-28 22:14:56 UTC (rev 74358)
@@ -3,10 +3,10 @@
%% License from CTAN archives in directory macros/latex/base/lppl.txt.
%% Either version 1.3 or, at your option, any later version.
%%
-% Copyright 2018-2024 Herbert Voss <hvoss at tug.org>
+% Copyright 2018-2025 Herbert Voss <hvoss at tug.org>
% Rolf Niepraschk <Rolf.Niepraschk at gmx.de>
%%
-\ProvidesPackage{xltabular}[2024/11/13 v0.2h `xltabular' package (hv,RN)]
+\ProvidesPackage{xltabular}[2025/02/28 v0.2i `xltabular' package (hv,RN)]
\RequirePackage{tabularx}
\RequirePackage{etoolbox}
\let\XLT at i@tabularx=\tabularx
@@ -22,6 +22,82 @@
%
\let\XLT at ii@tabularx=\tabularx
\let\XLT at ii@TX at endtabularx=\TX at endtabularx
+
+%% Redefine it for tagging %%
+\renewcommand\XLT at ii@TX at endtabularx{%
+ \expandafter\TX at newcol\expandafter{\tabularxcolumn{\TX at col@width}}%
+ \let\verb\TX at verb
+ \def\@elt##1{\global\value{##1}\the\value{##1}\relax}%
+ \edef\TX at ckpt{\cl@@ckpt}%
+ \let\@elt\relax
+ \TX at old@table=\maxdimen
+ \TX at col@width=\TX at target
+ \global\TX at cols=\@ne
+ \TX at typeout@
+ {\@spaces Table Width\@spaces Column Width\@spaces X Columns}%
+ %
+ % define \endhead, etc. to be \\ so that in this part
+ % of the process they are just rows
+ %
+ \let\savecaption\caption
+ \def\caption{% RN, 2014/08/13
+ \@ifstar\TX at cap@gobble\TX at cap@gobble
+ }
+ \let\saveendhead\endhead
+ \def\endhead{\\}
+ \let\saveendfirsthead\endfirsthead
+ \def\endfirsthead{\\}
+ \let\saveendfoot\endfoot
+ \def\endfoot{\\}
+ \let\saveendlastfoot\endlastfoot
+ \def\endlastfoot{\\}
+ %
+ %
+ \SuspendTagging {tabularx}%<-------------------------------
+ \ifTX at convertX@
+ \TX at trial{\def\NC at rewrite@X{\NC at find l}}
+ \ifdim\wd\@tempboxa<\TX at target
+ \TX at newcol{l}
+ \else
+ \TX at convertX@false
+ \fi
+ \fi
+ \ifTX at convertX@
+ \relax
+ \else
+ \TX at trial{\def\NC at rewrite@X{%
+ \global\advance\TX at cols\@ne\NC at find p{\TX at col@width}}}%
+ \loop
+ \TX at arith
+ \ifTX@
+ \TX at trial{}%
+ \repeat
+ \fi
+ \ResumeTagging {tabularx}%<----------------------------
+ {\let\@footnotetext\TX at ftntext\let\@xfootnotenext\TX at xftntext
+ % we may as well set \LTchunksize to be \maxdimen as the whole
+ % thing is already in memory anyway so we may as well do it in one
+ % chunk. if it is too big for one chunk we are already dead..
+ \LTchunksize\maxdimen
+ %
+ % restore \endhead, etc.
+ %
+ \let\caption\savecaption
+ \let\endhead\saveendhead
+ \let\endfirsthead\saveendfirsthead
+ \let\endfoot\saveendfoot
+ \let\endlastfoot\saveendlastfoot
+ %
+ \expandafter\longtable
+ \the\toks@
+ \endlongtable
+ }%
+ \global\TX at ftn\expandafter{\expandafter}\the\TX at ftn
+ \ifnum0=`{\fi}%
+\end{tabularx}
+}
+
+
\let\XLT at longtable=\longtable
% prevents problematic behavior of longtable at page breaks (\XLT at normalPBfalse)
\patchcmd{\LT at start}{\vfil \break}{\ifXLT at normalPB \vfil \break \fi}{}{}
@@ -37,8 +113,10 @@
%
% restore original tabularx
\renewenvironment{tabularx}%
-{\let\TX at endtabularx=\XLT at i@TX at endtabularx\XLT at i@tabularx}
-{\XLT at i@endtabularx}
+ {\let\TX at endtabularx=\XLT at i@TX at endtabularx\XLT at i@tabularx}
+ {\XLT at i@endtabularx}
+
+
%
% define a new tabularx like the one from "ltablex"
%
More information about the tex-live-commits
mailing list.