diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctable/ctable.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctable/ctable.sty | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/ctable/ctable.sty b/Master/texmf-dist/tex/latex/ctable/ctable.sty index 2434838dcbc..7aa8c10e1c9 100644 --- a/Master/texmf-dist/tex/latex/ctable/ctable.sty +++ b/Master/texmf-dist/tex/latex/ctable/ctable.sty @@ -22,7 +22,8 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{ctable} - [2013/05/24 v1.25 Easy, key=value directed, option-rich, typesetting of floats] + [2013/06/15 v1.26 ctable package for \ + flexible typesetting of table and figure floats using key/value directives] \RequirePackage{ifpdf,xcolor,xkeyval,array,tabularx,booktabs,rotating} \ifpdf \RequirePackage{transparent} @@ -192,6 +193,7 @@ } \newcommand{\tmark}[1][a]{% \hbox{\textsuperscript{\normalfont\textit{#1}}}} +\newdimen\@ctblcurftwidth \newcommand{\ctable}[4][]{% \let\@ctbltaborfig \@defaultctbltaborfig \let\@ctblalign \@defaultctblalign @@ -302,18 +304,18 @@ \centering{\usebox\ctbl@t} % insert the tabular \def\@ctblfootnotes{#3}% \ifx#3\empty\else{% append footnotes, if any + \@ctblcurftwidth=\ifdim\@ctblfooterwidth=-1pt\@ctblw\else + \ifdim\@ctblfooterwidth=0pt\hsize\else + \@ctblfooterwidth\fi\fi \footnotesize \ifx\@ctblnotespar\@ctbltrue% \\[.2ex] - \begin{minipage}{\hsize}% + \begin{minipage}{\@ctblcurftwidth}% #3% \end{minipage}% \else% \\ - \begin{tabularx}{\ifdim\@ctblfooterwidth=-1pt\@ctblw\else - \ifdim\@ctblfooterwidth=0pt\hsize\else - \@ctblfooterwidth\fi\fi - }{r@{\,}>{\raggedright}X} + \begin{tabularx}{\@ctblcurftwidth}{r@{\,}>{\raggedright}X} #3% \end{tabularx}% \fi |