From 3bb54b52e03f096fcfb7d0001b607df6336a97a4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 7 Mar 2007 18:06:40 +0000 Subject: ctable 1.9 (5mar07) git-svn-id: svn://tug.org/texlive/trunk@4011 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ctable/ctable.sty | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/ctable/ctable.sty b/Master/texmf-dist/tex/latex/ctable/ctable.sty index 02ed078f5ac..8fa817c192c 100644 --- a/Master/texmf-dist/tex/latex/ctable/ctable.sty +++ b/Master/texmf-dist/tex/latex/ctable/ctable.sty @@ -23,7 +23,7 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{ctable} - [2006/10/12 v1.8 ctable package] + [2007/03/04 v1.9 ctable package] \RequirePackage{xspace,color,xkeyval,array,tabularx,booktabs,rotating} \def\NN{\tabularnewline} \def\FL{\toprule} @@ -31,6 +31,8 @@ \def\LL{\NN\bottomrule} \def\@ctblfgcolor#1 #2 #3={\definecolor{@ctblframefg}{rgb}{#1,#2,#3}} \def\@ctblbgcolor#1 #2 #3={\definecolor{@ctblframebg}{rgb}{#1,#2,#3}} +\let\@cttextsuperscript\@textsuperscript +\def\@ctcopy#1{\footnotesize #1} \newdimen\@ctblframesep \newdimen\@ctblframerule \newdimen\@ctblwidth @@ -67,6 +69,7 @@ \define@key{ctbl}{framefg}{\@ctblfgcolor#1=}% \define@key{ctbl}{framebg}{\@ctblbgcolor#1=}% \define@key{ctbl}{captionskip}{\@ctblcaptionskip=#1}% +\define@key{ctbl}{nosuper}[]{\let\@cttextsuperscript\@ctcopy}% \def\@ctblCaption{ \ifx\@ctblcap\empty\let\@ctblcap\@ctblcaption\fi \ifx\@ctblcaption\empty\else @@ -79,9 +82,9 @@ \fcolorbox{#1}{#2}{\fboxsep\@ctbloldsep\fboxrule\@ctbloldrule #3}% } \newcommand{\tnote}[2][a]{% - \hbox{\@textsuperscript{\normalfont\textit{#1}}}\NN} + \hbox{\@cttextsuperscript{\normalfont\textit{#1}}}\NN} \newcommand{\tmark}[1][a]{% - \hbox{\@textsuperscript{\normalfont\textit{#1\xspace}}}} + \hbox{\@cttextsuperscript{\normalfont\textit{#1\xspace}}}} \newcommand{\ctable}[4][]{% \def\@ctbltaborfig{table}% \def\@ctblalign {center}% @@ -149,8 +152,8 @@ \fi \fi \@ctblw=\wd\ctbl@t - \ifdim\@ctblmincapwidth=0pt\@ctblww=\@ctblw\else% - \settowidth{\@ctblww}{Table 1: \@ctblcaption} + \ifdim\@ctblmincapwidth<\@ctblw\@ctblww=\@ctblw\else% + \settowidth{\@ctblww}{\tablename\ \thetable: \@ctblcaption} \ifdim\@ctblww>\@ctblmincapwidth\@ctblww=\@ctblmincapwidth\fi% \fi \@ctblbegin -- cgit v1.2.3