Skip to content

Commit

Permalink
feat: added T3000 layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Servostar committed Oct 1, 2024
1 parent eaf803d commit 3ebcccd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 13 deletions.
46 changes: 41 additions & 5 deletions src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,54 @@
// '--------------------------------------------------------------------------'

// Author: Sven Vogel
// Edited: 27.06.2024
// Edited: 01.10.2024
// License: MIT

// start of template pages and styles
#let dhbw-template(body) = [

#set page(columns: 2, margin: 2.5cm)
#set page(margin: 2.5cm, footer: counter(page).display())
#set text(size: 10pt, font: "Times New Roman")
#set par(justify: true)
#set columns(gutter: 0.95cm)
#set block(below: 1em, above: 0pt)

#show heading: it => align(center, pad(top: 0.85cm, text(size: 12pt, it)))
#show heading.where(level: 1): it => align(center, pad(top: 0.85cm, text(size: 12pt, it)))
#show heading.where(level: 2): it => text(size: 10pt, it)

#body
#show raw: it => text(font: "Consolas", size: 8pt, it)

#set align(center)
#block(below: 0.85cm, text(size: 16pt, weight: "bold", "Title"))

#let authors = (
(
name: "Johann Goethe",
matriculation-number: 123456789,
company: "SAP",
e-mail: "johann-goether@sap.de",
),
)

#grid(columns: authors.len(), column-gutter: 0.95cm, rows: 1, ..authors.map(author => block()[
#text(size: 10pt, weight: "bold", author.name)
#set text(size: 9pt)
#linebreak()
#author.matriculation-number, #author.company
#linebreak()
#author.e-mail
]))

#v(10pt)

#set align(left)
#columns(gutter: 0.95cm)[
#align(center, text(weight: "bold", size: 10pt, "Abstract"))
#lorem(20)

#body

#align(center, pad(top: 1em, text(weight: "bold", size: 10pt, "Citations and references")))

#bibliography("../template/refs.bib", title: none, style: "annual-reviews-author-date")
]
]
11 changes: 3 additions & 8 deletions template/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#lorem(25)

@einstein

#lorem(100)

== Lorem Ipsum 2
Expand All @@ -29,10 +31,7 @@ $

#lorem(140)

#wrap-content(
figure(image("assets/digitaldog.jpg", width: 200pt), caption: [ Some image caption ]),
lorem(200),
)
#figure(image("assets/digitaldog.jpg", width: 200pt), caption: [ Some image caption ])

#lorem(50)

Expand All @@ -53,8 +52,6 @@ $
caption: [ Some table ],
)

#pagebreak()

#lorem(100)

#figure(
Expand All @@ -72,8 +69,6 @@ $

#lorem(100)

#pagebreak()

= Conclusion

#lorem(320)

0 comments on commit 3ebcccd

Please sign in to comment.