File: floats.dtx

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (229 lines) | stat: -rw-r--r-- 7,741 bytes parent folder | download | duplicates (6)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229

% \iffalse
%%% From File: floats.dtx
% \fi
%
%    \begin{macrocode}

%<*floats>
%    \end{macrocode}
%
% \subsection{ }
% \subsubsection{     }
% \paragraph{ }
%   \begin{itemize}
%   \item    ,  
%  (   ---  ).
%   \DescribeCounter{topnumber}
%    \begin{macrocode}
\setcounter{topnumber}{2}
%    \end{macrocode}
%   \item    ,  
%  (   ---  ).
%   \DescribeCounter{bottomnumber}
%    \begin{macrocode}
\setcounter{bottomnumber}{1}
%    \end{macrocode}
%   \item    , 
%     (   ---  ).
%   \DescribeCounter{totalnumber}
%    \begin{macrocode}
\setcounter{totalnumber}{3}
%    \end{macrocode}
%   \item     :   
%       ,    
%   
%    \begin{macrocode}
\setcounter{dbltopnumber}{2}
%    \end{macrocode}
%   \end{itemize}
%
% \paragraph{ ,   }
%   \begin{itemize}
%   \item     ,   
%    ,   .
%   \DescribeMacro{\topfraction}\index{!\verb*+\topfraction+}
%    \begin{macrocode}
\renewcommand\topfraction{.7}
%    \end{macrocode}
%   \item     ,   
%    ,   .
%   \DescribeMacro{\bottomfraction}\index{!\verb*+\bottomfraction+}
%    \begin{macrocode}
\renewcommand\bottomfraction{.3}
%    \end{macrocode}
%   \item   ,    ,  
%        ( , 
%   \LaTeX{}'
%         
%     |p|,   ).
%   \DescribeMacro{\textfraction}\index{!\verb*+\textfraction+}
%    \begin{macrocode}
\renewcommand\textfraction{.2}
%    \end{macrocode}
%   \item ,  ,    
%    .
%   \DescribeMacro{\floatpagefraction}\index{!\verb*+\floatpagefraction+}
%    \begin{macrocode}
\renewcommand\floatpagefraction{.5}
%    \end{macrocode}
%   \item ,  |\topfraction|,    ()
%         .
%   \DescribeMacro{\dbltopfraction}\index{!\verb*+\dbltopfraction+}
%    \begin{macrocode}
\renewcommand\dbltopfraction{.7}
%    \end{macrocode}
%   \item ,  |\floatpagefraction|,   
%   ()       .
%   \DescribeMacro{\dblfloatpagefraction}\index{!\verb*+\dblfloatpagefraction+}
%    \begin{macrocode}
\renewcommand\dblfloatpagefraction{.5}
%    \end{macrocode}
%   \end{itemize}
%
% \subsubsection{  }
%
% \DescribeMacro{\abovecaptionskip}\index{!\verb*+\abovecaptionskip+}
%    .
%    \begin{macrocode}
\Dis@deflength\abovecaptionskip{10\p@}
%    \end{macrocode}
% \DescribeMacro{\belowcaptionskip}\index{!\verb*+\belowcaptionskip+}
%    .
%    \begin{macrocode}
\Dis@deflength\belowcaptionskip{0\p@}
%    \end{macrocode}
% \DescribeMacro{\captionlabeldelim}\index{!\verb*+\captionlabeldelim+}
%   (  + )   .
%    \begin{macrocode}
\newcommand\captionlabeldelim{.}
%    \end{macrocode}
% \DescribeMacro{\captionfont}\index{!\verb*+\captionfont+}
%  .
%    \begin{macrocode}
\newcommand\captionfont{\small}
%    \end{macrocode}
% \DescribeMacro{\captionlabelfont}\index{!\verb*+\captionlabelfont+}
%  .
%    \begin{macrocode}
\newcommand\captionlabelfont{\small\selectfont}
%    \end{macrocode}
% \DescribeMacro{\@makecaption}\index{!\verb+"\"@makecaption+}
%  ,  .
%    \begin{macrocode}
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{{\captionlabelfont #1\captionlabeldelim} {\captionfont #2}}%
  \ifdim \wd\@tempboxa >\hsize
    {{\captionlabelfont  #1\captionlabeldelim} {\captionfont #2}}\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip
}

%    \end{macrocode}
%
% \subsubsection{figure}
%
% \DescribeMacro{\thefigure}\index{!\verb*+\thefigure+}
%  .
%    \begin{macrocode}
\renewcommand\thefigure{\ifnum \c@chapter>\z@\thechapter.\fi\@arabic\c@figure}

%    \end{macrocode}
% \DescribeMacro{\fps@figure}
%      |figure|.
%    \begin{macrocode}
\def\fps@figure{tbp}
%    \end{macrocode}
% \DescribeMacro{\ftype@figure}
%     |figure|.
%    \begin{macrocode}
\def\ftype@figure{1}
%    \end{macrocode}
% \DescribeMacro{\ext@figure}
%     .
%    \begin{macrocode}
\def\ext@figure{lof}
%    \end{macrocode}
% \DescribeMacro{\fnum@figure}
%    (.~1).
%    \begin{macrocode}
\def\fnum@figure{\figurename~\thefigure}

%    \end{macrocode}
%
% \subsubsection{table}
%
% \DescribeMacro{\thetable}\index{!\verb*+\thetable+}
%  .
%    \begin{macrocode}
\renewcommand\thetable{\ifnum \c@chapter>\z@\thechapter.\fi\@arabic\c@table}

%    \end{macrocode}
%
% \DescribeMacro{\arraycolsep}\index{!\verb*+\arraycolsep+}
%     |array|.
%    \begin{macrocode}
\setlength\arraycolsep{5\p@}
%    \end{macrocode}
% \DescribeMacro{\tabcolsep}\index{!\verb*+\tabcolsep+}
%     .
%    \begin{macrocode}
\setlength\tabcolsep{6\p@}
%    \end{macrocode}
% \DescribeMacro{\arrayrulewidth}\index{!\verb*+\arrayrulewidth+}
%    |array|.
%    \begin{macrocode}
\setlength\arrayrulewidth{.4\p@}
%    \end{macrocode}
% \DescribeMacro{\doublerulesep}\index{!\verb*+\doublerulesep+}
%       |\hrule\hrule|.
%    \begin{macrocode}
\setlength\doublerulesep{2\p@}
%    \end{macrocode}
% \DescribeMacro{\tabbingsep}\index{!\verb*+\tabbingsep+}
%      |tabular|.
%    \begin{macrocode}
\setlength\tabbingsep{\labelsep}
%    \end{macrocode}
% ,       
% |minipage|.
%    \begin{macrocode}
\skip\@mpfootins = \skip\footins
%    \end{macrocode}
% \DescribeMacro{\fboxsep}\index{!\verb*+\fboxsep+}
%       |\fbox|.
%    \begin{macrocode}
\setlength\fboxsep{3\p@}
%    \end{macrocode}
% \DescribeMacro{\fboxrule}\index{!\verb*+\fboxrule+}
%    |\fbox|.
%    \begin{macrocode}
\setlength\fboxrule{.4\p@}

%    \end{macrocode}
% \DescribeMacro{\fps@table}
%      |table|.
%    \begin{macrocode}
\def\fps@table{tbp}
%    \end{macrocode}
% \DescribeMacro{\ftype@table}
%  ,   |figure|.
%    \begin{macrocode}
\def\ftype@table{2}
%    \end{macrocode}
% \DescribeMacro{\ext@table}
%  ,    .
%    \begin{macrocode}
\def\ext@table{lot}
%    \end{macrocode}
% \DescribeMacro{\fnum@table}
%    (~1).
%    \begin{macrocode}
\def\fnum@table{\tablename~\thetable}

%</floats>
%    \end{macrocode}