summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xltabular
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-01 21:32:42 +0000
committerKarl Berry <karl@freefriends.org>2017-10-01 21:32:42 +0000
commit96895011d1c3210163f36542bf5b5e913d4b7ee3 (patch)
treef9c78deec8b776e7e0f52e03a2fbdb3538474228 /Master/texmf-dist/tex/latex/xltabular
parent8eca0e9ce0855e9227d708a64cb15684dc8cb5c5 (diff)
xltabular (1oct17)
git-svn-id: svn://tug.org/texlive/trunk@45446 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xltabular')
-rw-r--r--Master/texmf-dist/tex/latex/xltabular/xltabular.sty28
1 files changed, 17 insertions, 11 deletions
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 <hvoss@tug.org>
% Rolf Niepraschk <Rolf.Niepraschk@gmx.de>
%%
-\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'.
+