From 96895011d1c3210163f36542bf5b5e913d4b7ee3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 1 Oct 2017 21:32:42 +0000 Subject: xltabular (1oct17) git-svn-id: svn://tug.org/texlive/trunk@45446 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/xltabular/xltabular.sty | 28 +++++++++++++--------- 1 file changed, 17 insertions(+), 11 deletions(-) (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 index 43fd233f94f..2667a2c7a6a 100644 --- a/Master/texmf-dist/tex/latex/xltabular/xltabular.sty +++ b/Master/texmf-dist/tex/latex/xltabular/xltabular.sty @@ -1,4 +1,4 @@ -%% $Id: xltabular.sty 592 2017-09-29 06:52:56Z herbert $ +%% $Id: xltabular.sty 602 2017-10-01 13:47:08Z herbert $ %% %% This file is distributed under the terms of the LaTeX Project Public %% License from CTAN archives in directory macros/latex/base/lppl.txt. @@ -7,9 +7,9 @@ % Copyright 2017 Herbert Voss % Rolf Niepraschk %% -\def\xltabular@version{0.02 } +\def\xltabular@version{0.03 } \ProvidesPackage{xltabular} - [2017/09/28 v\xltabular@version `xltabular' package (hv,rn)] + [2017/10/01 v\xltabular@version `xltabular' package (hv,rn)] \RequirePackage{tabularx} \let\ORIGi@tabularx=\tabularx @@ -21,7 +21,7 @@ \let\ORIGii@TX@endtabularx=\TX@endtabularx % \let\ORIG@longtable=\longtable -\let\ORIG@LT@capti@n=\LT@capti@n +\let\ORIG@LT@c@ption=\LT@c@ption % % restore original tabularx \let\tabularx=\ORIGi@tabularx @@ -44,15 +44,21 @@ {\def\@currenvir{tabularx}} % % In "longtable" increase the counter "table" only if "\caption" is used -\def\LT@capti@n{% - \refstepcounter{table}% - \ORIG@LT@capti@n -} + +\def\LT@c@ption#1{% + \noalign{% + \ifx#1\@firstofone + \refstepcounter{table}% + \fi}% + \ORIG@LT@c@ption{#1}% +} +% \def\longtable{% - \addtocounter{table}\m@ne - \ORIG@longtable + \addtocounter{table}\m@ne + \ORIG@longtable } - +% \endinput %% %% End of file `xltabular.sty'. + -- cgit v1.2.3