Skip to content
Snippets Groups Projects
Verified Commit 6ee04e16 authored by Sophie Krause's avatar Sophie Krause :rabbit2:
Browse files

more docs template cleanups

parent 568e4a8d
No related merge requests found
Pipeline #1833 passed
.vscode/
.idea/
builddir/
*.pdf
.flatpak-builder/
repo/
app/
......
#import "@preview/hydra:0.6.0": hydra
#let project(title: "", subtitle: "", authors: (), logo: none, body) = {
// Set the document's basic properties.
// Basic properties
set document(author: authors, title: title)
set text(lang: "de")
set heading(numbering: "1.1")
// Title page
set align(center)
// Title page.
v(1fr)
// Logo
......@@ -20,15 +18,11 @@
// Title
text(2em, weight: 700, title)
linebreak()
v(0.1em)
v(1em)
// Subtitle
text(2em, weight: 400, subtitle)
v(1em)
// Author
grid(
..authors,
......@@ -37,29 +31,24 @@
v(1fr)
pagebreak()
// Table of contents
set align(left)
set page(numbering: "I", number-align: center)
// Table of contents
outline(depth: 3)
pagebreak()
// Header
let show-header(ctx, candidates) = {
candidates.body
v(-0.8em)
line(length: 100%, stroke: 0.5pt)
}
set page(header: context {
// Main body
set page(numbering: "1", header: context {
hydra(1, skip-starting: false, display: show-header)
})
set page(numbering: "1")
counter(page).update(1)
// Main body
set par(justify: true)
body
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment