Skip to content

Commit

Permalink
Introduce single abstract template and remove redundant code (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw authored May 16, 2024
1 parent 1eb3027 commit 15a42ac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 49 deletions.
15 changes: 10 additions & 5 deletions thesis.typ
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
#import "common/titlepage.typ": *
#import "thesis_typ/disclaimer.typ": *
#import "thesis_typ/acknowledgement.typ": *
#import "thesis_typ/abstract_en.typ": *
#import "thesis_typ/abstract_de.typ": *
#import "thesis_typ/abstract.typ": *
#import "common/metadata.typ": *
#import "common/utils.typ": TODO


#set document(title: titleEnglish, author: author)

#cover(
Expand Down Expand Up @@ -39,9 +37,16 @@

#acknowledgement()

#abstract_en()
#abstract(lang: "en")[
Note:
1. *paragraph:* What is the motivation of your thesis? Why is it interesting from a scientific point of view? Which main problem do you like to solve?
2. *paragraph:* What is the purpose of the document? What is the main content, the main contribution?
3. *paragraph:* What is your methodology? How do you proceed?
]

#abstract_de()
#abstract(lang: "de")[
Note: Insert the German translation of the English abstract here.
]

#show: project.with(
title: titleEnglish,
Expand Down
17 changes: 8 additions & 9 deletions thesis_typ/abstract_de.typ → thesis_typ/abstract.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#let abstract_de() = {
#let abstract(body, lang: "en") = {
let title = (en: "Abstract", de: "Zusammenfassung")

set page(
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
numbering: none,
Expand All @@ -11,22 +13,19 @@
set text(
font: body-font,
size: 12pt,
lang: "de"
lang: lang
)

set par(
leading: 1em,
justify: true
)


// --- Abstract (EN) ---
// --- Abstract ---
v(1fr)
align(center, text(font: body-font, 1em, weight: "semibold", "Zusammenfassung"))
align(center, text(font: body-font, 1em, weight: "semibold", title.at(lang)))

text[
Note: Insert the German translation of the English abstract here.
]
body

v(1fr)
}
35 changes: 0 additions & 35 deletions thesis_typ/abstract_en.typ

This file was deleted.

0 comments on commit 15a42ac

Please sign in to comment.