Skip to content

schang412/typst-whalogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst Package MIT License User Manual

Whalogen

Whalogen is a library for typsetting chemical formulae and reactions with Typst, inspired by mhchem.

Usage

#import "@preview/whalogen:0.3.0": ce

This is the formula for water: #ce("H2O")
This is a chemical reaction: #ce("HCl + H2O -> H3O+ + Cl-")
Whalogen aligns properly in math mode:
$
#ce("CO2 + C &-> 2CO")\
#ce("CH4 + 2O2 &-> CO2 + 2H2O")
$
Charges apply correctly: #ce("H+ + [AgCl2]-")
Nuclides and isotopes: #ce("@Th,227,90@^+")
Different reaction arrows: #ce("A <=> B ->[H2O] C")
Oxidation number support: #ce("|Mn,+II|")

See the manual for more details and examples.

About

A port of LaTeX mhchem to Typst

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages