blob: c59b73e878510bbd8866cce79068fdde278f9fa2 (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
%%
%% This is file `rotfloat.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rotfloat.dtx (with options: `package')
%%
%% Copyright (c) 1995-2004 Axel Sommerfeldt (rotfloat@sommerfeldt.net)
%%
%% This file is part of the rotfloat package.
%% ------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{rotfloat}[2004/01/04 v1.2 Combining float+rotating package (AS)]
\RequirePackage{float}[1994/06/20] % >= version 1.2
\RequirePackageWithOptions{rotating}%[1995/01/06] % >= version 2.6
\ifx\@float@HH\undefined
\PackageInfo{rotfloat}{float package v1.2 detected}
\let\rotfloat@restyle\restylefloat
\renewcommand*\restylefloat[1]{%
\rotfloat@restyle{#1}%
\@namedef{sideways#1}{\rotfloat@float{#1}}%
\expandafter\let\csname endsideways#1\endcsname\float@end
\ifx\@rotdblfloat\@undefined
\else
\@namedef{sideways#1*}{\rotfloat@dblfloat{#1*}}%
\expandafter\let\csname endsideways#1*\endcsname\float@dblend
\fi}
\newcommand\rotfloat@float{%
\textwidth\textheight
\columnwidth\textheight
\let\rotfloat@@makebox\float@makebox
\let\float@makebox\rotfloat@makebox
\@nameuse}
\newcommand\rotfloat@dblfloat{%
\textwidth\textheight
\columnwidth\textheight
\let\rotfloat@@makebox\float@makebox
\let\float@makebox\rotdblfloat@makebox
\@nameuse}
\let\rotfloat@HH\@HHfloat
\def\@HHfloat#1{%
\expandafter\let\csname endsideways#1\endcsname\rotfloat@endH
\let\end@float\relax
\rotfloat@HH{#1}}
\newcommand\rotfloat@endH{%
\if@flstyle
\else
\end@rotfloat
\fi
\float@endH}
\newcommand\rotfloat@makebox{%
\vbox{%
\def\@float##1[##2]{}\let\end@float\relax
\@rotfloat{}[]%
\rotfloat@@makebox
\end@rotfloat}}
\newcommand\rotdblfloat@makebox{%
\vbox{%
\def\@float##1[##2]{}\let\end@dblfloat\relax
\@rotdblfloat{}[]%
\rotfloat@@makebox
\end@rotdblfloat}}
\else
\PackageInfo{rotfloat}{float package v1.3 detected}
\let\rotfloat@restyle\float@restyle
\renewcommand*\float@restyle[1]{%
\rotfloat@restyle{#1}%
\@namedef{sideways#1}{\rotfloat@float{#1}}%
\expandafter\let\csname endsideways#1\endcsname\float@end
\ifx\@rotdblfloat\@undefined
\else
\@namedef{sideways#1*}{\rotfloat@dblfloat{#1*}}%
\expandafter\let\csname endsideways#1*\endcsname\float@dblend
\fi}
\newcommand\rotfloat@float{%
\textwidth\textheight
\columnwidth\textheight
\let\rotfloat@@makebox\float@makebox
\let\float@makebox\rotfloat@makebox
\@nameuse}
\newcommand\rotfloat@dblfloat{%
\textwidth\textheight
\columnwidth\textheight
\let\rotfloat@@makebox\float@makebox
\let\float@makebox\rotdblfloat@makebox
\@nameuse}
\let\rotfloat@HH\@float@HH
\def\@float@HH#1{%
\expandafter\let\csname endsideways#1\endcsname\rotfloat@endH
\let\end@float\relax
\rotfloat@HH{#1}}
\newcommand\rotfloat@endH{%
\if@flstyle
\else
\end@rotfloat
\fi
\float@endH}
\newcommand*\rotfloat@makebox[1]{%
\vbox{%
\def\@float##1[##2]{}\let\end@float\relax
\@rotfloat{}[]%
\rotfloat@@makebox{#1}%
\end@rotfloat}}
\newcommand*\rotdblfloat@makebox[1]{%
\vbox{%
\def\@float##1[##2]{}\let\end@dblfloat\relax
\@rotdblfloat{}[]%
\rotfloat@@makebox{#1}%
\end@rotdblfloat}}
\fi
\endinput
%%
%% End of file `rotfloat.sty'.
|