b

basic-document-props

@preview

Simple document with header, footer, page numbering and mail-adress

v0.1.0
MIT
3 downloads
Template

Package Information

Last Updated
Authors
Notme112
Categories
office

Preview

Template preview

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/basic-document-props:0.1.0

2. Initialize from template

Create a new project from this template:

typst init @preview/basic-document-props:0.1.0

Version History

0.1.0
30b1945b2767...

Hi there 👋,
thanks for interest in this package. It's my first step for automating my office work. I use this for school-related work.

It exports the function simple-page with the following arguments:

  • first unnamed parameter (string): name (or whatever should be on top left)
  • second unnamed parameter (string): mail (or whatever should be down left in the corner, if it isn't a mail please see supressMailLink)
  • middle-text (string): text on top in the middle, optional
  • date (bool): date in germand format DD.MM.YYYY, optional
  • numbering (bool): page numbering in german format "Seite x von y", optional
  • supress-mail-link (bool): mail text isn't covered as mailto-link if true, optional

Full example:

simple-page.with("Max Mustmann", "max.mustermann@example.com", middle-text: "Example GmbH", date: true, numbering: true, supress-mail-link: false)

Reach me out if you have questions! ✌️