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 [`citations`](super) feature on the
//! `latex-rendered` backend, `flm.latex.def.flmx.citations` ([`piece`]).
//!
//! The piece is the LaTeX text of the fragment `sty/citations.sty`, included
//! at compile time. It registers, with the backend's definition commands,
//! the default look of the span roles `flm.citations.space`,
//! `flm.citations.word` and `flm.citations.entry.number` (as they stand),
//! of the list of cited works, the block role `flm.citations.bibliography`
//! (a block of paragraphs: its heading and its list keep their own looks),
//! and of the link kind `cite` (the links chunk's default link, in the color
//! `flmxCiteColor`). The citation mark's span, `flm.citations.mark`, is left
//! to the span's default, so that the superscript form keeps its style. Its
//! comment block says what each role is and how a template registers
//! another look.
//!
//! It delivers the feature's style identifier [`STYLE`](super::html::STYLE),
//! which the feature's general rules require at every citation and at the
//! list of cited works: a `latex-rendered` document holding a citation 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 crate;
/// The piece's identifier, `flm.latex.def.flmx.citations`.
pub const PIECE: &str = "flm.latex.def.flmx.citations";
/// The feature's definition piece on the `latex-rendered` backend, [`PIECE`]:
/// the text of `sty/citations.sty`, requiring the links chunk, whose default
/// link the kind `cite` uses. 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