summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/captdef
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-07 16:57:06 +0000
committerKarl Berry <karl@freefriends.org>2010-03-07 16:57:06 +0000
commit913673f8f33d20657d1550634367f88adcc7aa50 (patch)
treef1413a662c99e66cf81dc1151d0101b794114ca9 /Master/texmf-dist/tex/latex/captdef
parent0a55dde58294ff3b56499456a092a4e47d7f5e32 (diff)
captdef doc update (6mar10)
git-svn-id: svn://tug.org/texlive/trunk@17353 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/captdef')
-rw-r--r--Master/texmf-dist/tex/latex/captdef/captdef.sty32
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/captdef/captdef.sty b/Master/texmf-dist/tex/latex/captdef/captdef.sty
new file mode 100644
index 00000000000..b4dbcb546aa
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/captdef/captdef.sty
@@ -0,0 +1,32 @@
+%
+% captdef.sty: a trivial package to define captions that don't have
+% to be in floats.
+%
+% Author: Robin Fairbairns <rf10@cam.ac.uk>
+% Conceived ages ago, but written 1998/12/17
+%
+% This program can redistributed and/or modified under the terms
+% of the LaTeX Project Public License Distributed from CTAN
+% archives in directory macros/latex/base/lppl.txt; either
+% version 1 of the License, or (at your option) any later version.
+%
+% Usage: \DeclareCaption{command}{counter}
+%
+% declare `command' to produce a caption which uses `counter' for its
+% numbering.
+%
+% The package then goes on to use this command to declare the most
+% commonly required pair of non-float captions, \figcaption and
+% \tabcaption
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{captdef}[1998/12/17 non-floating captions]
+
+\newcommand{\DeclareCaption}[2]{%
+ \def#1{\def\@captype{#2}\caption}%
+}
+
+\DeclareCaption{\figcaption}{figure}
+\DeclareCaption{\tabcaption}{table}
+
+\endinput