#let letter( lang: "de", place: "Graz", date: datetime.today().display("[day].[month].[year]"), 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: [The letter subject should fit on one line.], 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 ] ]