Skip to content

tonguetoquill-usaf-memo:3.0.0#4633

Open
nibsbin wants to merge 2 commits intotypst:mainfrom
nibsbin:main
Open

tonguetoquill-usaf-memo:3.0.0#4633
nibsbin wants to merge 2 commits intotypst:mainfrom
nibsbin:main

Conversation

@nibsbin
Copy link
Copy Markdown
Contributor

@nibsbin nibsbin commented Apr 19, 2026

I am submitting

  • a new package
  • an update for a package

Description: 3.0.0 Update

  • DAF memo style. New memo_style: "daf" option produces Department of the Air Force–formatted memos with fixed paragraph indentation and DAF-standard date formatting, distinct from the default USAF style.
  • letterhead_seal_subtitle. Optional subtitle rendered beneath the letterhead seal image.
  • Letterhead formatting. Title and caption are now uppercase; title is bold. Font defaults enforced to NimbusRomNo9L (Times New Roman equivalent) for both letterhead and body.
  • Unified paragraph formatter. Replaced four near-identical formatter functions with a single format-par taking an indent-fn parameter, eliminating redundancy.
  • auto_numbering parameter removed. Base-level paragraphs are now always auto-numbered per AFH 33-337 §2. Hierarchical numbering applies to explicit list/enum items only.
  • Indorsement DAF-style propagation fixed. memo_style was previously read as a contextual content value in indorsement.typ, causing the DAF branch to never trigger.
  • Shared line-stride measurement. Blank lines and body paragraphs now share a single cached line stride value for consistent vertical spacing.

I have read and followed the submission guidelines and, in particular, I

  • ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

@typst-package-check typst-package-check Bot added the update A package update. label Apr 19, 2026
…emo; adjust font usage note, update import paths, and remove obsolete thumbnail asset.
@nibsbin nibsbin marked this pull request as ready for review April 19, 2026 19:50
@elegaanz elegaanz self-assigned this Apr 20, 2026
@nibsbin
Copy link
Copy Markdown
Contributor Author

nibsbin commented Apr 20, 2026

I've been using snake case since v1. Are kebab case names enforced now for published templates?

@elegaanz
Copy link
Copy Markdown
Member

It is not, but for some reason CI didn't catch it previously. However, I can see you are using a mix of kebab-case and snake_case, it would be nice to decide on either and stick to it. The Typst standard library and ecosystem generally uses kebab-case, which is why we have this lint, and I would recommend using it too, but if you prefer to have snake_case everywhere that's also possible.

Comment on lines +45 to +47
- `template/usaf-template.typ` for a standard Air Force memo
- `template/ussf-template.typ` for Space Force
- `template/starkindustries.typ` for a custom organization example
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For info, when creating the template, the root will contain the same files as template/, meaning that the template/ prefix might be confusing, as it won't exist.

Copy link
Copy Markdown
Contributor Author

@nibsbin nibsbin Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. This might be a deeper design issue, but I want the README to make sense for the https://github.com/nibsbin/tonguetoquill-usaf-memo repo as well (that's what it was primarily written for).

Will make the change if this is a hard requirement for the update

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree that it is not great if you want to keep a unified version of the README, and that maintaining two slightly different ones is a bit of effort. If you think it won't affect users that much and that your README will still be understandable for someone discovering the package via the Typst Universe website, you can keep it as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

update A package update.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants