Skip to content

typed-smiles:0.6.0#5260

Open
GeronimoCastano wants to merge 1 commit into
typst:mainfrom
GeronimoCastano:typed-smiles-package-0.6.0
Open

typed-smiles:0.6.0#5260
GeronimoCastano wants to merge 1 commit into
typst:mainfrom
GeronimoCastano:typed-smiles-package-0.6.0

Conversation

@GeronimoCastano

Copy link
Copy Markdown
Contributor

I am submitting

  • a new package
  • an update for a package

Changes:

  • Add #mol-weight(smiles-str) to compute molecular weight in g/mol.
  • Add #smiles-inline(...) for height-fitted, baseline-aligned molecules in running text.
  • Add #smiles-cetz(...) to render a molecule as raw CeTZ elements with atom-<i>/bond-<i>-<j>/center anchors for custom compositions.
  • Add #cycle(...) and #step(...) for catalytic-cycle layouts with species on a ring and arc arrows.
  • Add style: "acs" | "rsc" | "nature" | "wiley" journal drawing presets for bond length, label size, stroke, and font.
  • Replace show-all-h with show-h: "all" | int | (indices) for per-atom implicit-hydrogen control.
  • Add opacity for molecule-level fading.
  • Add bond-customizations for per-bond color/stroke/opacity overrides via bond(i, j).
  • Add wavy (!s) and dashed (!d) forced bond styles.
  • Add reaction(flow: "right"|"left"|"up"|"down") to control writing direction, mirroring layout and arrowheads for "left"/"up".
  • Improve acyclic layout to avoid branch collisions.
  • Label cumulene sp carbons so consecutive double bonds stay visually distinct.
  • Trim bonds to the measured glyph extent of bare atom labels for tighter spacing.

@typst-package-check typst-package-check Bot added the update A package update. label Jul 5, 2026
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.

1 participant