summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ctable/ctable.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/ctable/ctable.dtx')
-rw-r--r--Master/texmf-dist/source/latex/ctable/ctable.dtx27
1 files changed, 18 insertions, 9 deletions
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 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{ctable}
%<*package>
- [2006/10/12 v1.8 ctable package]
+ [2007/03/04 v1.9 ctable package]
%</package>
%
%<*driver>
\documentclass[a4paper]{ltxdoc}
-\usepackage{carom,txfonts,ctable}
+\usepackage{carom,txfonts,ctable,makeidx}
\usepackage[
verbose,
pdftex,
@@ -46,7 +46,7 @@
%</driver>
% \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}}}&#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}%
@@ -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 $