summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nonfloat/nonfloat.sty
blob: 1bc074ceb0671f760dd429661954d2f50c0ea208 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
%%
%% This is file `nonfloat.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% nonfloat.dtx  (with options: `style')
%% 
%% Copyright (C) 1999 by Kai Rascher. All rights reserved.
%% 
%% 
%% This file is part of the nonfloat package
%% 
%% IMPORTANT NOTICE:
%% 
%% You are not allowed to change this file.  You may however copy this file
%% to a file with a different name and then change the copy.
%% 
%% You are NOT ALLOWED to distribute this file alone.  You are NOT ALLOWED
%% to take money for the distribution or use of this file (or a changed
%% version) except for a nominal charge for copying etc.
%% 
%% You are allowed to distribute this file under the condition that it is
%% distributed together with all files mentioned below.
%% 
%% If you receive only some of these files from someone, complain!
%% 
%% Error Reports in case of UNCHANGED versions to
%% 
%%                           Kai Rascher
%%                           Am Remenhof 17a
%%                           38104 Braunschweig
%%                           Germany
%%                  E-Mail:  <rascher@ifn.ing.tu-bs.de>
%% 
\def\filedate{1999/07/05}
\def\fileversion{1.0}
\def\filename{nonfloat.sty}
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\RequirePackage{ifthen}[1994/06/01]
\newcommand{\topcaption}{%
  \setlength{\@tempdima}{\abovecaptionskip}%
  \setlength{\abovecaptionskip}{\belowcaptionskip}%
  \setlength{\belowcaptionskip}{\@tempdima}%
  \caption%
}
\newcommand{\figcaption}{\def\@captype{figure}\caption}
\newcommand{\tabcaption}{\def\@captype{table}\topcaption}
\renewenvironment{figure}[1][]{%
  \ifthenelse{\equal{#1}{}}{%
    \@float{figure}%
  }{%
    \@float{figure}[#1]%
  }%
  \centering%
}{%
  \end@float%
}
\renewenvironment{table}[1][]{%
  \ifthenelse{\equal{#1}{}}{%
    \@float{table}%
  }{%
    \@float{table}[#1]%
  }%
  \centering%
  \setlength{\@tempdima}{\abovecaptionskip}%
  \setlength{\abovecaptionskip}{\belowcaptionskip}%
  \setlength{\belowcaptionskip}{\@tempdima}%
}{%
  \end@float%
}
\renewcommand{\textfraction}{0.15}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.65}
\renewcommand{\floatpagefraction}{0.60}
\setlength{\@fptop}{0pt}
\setlength{\@fpsep}{20pt plus 2pt minus 2pt}
\setlength{\@fpbot}{0pt}
\newenvironment{narrow}[2]{%
  \begin{list}{}%
    {%
      \setlength{\topsep}{0pt}%
      \setlength{\leftmargin}{#1}%
      \setlength{\rightmargin}{#2}%
      \setlength{\listparindent}{\parindent}%
      \setlength{\itemindent}{\parindent}%
      \setlength{\parskip}{\parskip}%
    }%
  \item[]}%
  {\end{list}}%
\endinput
%%
%% End of file `nonfloat.sty'.