Skip to content

probability-tree:0.1.2 - #5653

Open
mmaunier wants to merge 4 commits into
typst:mainfrom
mmaunier:main
Open

probability-tree:0.1.2#5653
mmaunier wants to merge 4 commits into
typst:mainfrom
mmaunier:main

Conversation

@mmaunier

Copy link
Copy Markdown

I am submitting

  • a new package
  • an update for a package

Description:
Provides a Typst module for drawing n×p probability trees that grow left-to-right, built on top of CeTZ. It supports per-node and per-probability styling, multiple label placements (above, below, on, hybrid, sloped), exact node positions for custom overlays, and clear error handling. Useful for teachers, students, and anyone needing to create probability tree diagrams.

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

  • selected a name that isn't the most obvious or canonical name for what the package does
    • Explanation:
      "probability-tree" is a hyphenated compound of two generic words. It is not the most obvious or canonical name because there is no established name for this specific kind of diagram in Typst; the hyphenated form creates a precise identifier that is not a generic term. The package targets a specific niche (n×p probability trees growing left-to-right), which distinguishes it from a generic tree-drawing library.
  • added a typst.toml file with all required keys
  • added a README.md with documentation for my package
  • have chosen a license and added a LICENSE file or linked one in my README.md
  • tested my package locally on my system and it worked
  • exclude PDFs or README images, if any, but not the LICENSE
  • 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.

@mmaunier
mmaunier deployed to Package Check August 22, 2026 13:24 — with GitHub Actions Active
@typst-package-check typst-package-check Bot changed the title Add probability-tree 0.1.2 probability-tree:0.1.2 Aug 22, 2026
@typst-package-check typst-package-check Bot added the new A new package submission. label Aug 22, 2026
@mmaunier
mmaunier deployed to Package Check August 22, 2026 13:37 — with GitHub Actions Active
@mmaunier
mmaunier deployed to Package Check August 22, 2026 13:45 — with GitHub Actions Active
@elegaanz elegaanz self-assigned this Aug 24, 2026

@elegaanz elegaanz left a comment

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.

Thank you for this package.


```typ
#proba-tree(data: (
[$Omega$],

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, just $Omega$ (without the square braces around) should work too. No need to change it for your package to be published, but I thought I would let you know, I feel like it can make the code easier to read.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi elegaanz,
ok.

@@ -0,0 +1,12 @@
# typst.toml
[package]
name = "probability-tree"

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.

I'm not convinced that this is not a very descriptive (if not canonical) name for that kind of package. I immediately pictured that kind of tree when I saw the name. Can you pick another one please? You have the opportunity to make a pun with probabilitree for example :) Or anything else that sounds good to you really, as long as it is not super descriptive. Feel free to ask beforehand if you are unsure about a potential new name.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok, let's go for probabilitree : it's ok for me.
One question : should i make another PR after changing the name ?
Between time I made a new version 0.13 with a "short" version to simplify the wrinting of the tree as proposed by a member.
What do you think : new PR with new name and new versiojn at the same time ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

v0.1.3

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.

Not sure if it is worth committing that file. Unless there is a good reason to do it, can you remove it please?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok. I will remove it.

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

Labels

new A new package submission.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants