added: glossary

This commit is contained in:
Sven Vogel 2024-06-28 15:52:45 +02:00
parent 26f947a0d3
commit 5ec79a536d
4 changed files with 23 additions and 3 deletions

View File

@ -17,7 +17,11 @@
#lorem(15)
$ integral_2^8 4x^2 $
$
angle.l a, b angle.r &= arrow(a) dot arrow(b) \
&= a_1 b_1 + a_2 b_2 + ... a_n b_n \
&= sum_(i=1)^n a_i b_i.
$
#figure(image("digitaldog.jpg", height: 480pt), caption: [ Some image caption ])

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

@ -0,0 +1,7 @@
#let new-glossar(glossary) = {
import "@preview/glossarium:0.4.1": make-glossary, print-glossary, gls, glspl
show: make-glossary
print-glossary(glossary)
}

View File

@ -66,6 +66,11 @@
]
#let content_styled(body: content, thesis) = [
// setup equate for sub equation labeling
#import "@preview/equate:0.2.0": equate
#show: equate.with(breakable: true, sub-numbering: true)
#set math.equation(numbering: "(1.1)")
#set heading(numbering: "1.")
#page(
header-ascent: HeaderUnderlinePaddingTop + HeaderPaddingBottom,

View File

@ -21,6 +21,7 @@
#import "pages/prerelease-note.typ": new_prerelease_note
#import "pages/outline.typ": new_outline
#import "pages/abstract.typ": new_abstract
#import "pages/glossar.typ": new-glossar
#set text(lang: "de", region: "de")
@ -46,6 +47,8 @@
abstract: "",
)
#let glossary = ()
// preppend title page
#new_title_page(thesis, author)
@ -64,13 +67,14 @@
#pagebreak(weak: true)
#new_abstract(thesis)
#pagebreak(weak: true)
#new-glossar(glossary)
])
#content_styled(thesis, body: [
// code of document follows here
#doc
])
])
]