ludwig-austermann / typst-din-5008-letter

A template for DIN 5008 inspired typst letter
MIT License
15 stars 0 forks source link

#show: letter.with(header: []) question #2

Closed ondohotola closed 1 year ago

ondohotola commented 1 year ago

Looks nice.

How do I get something like

Dr Eberhard W Lisse
    Frauenarzt

centered into the middle of the page?

Currently playing with the the nice_defaults.typ example

header: [#align(center)[Dr Eberhard W Lisse\ Frauenarzt]\ #line(width: 100%)],

shows it centered from the beginning of the text area to where 'sender.address` starts and not on the whole width of the text area.

ludwig-austermann commented 1 year ago

I think in the DIN standard, a width of max. 75mm is required. That's why your content would be centered, but inside a block of width 75mm.

Take a look at the infoheader function, to customize it to your liking, but I think this template should still follow the DIN specs. However, maybe another option should be added later.