summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ctable
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-26 22:16:59 +0000
committerKarl Berry <karl@freefriends.org>2011-08-26 22:16:59 +0000
commit87f1685a45c8f23851013817d1ead13ff8c20677 (patch)
tree4a98703ca02562e84e35589e6e68b8ab2737d15e /Master/texmf-dist/source/latex/ctable
parent48c3c8df1244c0c6ee27db4ee499ea2595100537 (diff)
ctable (24aug11)
git-svn-id: svn://tug.org/texlive/trunk@23702 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ctable')
-rw-r--r--Master/texmf-dist/source/latex/ctable/ctable.dtx58
1 files changed, 48 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/ctable/ctable.dtx b/Master/texmf-dist/source/latex/ctable/ctable.dtx
index 2799a202787..9f38257fa7d 100644
--- a/Master/texmf-dist/source/latex/ctable/ctable.dtx
+++ b/Master/texmf-dist/source/latex/ctable/ctable.dtx
@@ -19,7 +19,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{ctable}
%<*package>
- [2011/05/01 v1.19 ctable package]
+ [2011/08/24 v1.20 ctable package]
%</package>
%
%<*driver>
@@ -79,7 +79,7 @@
%</driver>
% \fi
%
-% \CheckSum{551}
+% \CheckSum{567}
%
% \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
@@ -166,6 +166,9 @@
% }
% \changes{v1.19}{2011/05/01}{sideways option did not work anymore; corrected
% }
+% \changes{v1.20}{2011/08/24}{added options captionsleft, captionsright, captionsinside;
+% (for setupctable only)
+% }
%
% \GetFileInfo{ctable.dtx}
%
@@ -221,6 +224,12 @@
% made to have them make contact with horizontal rules.
%
% \section{Usage}
+% \DescribeMacro{\setupctable}
+% |\ctable| defaults can be set, either in the preamble or in the body,
+% with:\\
+%
+% |\setupctable{options} % key=value,...|\\
+%
% \DescribeMacro{\ctable}
% |\ctable| is called with 4 parameters, of which the first is optional: \\
%
@@ -241,12 +250,6 @@
% put the caption at the bottom of the float instead of on top of it.
% See also: |topcap|.
%
-% \DescribeMacro{captionskip=...\hfill}
-% moves the caption relative to the table; the default is |0ex|, which puts
-% captions at their default \LaTeX\ positions: a top caption's baseline at
-% |1ex| above the top rule position of the table and a bottom caption's
-% baseline at |4ex| below the bottom rule position.
-%
% \DescribeMacro{caption=...\hfill}
% table caption; the braces are needed only if your caption contains a
% comma or an equals sign.
@@ -257,6 +260,30 @@
% given an empty value, no entry in the |\listoftables| will be made. This
% may be useful, for example, with the |continued| option.
%
+% \DescribeMacro{captionskip=...\hfill}
+% moves the caption relative to the table; the default is |0ex|, which puts
+% captions at their default \LaTeX\ positions: a top caption's baseline at
+% |1ex| above the top rule position of the table and a bottom caption's
+% baseline at |4ex| below the bottom rule position.
+%
+% \DescribeMacro{captionsleft\hfill} This option is defined for
+% |\setupctable| only, and it is effective only where the |sideways| option
+% is used. After |\setupctable{captionsleft}| all tables typeset with the
+% |sideways| option will have their captions at the left.
+%
+% \DescribeMacro{captionsright\hfill} This option is defined for
+% |\setupctable| only, and it is effective only where the |sideways| option
+% is used. After |\setupctable{captionsright}| all tables typeset with the
+% |sideways| option will have their captions at the right.
+%
+% \DescribeMacro{captionsinside\hfill}
+% This option is defined for |\setupctable| only, it is the default, and it is effective
+% only where the |sideways| option is used. After
+% |\setupctable{captionsinside}| all tables typeset with the |sideways|
+% option will have their captions at the left in one-sided documents. In
+% twosided documents, captions will be on the left for odd-numbered pages
+% and on the right for even-numbered pages.
+%
% \DescribeMacro{center\hfill}
% center the table in the available text width; this is the default.
% See also: |left|, |right|.
@@ -646,7 +673,6 @@
% \ROW{Y}{s06a}{06a}
% \ROW{B}{s06b}{06b}
%
-% \newpage
% \subsection{\ttfamily\bfseries framerule}
% The following examples show the use of frames and backgrounds. Every table
% is typeset by |ctable| with a frame around it, but the frame is, by default,
@@ -695,6 +721,13 @@
% \ROW{B}{s01b}{01b}
%
% \newpage
+% \subsection{\ttfamily\bfseries doinside}
+% The argument of doinside is supposed to be a command to be run inside, just before the tabular or tabularx
+% environment. You can use this, for example, for the adjustment of the
+% font size with |\small|:
+% \medskip\\
+% \ROW{Y}{s14a}{14a}
+%
% \subsection{\ttfamily\bfseries sideways}
% The |sideways| option creates a landscape table with its head pointing at the
% spine\,---\,when the documentclass' twoside option has been used, that is. The
@@ -754,6 +787,11 @@
% \begin{macrocode}
\define@key{suctbl}{botcap}[]{\let\@defaultctblbotcap\@ctbltrue}
+\define@key{suctbl}{captionsinside}[]{\def\rot@LR{-1}
+ \if@twoside\@rot@twosidetrue
+ \else\@rot@twosidefalse\fi}
+\define@key{suctbl}{captionsleft}[]{\@rot@twosidefalse\def\rot@LR{-1}}
+\define@key{suctbl}{captionsright}[]{\@rot@twosidefalse\def\rot@LR{0}}
\define@key{suctbl}{captionskip}{\@defaultctblcaptionskip=#1}
\define@key{suctbl}{center}[]{\let\@defaultctblalign\centering}
\define@key{suctbl}{continued}{\def\@defaulttextcontinued{#1}}
@@ -1017,4 +1055,4 @@
% \end{macrocode}
% \Finale
\endinput
-$Id: ctable.dtx,v 1.73 2011-04-30 20:21:06 wybo Exp $
+$Id: ctable.dtx,v 1.75 2011-08-24 14:01:54 wybo Exp $