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
% flm.latex.def.flmx.floats -- figures, tables and the other float types.
%
% The floats feature writes a float as a block of role flm.floats.float
% whose kind tokens are the float type's name (figure, table, or a type the
% document configures) and numbered or unnumbered. It holds the content in
% a block of role flm.floats.float.content and, where the float is numbered
% or has a caption, the line under the content in a block of role
% flm.floats.float.caption (same kind tokens), its number in a span of role
% flm.floats.float.number:
% \begin{flmxBlock}[role=flm.floats.float, kinds={figure numbered}, anchor=figure-1]
% \begin{flmxBlock}[role=flm.floats.float.content]
% \flmxImage[...]{...}
% \end{flmxBlock}
% \begin{flmxBlock}[role=flm.floats.float.caption, kinds={figure numbered}]
% \flmxSpan[role=flm.floats.float.number]{Figure 1}: A photo
% \end{flmxBlock}
% \end{flmxBlock}
%
% Defaults, the float registered under its type's kind token:
% figure, table LaTeX's figure or table environment, placed [htbp], its
% content centered, the target of its anchor first;
% the content as it stands;
% the caption a paragraph in \small, \abovecaptionskip below the
% content;
% the number in \bfseries.
% A float of a type the document configures has no registration: it is
% written with the block's default, where it stands. LaTeX's own \caption
% is not used: FLM writes the number and the caption itself, and LaTeX's
% list of figures does not see them.
%
% A template changes the look with
% \flmxDefineBlock{<type>}{<begin code>}{<end code>} (a float type)
% \flmxDefineBlock{flm.floats.float}{<begin code>}{<end code>}
% (every float, in place of the registrations by type)
% \flmxDefineBlock{flm.floats.float.content}{<begin code>}{<end code>}
% \flmxDefineBlock{flm.floats.float.caption}{<begin code>}{<end code>}
% \flmxDefineSpan{flm.floats.float.number}{<code over #1>}
% for instance \flmxDefineBlock{video}{\begin{figure}[htbp]\centering}%
% {\end{figure}} for a configured type video.
\flmxDefineBlock%
%
\flmxDefineBlock%
%
\flmxDefineBlock%
%
\flmxDefineBlock%
%
\flmxDefineSpan%