Skip to content
/ ezchem Public

A typst lib draw atomic or ionic structures powered by ctez and single or double line bridge.

License

Notifications You must be signed in to change notification settings

gbchu/ezchem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ezchem

Typst Version MIT License Online Documentation

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

Usage

#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"))

效果图

Changelog

0 . 1 . 1

  • 新增离子式
  • 优化代码
  • typst 版本升级至 0.14.0

0 . 1 . 0

  • 初版发布,添加下列功能
    • 单、双线桥
    • 原子、离子结构示意图

About

A typst lib draw atomic or ionic structures powered by ctez and single or double line bridge.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages