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/doc/latex/ctable/ctable.pdf | Bin 95206 -> 91635 bytes Master/texmf-dist/source/latex/ctable/ctable.dtx | 27 +++++++++++++++-------- Master/texmf-dist/tex/latex/ctable/ctable.sty | 13 ++++++----- Master/texmf-dist/tpm/ctable.tpm | 8 +++---- 4 files changed, 30 insertions(+), 18 deletions(-) diff --git a/Master/texmf-dist/doc/latex/ctable/ctable.pdf b/Master/texmf-dist/doc/latex/ctable/ctable.pdf index dc6188376c7..af3adf8973a 100644 Binary files a/Master/texmf-dist/doc/latex/ctable/ctable.pdf and b/Master/texmf-dist/doc/latex/ctable/ctable.pdf differ diff --git a/Master/texmf-dist/source/latex/ctable/ctable.dtx b/Master/texmf-dist/source/latex/ctable/ctable.dtx index ecd989cd471..dc7eea5a402 100644 --- a/Master/texmf-dist/source/latex/ctable/ctable.dtx +++ b/Master/texmf-dist/source/latex/ctable/ctable.dtx @@ -23,12 +23,12 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{ctable} %<*package> - [2006/10/12 v1.8 ctable package] + [2007/03/04 v1.9 ctable package] % % %<*driver> \documentclass[a4paper]{ltxdoc} -\usepackage{carom,txfonts,ctable} +\usepackage{carom,txfonts,ctable,makeidx} \usepackage[ verbose, pdftex, @@ -46,7 +46,7 @@ % % \fi % -% \CheckSum{321} +% \CheckSum{335} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -90,6 +90,9 @@ % mincapwidth option added % Moved newdimen definition outside ctable macro % } +% \changes{v1.9}{2007/03/04}{Added option nosuper; +% corrected incorrect positioning when table is wider than +% mincapwidth } % % \GetFileInfo{ctable.dtx} % @@ -205,6 +208,9 @@ % when the |twocolumn| option or the |\twocolumn| % command is active.\NN % +% |nosuper| & in the footnote table, typeset footnote markers on +% the line, instead of superscripted.\NN +% % |framerule=...|& draw a frame around the table with the given rule % thickness. The default is |0pt|, so that no frame % will be seen.\NN @@ -437,6 +443,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 @@ -484,6 +492,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}% % \end{macrocode} % a caption will only be generated if the \textsl{caption} option was used: % \begin{macrocode} @@ -499,9 +508,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}% @@ -607,12 +616,12 @@ % \begin{macrocode} \@ctblw=\wd\ctbl@t % \end{macrocode} -% If mincapwidth was set, +% If mincapwidth was set wider than the table, % make only as wide as needed for the caption so that any footnotes % stay within the caption width % \begin{macrocode} - \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 % \end{macrocode} @@ -638,4 +647,4 @@ % \end{macrocode} % \Finale \endinput -$Id: ctable.dtx,v 1.36 2006/10/12 11:17:43 wybo Exp $ +$Id: ctable.dtx,v 1.41 2007/03/04 16:06:51 wybo Exp $ 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 diff --git a/Master/texmf-dist/tpm/ctable.tpm b/Master/texmf-dist/tpm/ctable.tpm index cf0014ff88e..89c2d506a79 100644 --- a/Master/texmf-dist/tpm/ctable.tpm +++ b/Master/texmf-dist/tpm/ctable.tpm @@ -3,7 +3,7 @@ ctable Package - 2006/10/13 19:46:38 + 2007/03/04 16:07:00 1.5 rahtz Easily typeset centered tables. @@ -19,12 +19,12 @@ the defaults and offering a route for future extensions. 130181 - + texmf-dist/tex/latex/ctable/ctable.sty texmf-dist/tpm/ctable.tpm - texmf-dist/doc/latex/ctable/ctable.pdf - + texmf-dist/doc/latex/ctable/ctable.pdf + texmf-dist/source/latex/ctable/ctable.dtx texmf-dist/source/latex/ctable/ctable.ins -- cgit v1.2.3