texlive[45600] Master/texmf-dist: xltabular (25oct17)

commits+karl at tug.org commits+karl at tug.org
Wed Oct 25 23:53:22 CEST 2017


Revision: 45600
          http://tug.org/svn/texlive?view=revision&revision=45600
Author:   karl
Date:     2017-10-25 23:53:22 +0200 (Wed, 25 Oct 2017)
Log Message:
-----------
xltabular (25oct17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xltabular/Changes
    trunk/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.pdf
    trunk/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex
    trunk/Master/texmf-dist/tex/latex/xltabular/xltabular.sty

Modified: trunk/Master/texmf-dist/doc/latex/xltabular/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xltabular/Changes	2017-10-25 21:53:08 UTC (rev 45599)
+++ trunk/Master/texmf-dist/doc/latex/xltabular/Changes	2017-10-25 21:53:22 UTC (rev 45600)
@@ -1,3 +1,4 @@
+0.04  2017-10-23  - wrong references (RN)
 0.03  2017-10-01  - fix for \caption* in longtable
 0.02  2017-09-28  - added optional argument for horizontal alignment
                   - extended documentation

Modified: trunk/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex	2017-10-25 21:53:08 UTC (rev 45599)
+++ trunk/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex	2017-10-25 21:53:22 UTC (rev 45600)
@@ -1,6 +1,6 @@
-%% $Id: xltabular-doc.tex 598 2017-09-30 19:52:25Z herbert $
+%% $Id: xltabular-doc.tex 635 2017-10-24 18:22:59Z herbert $
 %
-\listfiles
+\listfiles\setcounter{errorcontextlines}{100}
 \documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
                captions=tableabove,twoside=on]{scrartcl}
 \usepackage{fontspec}
@@ -35,10 +35,6 @@
 %\nolig{oe}{o|e}
 
 \usepackage{xltabular}
-\makeatletter
-\let\XLVersion\xltabular at version
-\makeatother
-
 \usepackage{fancyvrb}
 \usepackage{blindtext}
 \usepackage{dtk-logos} % for Wikipedia W
@@ -48,10 +44,23 @@
 \addbibresource{\jobname.bib}
 
 \raggedbottom
