feat: add modern template and docs

This commit is contained in:
Popa committed 2026-09-14 22:48:26 +02:00
1 parent 22cb61421d
commit 3c10aab1b5
4 files changed
+334 -1

No files matched your search

+26 -1
View File
@@ -117,6 +117,27 @@ Optional arguments:
- `no-pagebreak`: whether to avoid page breaks between exercises (level 1
headings) (`false`)
### `modern-template`
A modern layout, heavily inspired by the
[`grape-suite`](https://github.com/piepert/grape-suite) package. The only
required argument is `body`.
Optional arguments:
- `seminar`: title for the seminar (`[]`)
- `professor`: professor name (`[]`)
- `assistant`: assistant name (`none`)
- `semester`: current semester (`[]`)
- `sheet-title`: title for the exercise sheet (`[]`)
- `name`: student name (`[]`)
- `date`: date of submission (`datetime.today()`)
- `exercise-label`: label for exercises (`[Exercise]`)
- `hint-label`: label for hints (`[Hint]`)
- `theme`: custom theme for the document
- `decimal-comma`: whether to use a decimal comma instead of a decimal point
(`false`)
## Components and helpers
- `exercise`: exercise box with optional `heading`, `points`, `color`,
@@ -158,4 +179,8 @@ to either template.
Clean Sheets is licensed under the [MIT License](LICENSE). The bundled
`assets/OneHalfLight.tmTheme` is the MIT-licensed
[One Half Light theme](https://github.com/sonph/OneHalf) by Son Pham; see
[`LICENSE-OneHalfLight`](LICENSE-OneHalfLight).
[`LICENSE-OneHalfLight`](LICENSE-OneHalfLight). Finally, since the
`modern-template` layout is heavily inspired by the
[`grape-suite`](https://github.com/piepert/grape-suite) package, we also
include its MIT-license for by Tristan Pieper; see
[`LICENSE-grape-suite`](LICENSE-grape-suite).