From 84648b2a3848ee4ddf34f67f927d4437a1bf4c9c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 27 Sep 2017 23:03:17 +0000 Subject: xltabular (27sep17) git-svn-id: svn://tug.org/texlive/trunk@45412 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/xltabular/xltabular.sty | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/xltabular/xltabular.sty (limited to 'Master/texmf-dist/tex/latex/xltabular') diff --git a/Master/texmf-dist/tex/latex/xltabular/xltabular.sty b/Master/texmf-dist/tex/latex/xltabular/xltabular.sty new file mode 100644 index 00000000000..5a356850a43 --- /dev/null +++ b/Master/texmf-dist/tex/latex/xltabular/xltabular.sty @@ -0,0 +1,51 @@ +%% $Id: xltabular.sty 586 2017-09-27 17:00:55Z herbert $ +%% +%% This file is distributed under the terms of the LaTeX Project Public +%% License from CTAN archives in directory macros/latex/base/lppl.txt. +%% Either version 1.3 or, at your option, any later version. +%% +% Copyright 2017 Herbert Voss hvoss@tug.org +% Rolf Niepraschk Rolf.Nieprasch@gmx.de +%% +\def\xltabular@version{0.01 } +\ProvidesPackage{xltabular} + [2017/09/27 v\xltabular@version `xltabular' package (hv,rn)] + +\RequirePackage{tabularx} +\let\ORIGi@tabularx=\tabularx +\let\ORIGi@endtabularx=\endtabularx +\let\ORIGi@TX@endtabularx=\TX@endtabularx +% +\RequirePackage{ltablex} +\let\ORIGii@tabularx=\tabularx +\let\ORIGii@TX@endtabularx=\TX@endtabularx +% +\let\ORIG@longtable=\longtable +\let\ORIG@LT@capti@n=\LT@capti@n +% +% restore original tabularx +\let\tabularx=\ORIGi@tabularx +\let\endtabularx=\ORIGi@endtabularx +\let\TX@endtabularx=\ORIGi@TX@endtabularx +% +% define a new tabularx like the one from "ltablex" +% +\newenvironment{xltabular} + {\let\TX@endtabularx=\ORIGii@TX@endtabularx + \let\endtabularx\endxltabular + \ORIGii@tabularx} + {\def\@currenvir{tabularx}} +% +% In "longtable" Erhöhung des Zählers "table" nur durch "\caption" +\def\LT@capti@n{% + \refstepcounter{table}% + \ORIG@LT@capti@n +} +\def\longtable{% + \addtocounter{table}\m@ne + \ORIG@longtable +} + +\endinput +%% +%% End of file `xltabular.sty'. -- cgit v1.2.3