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
//! The definition piece of the [`floats`](super) feature on the
//! `latex-rendered` backend, `flm.latex.def.flmx.floats` ([`piece`]).
//!
//! The piece is the LaTeX text of the fragment `sty/floats.sty`, included at
//! compile time. It registers, with the backend's definition commands, the
//! default look of a float by its type's kind token: `figure` and `table` as
//! LaTeX's `figure` or `table` environment placed `[htbp]`, centered; the
//! content block of role `flm.floats.float.content` as it stands; the
//! caption block of role `flm.floats.float.caption` as a paragraph in
//! `\small` after `\abovecaptionskip`; the number span of role
//! `flm.floats.float.number` in `\bfseries`. A float of a type the document
//! configures is written with the block's default. Its comment block says
//! what each role and kind token is and how a template registers another
//! look.
//!
//! It delivers the feature's style identifier [`STYLE`](super::html::STYLE),
//! which the feature's general rule requires at every float: a
//! `latex-rendered` document holding a float holds the piece in its style
//! file, and one that does not, does not.
//!
//! The feature contributes the piece to the LaTeX family's preamble slot
//! ([`preamble::SLOT`]) with a peer declaration, so that a registry
//! without the LaTeX backends still builds.
use Arc;
use crate;
use crate;
use crateCORE_CHUNK;
/// The piece's identifier, `flm.latex.def.flmx.floats`.
pub const PIECE: &str = "flm.latex.def.flmx.floats";
/// The feature's definition piece on the `latex-rendered` backend, [`PIECE`]:
/// the text of `sty/floats.sty`, requiring the core chunk. See the [module
/// documentation](self).
/// Contributes [`piece`] to the preamble slot, under a peer declaration.
///
/// # Errors
///
/// The [`BuildError`] of the registry builder when a declaration is made
/// outside the registration round that accepts it.
pub