e

ezchem

@preview

Draw atomic or ionic structures powered by ctez and single or double line bridge.

v0.1.1
MIT

Package Information

Last Updated
Minimum Typst Version
0.13.1
Authors
gbchu
Categories
utilityvisualization

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/ezchem:0.1.1

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/ezchem:0.1.1": *

Version History

0.1.10.13.1
b3ec780bf01e...
0.1.00.13.1
0fc0c9af7160...

ezchem

Typst Version
Online Documentation

This library can draw atomic or ionic structures and single or double line bridge and so on.

Example

#e-bridge(
  equation: [K] + [Cl<A>O#sub[3] + 6H] + [Cl<B> = KCl + 3] + [Cl<C>#sub[2]$arrow.t$ + 3H#sub[2]O],
  get: (from: <A>, to: <C>, e: 5, tsign: none),
  lose: (from: <B>, to: <C>, e: 5),
)

效果图

#e-bridge(
  equation: [Cu<A2>O + H<A1>#sub[2] = Cu + H#sub[2]O],
  get: (from: <A1>, to: <A2>, e: 2, tsign: none),
)

效果图

#e-bridge(
  equation: [Cl<B1>#sub[2] + 2NaOH = NaCl + NaClO + H#sub[2]O],
  get: (from: <B1>, to: <B1>, e: 1, tsign: none),
)

效果图

#ai-struct(proton: 16, electrons: (2, 8, 6))

效果图

#ai-struct(proton: "z", electrons: (2, 8, 8, "X"))

效果图