# jnnks/thmreport architecture

> Architecture diagram of the GitHub repository jnnks/thmreport, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jnnks/thmreport
- Repository: https://github.com/jnnks/thmreport

## Overview

This repository is a LaTeX document class for THM/StudiumPlus practice-phase reports and theses. The main workflow is an author using the class to produce a formatted report; citation commands create footnotes and bibliography entries, and the bibliography is included at the document’s end. The README also documents layout, metadata, language/type options, and optional front matter. No source excerpts were provided, so file-to-file implementation links are omitted; paths below reflect the file tree and documented responsibilities.

Main entry points: [`thmreport.cls`](https://github.com/jnnks/thmreport/blob/master/thmreport.cls) (Document class), [`cmds.sty`](https://github.com/jnnks/thmreport/blob/master/cmds.sty) (Citation commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_class["Report class"]
  node_document_class["Document class<br/>[thmreport.cls]"]
  node_metadata["Report metadata<br/>[reportmetadata.sty]"]
  node_front_matter["Front matter options<br/>[thmreport.cls]"]
end

subgraph group_presentation["Presentation"]
  node_title_page["Title page<br/>[thmtitlepage.sty]"]
  node_page_styles["Page styles<br/>[thmpagestyles.sty]"]
end

subgraph group_references["Citations and references"]
  node_citation_commands["Citation commands<br/>[cmds.sty]"]
  node_footnote["Citation footnote"]
  node_bibliography["Bibliography"]
end

node_author(("Report author"))
node_report["Formatted report"]

node_author -->|"uses"| node_document_class
node_document_class -->|"formats"| node_report
node_citation_commands -->|"creates"| node_footnote
node_citation_commands -->|"adds entry"| node_bibliography
node_document_class -->|"includes at end"| node_bibliography

click node_document_class "https://github.com/jnnks/thmreport/blob/master/thmreport.cls"
click node_metadata "https://github.com/jnnks/thmreport/blob/master/reportmetadata.sty"
click node_front_matter "https://github.com/jnnks/thmreport/blob/master/thmreport.cls"
click node_title_page "https://github.com/jnnks/thmreport/blob/master/thmtitlepage.sty"
click node_page_styles "https://github.com/jnnks/thmreport/blob/master/thmpagestyles.sty"
click node_citation_commands "https://github.com/jnnks/thmreport/blob/master/cmds.sty"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_document_class,node_metadata,node_front_matter toneBlue
class node_title_page,node_page_styles toneAmber
class node_citation_commands,node_footnote,node_bibliography toneMint
class node_author,node_report toneIndigo
```

## Components

### Report class

- [Document class](https://github.com/jnnks/thmreport/blob/master/thmreport.cls): `thmreport.cls`
- [Report metadata](https://github.com/jnnks/thmreport/blob/master/reportmetadata.sty): `reportmetadata.sty`
- [Front matter options](https://github.com/jnnks/thmreport/blob/master/thmreport.cls): `thmreport.cls`

### Presentation

- [Title page](https://github.com/jnnks/thmreport/blob/master/thmtitlepage.sty): `thmtitlepage.sty`
- [Page styles](https://github.com/jnnks/thmreport/blob/master/thmpagestyles.sty): `thmpagestyles.sty`

### Citations and references

- [Citation commands](https://github.com/jnnks/thmreport/blob/master/cmds.sty): `cmds.sty`
- **Citation footnote**
- **Bibliography**

### Other components

- **Report author**
- **Formatted report**

## Connections

- Report author → Document class: uses (evidence: `README.md`)
- Document class → Formatted report: formats (evidence: `README.md`)
- Citation commands → Citation footnote: creates (evidence: `README.md`)
- Citation commands → Bibliography: adds entry (evidence: `README.md`)
- Document class → Bibliography: includes at end (evidence: `README.md`)
