mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 06:41:38 +01:00
latest changes
This commit is contained in:
@@ -4,11 +4,15 @@
|
||||
title: "Karteikarten-Anwendung in C mit GTK4 und Libadwaita",
|
||||
subtitle: "Hardwarenahe Programmierung",
|
||||
authors: (
|
||||
"Sophie Krause",
|
||||
(
|
||||
name: "Sophie Krause",
|
||||
id: "18103387"
|
||||
),
|
||||
),
|
||||
profs: (
|
||||
"Prof. Dr. Gerwinski",
|
||||
"Prof. Dr. rer. nat. Peter Gerwinski",
|
||||
),
|
||||
submitted_at: none,
|
||||
logo: "BO.svg"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#import "@preview/hydra:0.6.1": hydra
|
||||
|
||||
#let project(title: "", subtitle: "", authors: (), profs: (), logo: none, body) = {
|
||||
#let project(title: "", subtitle: "", authors: ((name: "", id: ""),), profs: ("",), submitted_at: none, logo: none, body) = {
|
||||
// Basic properties
|
||||
set document(author: authors, title: title)
|
||||
set document(author: "a", title: title)
|
||||
set text(lang: "de")
|
||||
set heading(numbering: "1.1")
|
||||
|
||||
@@ -27,17 +27,37 @@
|
||||
set align(left)
|
||||
|
||||
// Author
|
||||
let authors_title
|
||||
if authors.len() == 1 {
|
||||
authors_title = "Autor*in"
|
||||
} else {
|
||||
authors_title = "Autor*innen"
|
||||
}
|
||||
text(weight: 700, authors_title + " (Matrikelnummer):")
|
||||
grid(
|
||||
gutter: 1em,
|
||||
..authors,
|
||||
..authors.map(author => author.name + " (" + author.id + ")").flatten()
|
||||
)
|
||||
|
||||
// Profs
|
||||
let profs_title
|
||||
if profs.len() == 1 {
|
||||
profs_title = "Prüfer*in"
|
||||
} else {
|
||||
profs_title = "Prüfer*innen"
|
||||
}
|
||||
text(weight: 700, profs_title + ":")
|
||||
grid(
|
||||
gutter: 1em,
|
||||
..profs,
|
||||
)
|
||||
|
||||
// Abgabedatum
|
||||
if submitted_at != none {
|
||||
text(weight: 700, "Abgabedatum: ")
|
||||
text(submitted_at.display("[day].[month].[year]"))
|
||||
}
|
||||
|
||||
// Table of contents
|
||||
set align(left)
|
||||
set page(numbering: "I", number-align: center)
|
||||
|
||||
Reference in New Issue
Block a user