dvdvgt / typst-letter

A typst letter template inspired by the DIN 5008 norm
MIT License
23 stars 1 forks source link

package manager file? #1

Open sje30 opened 1 year ago

sje30 commented 1 year ago

Hi,

Thank you for this letter template.

Have you seen that typst now has a package manager? Details are at:

https://typst.app/blog/2023/package-manager/

and as far as I can understand would be as simple as adding some metadata in typst.toml looking like

[package]
name = "typst-letter"
version = "0.1.0"
entrypoint = "template.typ"

and then making a PR to https://github.com/typst/packages

sje30 commented 1 year ago

p.s. the guidelines suggest using a specific name for the package, e.g. 'letter-din5008' rather than 'typst-letter'.

sje30 commented 12 months ago

as I didn't want to move this into the package structure without your permission, for now I've added it as a local package on my computer. To this, I still needed a typst.toml file, so here it is if you, or others, need it.

[package]
name = "din5008"
version = "0.1.0"
entrypoint = "din5008.typ"
authors = ["David Voigt"]
license = "MIT"
description = "Letter template conforming to DIN5008."

and you can see I've gone with din5008 as a more specific package name.

This can then be included from a typst file using:

#import "@local/din5008:0.1.0": *
dvdvgt commented 12 months ago

Hi @sje30

I am happy to hear that you apparently found use for this template. Thanks for already supplying the needed .toml file. I will happily add it to this repository and try to submit it to the official package “registry”.

sje30 commented 12 months ago

Yes, I've used it for several letters already, and I find it very convenient (and was looking for an alternative to cumbersome latex letters.)

dvdvgt commented 12 months ago

Yes, I've used it for several letters already, and I find it very convenient (and was looking for an alternative to cumbersome latex letters.)

Glad to hear that! Is there anything you encountered, you would like to see changed before I submit it as a package? Some annoyances or further configuration options?

sje30 commented 12 months ago

Perhaps the only issue I hit so far is that the "Name Surname" of the writer is the same at the top of the page and when signing off. I had one letter where I wished I could write something other than my name at the bottom of the page (I wanted to write "Me, on behalf of x,y,z").

A logo might be useful, but then you have to think about its size, location, etc, which will be hard to please everyone with. I'd suggest keeping it simple for now and see what people ask for.

CGMossa commented 8 months ago

Hey! Can I ask about the status of getting this to be a package? I have looked and it have not been submitted yet.

CGMossa commented 8 months ago

Oh right! It is recommended not to use packages for templates, for now! That's the reason.

Sorry 🙏 but at least the issue is not somewhat updated.