diff --git a/examples/lipsum.typ b/examples/lipsum.typ index 3ada28d..9b9a1d3 100644 --- a/examples/lipsum.typ +++ b/examples/lipsum.typ @@ -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 ]) diff --git a/src/pages/glossar.typ b/src/pages/glossar.typ new file mode 100644 index 0000000..a5765c7 --- /dev/null +++ b/src/pages/glossar.typ @@ -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) +} diff --git a/src/style.typ b/src/style.typ index 8020eb0..a2d739a 100644 --- a/src/style.typ +++ b/src/style.typ @@ -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, diff --git a/src/template.typ b/src/template.typ index 6d1ac70..463cd60 100644 --- a/src/template.typ +++ b/src/template.typ @@ -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 ]) - - ]) ] \ No newline at end of file