-
 \usepackage[colorlinks,linktocpage]{hyperref}
 \newcommand*\cs[1]{\texttt{\textbackslash#1}}
-\title{Package \texttt{xltabular} \\--\\ v.~\XLVersion}
+
+\makeatletter% from: doc.sty
+\newcommand*\GetFileInfo[1]{%
+  \def\filename{#1}%
+  \def\@tempb##1 ##2 ##3\relax##4\relax{%
+    \def\filedate{##1}%
+    \def\fileversion{##2}%
+    \def\fileinfo{##3}}%
+  \edef\@tempa{\csname ver@#1\endcsname}%
+  \expandafter\@tempb\@tempa\relax? ? \relax\relax}
+\makeatother
+
+\GetFileInfo{xltabular.sty}
+
+\title{Package \texttt{xltabular} \\--\\ \normalsize \fileversion\ (\filedate)}
 \author{Rolf Niepraschk\thanks{Rolf.Niepraschk at gmx.de} \and Herbert Voß\thanks{hvoss at tug.org}}
 \begin{document}
 \maketitle
@@ -115,6 +124,7 @@
 \end{tabularx}
 \end{Verbatim}
 
+\bigskip
 \captionaboveof{table}{Using the original \texttt{tabularx} environment: 
 	a pagebreak not possible! This is the reason why the tabular moves 
 	to the next page.}
@@ -136,7 +146,8 @@
 
 \subsection{The new environment \texttt{xltabular}}
 For the demonstration we use a tabular with only one X column. There is no difference
-to an example with more or other column specifiers.
+to an example with more or other column specifiers. However, there should be at least
+one \texttt{X} column specifier; it makes no real sense otherwise.
 
 \begin{Verbatim}[frame=lines]
 \begin{xltabular}{\linewidth}{@{} X @{}}
@@ -213,7 +224,7 @@
  blg & (bibliography log) enthält die Ausgaben eines Bib\TeX-Laufs\\ 
  cfg & (config) Konfigurationsdatei\\ 
  clo & (class options) Definitionen für die Dokumentenklasse und die entsprechenden
-         Klassen-Optionen\\ 
+         Klassen-Optionen\\\hline 
 \end{tabularx}
 
 
@@ -232,7 +243,7 @@
  blg & (bibliography log) enthält die Ausgaben eines Bib\TeX-Laufs\\ 
  cfg & (config) Konfigurationsdatei\\ 
  clo & (class options) Definitionen für die Dokumentenklasse und die entsprechenden
-         Klassen-Optionen\\ 
+         Klassen-Optionen\\\hline 
 \end{xltabular}
 
 

Modified: trunk/Master/texmf-dist/tex/latex/xltabular/xltabular.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xltabular/xltabular.sty	2017-10-25 21:53:08 UTC (rev 45599)
+++ trunk/Master/texmf-dist/tex/latex/xltabular/xltabular.sty	2017-10-25 21:53:22 UTC (rev 45600)
@@ -1,4 +1,4 @@
-%% $Id: xltabular.sty 602 2017-10-01 13:47:08Z herbert $
+%% $Id: xltabular.sty 635 2017-10-24 18:22:59Z 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,10 +7,7 @@
 % Copyright 2017 Herbert Voss <hvoss at tug.org>
 %                Rolf Niepraschk <Rolf.Niepraschk at gmx.de>
 %%
-\def\xltabular at version{0.03 }
-\ProvidesPackage{xltabular}
-          [2017/10/01 v\xltabular at version `xltabular' package (hv,rn)]
-
+\ProvidesPackage{xltabular}[2017/10/24 v0.04 `xltabular' package (hv,RN)]
 \RequirePackage{tabularx}
 \let\ORIGi at tabularx=\tabularx
 \let\ORIGi at endtabularx=\endtabularx
@@ -21,7 +18,6 @@
 \let\ORIGii at TX@endtabularx=\TX at endtabularx
 %
 \let\ORIG at longtable=\longtable
-\let\ORIG at LT@c at ption=\LT at c@ption
 %
 % restore original tabularx
 \let\tabularx=\ORIGi at tabularx
@@ -31,30 +27,36 @@
 % define a new tabularx like the one from "ltablex" 
 %
 \newenvironment{xltabular}[1][x]
-  {\if l#1%
-     \LTleft\z@ \LTright\fill
-   \else\if r#1%
+{\if l#1%
+    \LTleft\z@ \LTright\fill
+ \else\if r#1%
     \LTleft\fill \LTright\z@
-   \else\if c#1%
+ \else\if c#1%
     \LTleft\fill \LTright\fill
-   \fi\fi\fi
-   \let\TX at endtabularx=\ORIGii at TX@endtabularx
-   \let\endtabularx\endxltabular
-   \ORIGii at tabularx}
-  {\def\@currenvir{tabularx}}
-%
+ \fi\fi\fi
+ \let\TX at endtabularx=\ORIGii at TX@endtabularx
+ \let\endtabularx\endxltabular
+ \ORIGii at tabularx}
+{\def\@currenvir{tabularx}}
+
 % In "longtable" increase the counter "table" only if "\caption" is used 
-
-\def\LT at c@ption#1{%
-  \noalign{%
-    \ifx#1\@firstofone
-      \refstepcounter{table}%
-    \fi}%
-  \ORIG at LT@c at ption{#1}%
+\AtBeginDocument{%
+  \let\ORIG at LT@capti at n=\LT at capti@n
+  \def\LT at capti@n{%
+    \@ifstar{\ORIG at LT@capti at n*}{%
+      % We use the following instead of "\refstepcounter"
+      \stepcounter{\LTcaptype}%
+      % We are inside a group: edef -> xdef
+      \protected at xdef\@currentlabel
+        {\csname p@\LTcaptype\endcsname\csname the\LTcaptype\endcsname}%    
+      \ORIG at LT@capti at n
+    }%
+  }%
 } 
 %
+\providecommand*\LTcaptype{table}% support of package "caption"
 \def\longtable{%
-  \addtocounter{table}\m at ne
+  \addtocounter{\LTcaptype}\m at ne
   \ORIG at longtable
 }  
 %



More information about the tex-live-commits mailing list