Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package manager file? #1

Open
sje30 opened this issue Jul 5, 2023 · 8 comments
Open

package manager file? #1

sje30 opened this issue Jul 5, 2023 · 8 comments

Comments

@sje30
Copy link

sje30 commented Jul 5, 2023

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
Copy link
Author

sje30 commented Jul 6, 2023

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

@sje30
Copy link
Author

sje30 commented Jul 9, 2023

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
Copy link
Owner

dvdvgt commented Jul 10, 2023

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
Copy link
Author

sje30 commented Jul 10, 2023

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
Copy link
Owner

dvdvgt commented Jul 10, 2023

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
Copy link
Author

sje30 commented Jul 11, 2023

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
Copy link
Contributor

CGMossa commented Oct 18, 2023

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
Copy link
Contributor

CGMossa commented Oct 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants