summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctable/ctable.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctable/ctable.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ctable/ctable.sty13
1 files changed, 8 insertions, 5 deletions
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}}}&#2\NN}
+ \hbox{\@cttextsuperscript{\normalfont\textit{#1}}}&#2\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