Skip to content

feat(report): configurable Abstract/Keywords headings via frontmatter#13

Merged
frederikbeimgraben merged 1 commit into
mainfrom
feat/configurable-titlepage-headings
Jun 3, 2026
Merged

feat(report): configurable Abstract/Keywords headings via frontmatter#13
frederikbeimgraben merged 1 commit into
mainfrom
feat/configurable-titlepage-headings

Conversation

@frederikbeimgraben
Copy link
Copy Markdown
Owner

What

The title-page Abstract and Keywords labels were hard-coded. They can now be set from frontmatter:

abstract_heading: Kurzfassung
keywords_heading: Schlagwörter

Aliases: abstract_title / zusammenfassung_titel, keywords_title / schlagworte_titel.

How

  • TitlePage and HSRTReport gain abstract_heading / keywords_heading fields, defaulting to "Abstract" / "Keywords" (behaviour unchanged when unset).
  • The report builder reads the keys from frontmatter and LaTeX-escapes the values.

Verification

737 tests pass; ruff + mypy --strict + basedpyright clean. Tests cover defaults, custom German headings, and escaping.

🤖 Generated with Claude Code

The title page hard-coded the "Abstract" and "Keywords" labels. Add
`abstract_heading` / `keywords_heading` to `TitlePage` and `HSRTReport`
(defaulting to the English labels) and read them from frontmatter in the
report builder:

    abstract_heading: Kurzfassung   # also abstract_title / zusammenfassung_titel
    keywords_heading: Schlagwörter  # also keywords_title / schlagworte_titel

Values are LaTeX-escaped. Defaults are unchanged when the keys are absent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@frederikbeimgraben frederikbeimgraben merged commit c7f1449 into main Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant