pub struct Rendering {Show 13 fields
pub text_case: Option<TextCase>,
pub emph: Option<bool>,
pub quote: Option<bool>,
pub strong: Option<bool>,
pub small_caps: Option<bool>,
pub vertical_align: Option<VerticalAlign>,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub wrap: Option<WrapConfig>,
pub suppress: Option<bool>,
pub initialize_with: Option<String>,
pub name_form: Option<NameForm>,
pub strip_periods: Option<bool>,
}Expand description
Rendering instructions applied to template components.
These fields are flattened into parent structs, so in YAML you write:
- title: primary
emph: true
prefix: "In "Rather than nesting under a rendering: key.
Fields§
§text_case: Option<TextCase>Text-case transform to apply to the rendered value.
emph: Option<bool>Render in italics/emphasis.
quote: Option<bool>Render in quotes.
strong: Option<bool>Render in bold/strong.
small_caps: Option<bool>Render in small caps.
vertical_align: Option<VerticalAlign>Vertical alignment to apply to rendered output.
prefix: Option<String>Text to prepend to the rendered value (outside any wrap).
suffix: Option<String>Text to append to the rendered value (outside any wrap).
wrap: Option<WrapConfig>Wrapping punctuation and optional inner affixes (text inside the wrap).
suppress: Option<bool>If true, suppress this component entirely (render as empty string). Useful for type-specific overrides like suppressing publisher for journals.
initialize_with: Option<String>Override name initialization (e.g., “. “ or “”).
name_form: Option<NameForm>Override name form (e.g., initials, full, family-only).
strip_periods: Option<bool>Strip trailing periods from rendered value.