Skip to main content

Module text

Module text 

Source
Expand description

The lowering rules of the metadata’s pieces on the text backend: the title set between two rule lines, and each author’s parts under the name.

  • The title (TitleTextRule) is the block of the default rule (MetaTextRule) holding a flm.pres.text.ruled node with a rule line above and under it, over one paragraph whose content is the title in a span of style Bold:

    flm.pres.block { role: flm.metadata.title, kinds: [metadata] }
      └ flm.pres.text.ruled { above: true, below: true }
          └ flm.pres.par
              └ flm.pres.span { style: bold }
                  └ the title, lowered through the rules

    Each rule line repeats the character of a heading at the root level (TextRenderOptions::heading_rules) to the width of the title’s widest printed line.

  • One author (EntryTextRule) is the lines of the default rule (EntryRule), the name at the margin and each other part (each affiliation, the email address, each note) indented by 1em, two columns:

    ===========================
    Bounds on approximate codes
    ===========================
    
    First Author
      University of X and Z, Somewhere
      first@example.com

The date and the authors’ block keep the default rules (rules).

The rules are the defaults on the text backend only. The rule for the title stages the construct element flm.pres.text.ruled. The feature registers the rules with peer declarations (PeerName) of the backend and of that element. A registry without the text feature therefore still builds, with the rules set aside (excluded from rule selection).

Structs§

EntryTextRule
The lowering rule of one author on the text backend: the lines of the default rule, the name at the margin and each other part indented by 1em.
TitleTextRule
The lowering rule of the title on the text backend: the block of the default rule, holding a flm.pres.text.ruled node with a rule line above and under it, over one paragraph whose content is the title in a span of style bold (see the module documentation).

Functions§

text_rule_name
Returns the name of the lowering rule of the element element on the text backend, <element>.lower.text.