summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctable
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-03-07 18:06:40 +0000
committerKarl Berry <karl@freefriends.org>2007-03-07 18:06:40 +0000
commit3bb54b52e03f096fcfb7d0001b607df6336a97a4 (patch)
tree39c8d14a2e45ceccd61698aa48cfe403e60416a7 /Master/texmf-dist/tex/latex/ctable
parent985a9d981dc301403c0a79353e78499c3365a629 (diff)
ctable 1.9 (5mar07)
git-svn-id: svn://tug.org/texlive/trunk@4011 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctable')
-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