File: capt-of.sty

package info (click to toggle)
tetex-src 3.0.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 122,292 kB
  • ctags: 2,709
  • sloc: makefile: 2,323; perl: 1,820; sh: 1,378; lisp: 448; python: 335; xml: 175; sed: 138; ansic: 138; yacc: 52
file content (30 lines) | stat: -rw-r--r-- 1,409 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%  CAPT-OF.STY v0.1
%  Copyright 1996, 1999 Robin Fairbairns (rf10@cam.ac.uk)
%
%   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.
%
% This short package permits you to have things with apparently
% `proper' captions in the body of your text.  This is sometimes
% convenient in documents that only have small `figure's or `table's
% (or small numbers of them) and you don't need to hassle yourself
% dealing with floats (\begin{figure|table}...)
%
% Usage: \captionof{type}[move]{caption}
%        type is `figure' or `table' (or some type you've defined with
%             float.sty)
%        move is the optional moving argument of \caption (the thing
%             that goes to the listoftables/figures)
%        caption is the text of the caption
%
% It's probably best to use \captionof within an enclosing group
% (e.g., \begin{center} fig \captionof{figure}{blah blah} \end{center})
%
% CAVEAT: If you _do_ have `real' (floating) figures or tables in your
% document, you may find this package causes the figures\tables to get
% out of order.  You are (as far as I'm concerned) `on your own' if
% you use this package in such circumstances.

\newcommand\captionof[1]{\def\@captype{#1}\caption}