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

fletcher:0.4.0 #363

Merged
merged 1 commit into from
Jan 30, 2024
Merged

fletcher:0.4.0 #363

merged 1 commit into from
Jan 30, 2024

Conversation

Jollywatt
Copy link
Contributor

I am submitting

  • a new package
  • an update for a package

This is a substantial update to the CeTZ-based, tikz-cd-esque diagramming package.

You can now use math-mode to specify diagrams more concisely. Styling options have been made more convenient and flexible.

Changes since v0.3.0

  • Add ability to specify diagrams in math-mode, using & to separate nodes.
  • Allow implicit and relative edge coordinates, e.g., edge("d") becomes edge(prev-node, (0, 1)).
  • Add ability to place marks anywhere along an edge. Shorthands now accept an optional middle mark, for example |->-| and hook-/->>.
  • Add “hanging tail” correction to marks on curved edges. Marks now rotate a bit to fit more comfortably along tightly curving arcs.
  • Add more arrowheads for the sake of it: }>, <{, /, \, x, X, * (solid dot), @ (solid circle).
  • Add axes option to diagram() to control the direction of each axis in the diagram's coordinate system.
  • Add width, height and radius options to node() for explicit control over size.
  • Add corner-radius option to node().
  • Add stroke option to edge() replacing thickness and paint options.
  • Add edge-stroke option to diagram() replacing edge-thickness.

Hopefully, I will settle down a bit with the breaking changes after this update.

@laurmaedje laurmaedje added the update A package update. label Jan 30, 2024
@laurmaedje laurmaedje merged commit 26ed9b4 into typst:main Jan 30, 2024
1 check passed
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