import
This commit is contained in:
commit
2bca935b19
5 changed files with 179 additions and 0 deletions
92
src/lib.typ
Normal file
92
src/lib.typ
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
|
||||
#let letter(
|
||||
lang: "de",
|
||||
|
||||
place: "Graz",
|
||||
date: "01. April 1970",
|
||||
|
||||
title: "Dr.",
|
||||
firstname: "John",
|
||||
lastname: "Doe",
|
||||
|
||||
departement: [Institut für Mathematik und Wissenschaftliches Rechnen],
|
||||
|
||||
address: "Heinrichstraße 36, 8010 Graz",
|
||||
|
||||
phone: 1234,
|
||||
|
||||
|
||||
homepage: "https://imsc.uni-graz.at/doe",
|
||||
|
||||
subject: [Der Betreff eines Schreibens sollte in einer Zeile gut Platz finden.],
|
||||
|
||||
signature: none,
|
||||
body:none,
|
||||
firstpage
|
||||
) = [
|
||||
|
||||
#set text(font:"Nunito Sans", lang: lang)
|
||||
|
||||
#let email = [#firstname.#lastname\@uni-graz.at]
|
||||
|
||||
#let signature_block = [
|
||||
#if signature != none {
|
||||
signature
|
||||
} else [
|
||||
#v(2em)
|
||||
Mit freundlichen Grüßen
|
||||
|
||||
#title #firstname #lastname
|
||||
]
|
||||
]
|
||||
|
||||
#let senderinfo = align(right)[
|
||||
#set text(8pt)
|
||||
*Universität Graz* \
|
||||
*#departement* \
|
||||
#title #firstname #lastname \
|
||||
#address \
|
||||
+43 (0)316 / 380-#phone | #email \
|
||||
#homepage]
|
||||
|
||||
#set page(
|
||||
margin: (bottom: 5.23cm),
|
||||
footer: [
|
||||
#set text(8pt)
|
||||
#grid(columns:(auto, 1fr, auto),
|
||||
align(bottom)[#context{ counter(page).display("1/1", both: true) }],
|
||||
[],
|
||||
senderinfo)
|
||||
])
|
||||
|
||||
#page(
|
||||
margin: auto,
|
||||
footer: context {
|
||||
set text(8pt)
|
||||
if counter(page).final().at(0) > 1 { counter(page).display("1/1", both: true) }
|
||||
})[#align(right)[#image("logos/kfulogo_claim.pdf", height: 2cm)]
|
||||
|
||||
Name/Institution \
|
||||
Abteilung \
|
||||
Titel Vorname Nachnamen \
|
||||
Adresse \
|
||||
PLZ Ort
|
||||
|
||||
#senderinfo
|
||||
#align(right)[#place, #date]
|
||||
|
||||
*#subject*
|
||||
|
||||
#firstpage
|
||||
|
||||
#if body == none [
|
||||
#signature_block
|
||||
]
|
||||
]
|
||||
|
||||
#if body != none [
|
||||
#body
|
||||
|
||||
#signature_block
|
||||
]
|
||||
]
|
||||
BIN
src/logos/kfulogo_claim.pdf
Normal file
BIN
src/logos/kfulogo_claim.pdf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue