summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ftcap
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-02 01:05:42 +0000
committerKarl Berry <karl@freefriends.org>2010-03-02 01:05:42 +0000
commitf447358254eabcd074466b1b9b935c9e4423c9fe (patch)
tree6a9af2ed722ca3b89993c953b6ec798693bab15e /Master/texmf-dist/tex/latex/ftcap
parente19245a4500a3577f89f2f427448faa35de2e795 (diff)
ftcap doc update, own package (1mar10)
git-svn-id: svn://tug.org/texlive/trunk@17275 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ftcap')
-rw-r--r--Master/texmf-dist/tex/latex/ftcap/ftcap.sty75
1 files changed, 75 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ftcap/ftcap.sty b/Master/texmf-dist/tex/latex/ftcap/ftcap.sty
new file mode 100644
index 00000000000..a9d190486f1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ftcap/ftcap.sty
@@ -0,0 +1,75 @@
+% hans.steffani@e-technik.tu-chemnitz.de (Hans Friedrich Steffani)
+% Copyright (C) 1999 Hans Friedrich Steffani
+
+% This program is free software; you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation; either version 2 of the License, or
+% (at your option) any later version.
+
+% This program is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+
+% You should have received a copy of the GNU General Public License
+% along with this program; see the file COPYING. If not, write to
+% the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+% Boston, MA 02111-1307, USA.
+
+
+
+% Version: 1.4 Die optionalen Parameter von table sollten nun gehen
+% Version: 1.3 Einige Versuche rueckgaengig gemacht
+% Version: 1.2 Es heisst nun \ProvidesPackage{ftcap} ohne sty
+% ausserdem stimmt das Datum
+% Version: 1.1
+
+
+\ProvidesPackage{ftcap}[1999/10/16 ..captionskip richtig setzen]
+
+% Lamport places the \caption below tables and figures. That is ok
+% for figures but not for tables, as tables may be longer than one
+% page. In this case the reader has to search for the \verb|\caption|
+% until he finds it after a couple of pages. If you have the
+% \verb|\caption| at the top of the table there is no such problem.
+% And as the \caption of a table should always be at the same place,
+% we have to place the \verb|\caption| \emph{always} at the top of
+% the table If you want \verb|\caption| above tabular, you cannot
+% use the normal \verb|\caption|, because the spaces above and below
+% \verb|\caption| are wrong. Some stys (e.g. topcapt.sty) recommend
+% to have a special makro like \verb|\topcaption| for captions above
+% an object. I prefer to have ONE caption and changing the spaces
+% whenever we are within a table environment. That's what this sty
+% does.
+
+% Lamport plaziert seine \verb|\caption| ueber Tabellen und Bildern.
+% Bei Bildern ist das ok. Bei mehrseitigen Tabellen muss man
+% allerdings nach der \verb|\caption| suchen, so dass es guenstiger
+% erscheint, die \verb|\caption| \emph{oberhalb} der Tabelle zu
+% setzen. Und das sollte natuerlich um der Einheitlichkeit willen
+% dann auch bei kuerzeren Tabellen so sein.
+% Wenn die \verb|\caption| bei Tabellen ueber der Tabelle, bei
+% Bildern aber daruntersteht, braucht man verschiedene Werte fuer
+% \verb|\abovecaptionskip| und \verb|\belowcaptionskip|.
+% Gelegentlich werden dazu zwei makros, \verb|\tablecaption und
+% \verb|\figurecaption| oder auch \verb|\topcaption| vorgeschlagen,
+% aber das finde ich umstaendlich und fehleranfaellig.
+% \verb|\caption| ist \verb|\caption| und der Nutzer soll sich nicht
+% um Details kuemmern. Daher also:
+
+% from book.cls
+%% \renewenvironment{figure}
+%% {\@float{figure}}
+%% {\end@float}
+
+%% \newenvironment{table}
+%% {\@float{table}}
+%% {\end@float}
+
+\newcommand{\@ldtable}{}
+\let\@ldtable\table
+\renewcommand{\table}{%
+ \setlength{\@tempdima}{\abovecaptionskip}%
+ \setlength{\abovecaptionskip}{\belowcaptionskip}%
+ \setlength{\belowcaptionskip}{\@tempdima}%
+ \@ldtable}%