mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 07:51:38 +01:00
more docs template cleanups
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
builddir/
|
builddir/
|
||||||
|
*.pdf
|
||||||
.flatpak-builder/
|
.flatpak-builder/
|
||||||
repo/
|
repo/
|
||||||
app/
|
app/
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
#import "@preview/hydra:0.6.0": hydra
|
#import "@preview/hydra:0.6.0": hydra
|
||||||
|
|
||||||
#let project(title: "", subtitle: "", authors: (), logo: none, body) = {
|
#let project(title: "", subtitle: "", authors: (), logo: none, body) = {
|
||||||
|
// Basic properties
|
||||||
// Set the document's basic properties.
|
|
||||||
set document(author: authors, title: title)
|
set document(author: authors, title: title)
|
||||||
set text(lang: "de")
|
set text(lang: "de")
|
||||||
set heading(numbering: "1.1")
|
set heading(numbering: "1.1")
|
||||||
|
|
||||||
|
// Title page
|
||||||
set align(center)
|
set align(center)
|
||||||
|
|
||||||
// Title page.
|
|
||||||
v(1fr)
|
v(1fr)
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
@@ -20,15 +18,11 @@
|
|||||||
|
|
||||||
// Title
|
// Title
|
||||||
text(2em, weight: 700, title)
|
text(2em, weight: 700, title)
|
||||||
|
v(1em)
|
||||||
linebreak()
|
|
||||||
v(0.1em)
|
|
||||||
|
|
||||||
// Subtitle
|
// Subtitle
|
||||||
text(2em, weight: 400, subtitle)
|
text(2em, weight: 400, subtitle)
|
||||||
|
|
||||||
v(1em)
|
|
||||||
|
|
||||||
// Author
|
// Author
|
||||||
grid(
|
grid(
|
||||||
..authors,
|
..authors,
|
||||||
@@ -37,29 +31,24 @@
|
|||||||
v(1fr)
|
v(1fr)
|
||||||
pagebreak()
|
pagebreak()
|
||||||
|
|
||||||
set align(left)
|
|
||||||
|
|
||||||
set page(numbering: "I", number-align: center)
|
|
||||||
|
|
||||||
// Table of contents
|
// Table of contents
|
||||||
|
set align(left)
|
||||||
|
set page(numbering: "I", number-align: center)
|
||||||
outline(depth: 3)
|
outline(depth: 3)
|
||||||
pagebreak()
|
pagebreak()
|
||||||
|
|
||||||
|
// Header
|
||||||
let show-header(ctx, candidates) = {
|
let show-header(ctx, candidates) = {
|
||||||
candidates.body
|
candidates.body
|
||||||
v(-0.8em)
|
v(-0.8em)
|
||||||
line(length: 100%, stroke: 0.5pt)
|
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)
|
hydra(1, skip-starting: false, display: show-header)
|
||||||
})
|
})
|
||||||
|
|
||||||
set page(numbering: "1")
|
|
||||||
counter(page).update(1)
|
counter(page).update(1)
|
||||||
|
|
||||||
// Main body
|
|
||||||
set par(justify: true)
|
set par(justify: true)
|
||||||
|
|
||||||
body
|
body
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user