added: preface
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 10s Details

This commit is contained in:
Sven Vogel 2024-07-04 15:09:05 +02:00
parent dfa1590936
commit 41bcf480e2
5 changed files with 15 additions and 0 deletions

View File

@ -30,6 +30,7 @@
kind: "T2000", kind: "T2000",
summary: none, summary: none,
abstract: none, abstract: none,
preface: none,
keywords: ( "IT", "other stuff" ), keywords: ( "IT", "other stuff" ),
bibliography: none /* bibliography("refs.bib") */, bibliography: none /* bibliography("refs.bib") */,
glossary: none, glossary: none,

View File

@ -18,6 +18,7 @@
#import "pages/prerelease-note.typ": new_prerelease_note #import "pages/prerelease-note.typ": new_prerelease_note
#import "pages/outline.typ": new_outline #import "pages/outline.typ": new_outline
#import "pages/abstract.typ": new_abstract #import "pages/abstract.typ": new_abstract
#import "pages/preface.typ": new-preface
#import "pages/appendix.typ": show-appendix #import "pages/appendix.typ": show-appendix
#let config = validate-config(config) #let config = validate-config(config)
@ -49,6 +50,7 @@
new_prerelease_note(config) new_prerelease_note(config)
} }
#new_abstract(config) #new_abstract(config)
#new-preface(config)
#new_outline() #new_outline()
// glossary is built inline here because the links must be // glossary is built inline here because the links must be

7
src/pages/preface.typ Normal file
View File

@ -0,0 +1,7 @@
#let new-preface(config) = {
if config.thesis.preface != none {
pagebreak(weak: true)
config.thesis.preface
}
}

View File

@ -25,6 +25,7 @@
kind: "T2000", kind: "T2000",
summary: summary, summary: summary,
abstract: abstract, abstract: abstract,
preface: include "preface.typ",
keywords: ( "IT", "other stuff" ), keywords: ( "IT", "other stuff" ),
bibliography: bibliography("refs.bib"), bibliography: bibliography("refs.bib"),
glossary: glossary, glossary: glossary,

4
template/preface.typ Normal file
View File

@ -0,0 +1,4 @@
= Vorwort
#lorem(50)