typst-templates/legacy/chem.typ

29 lines
530 B
Plaintext
Raw Normal View History

2023-08-27 11:13:11 -04:00
// chemistry notes
2024-03-30 15:19:01 -04:00
#import "../main.typ": gen_preamble, doc_template, lref
2023-08-27 11:13:11 -04:00
2023-12-02 20:47:28 -05:00
// chemical state indicators (use these as subscripts)
2023-08-27 11:13:11 -04:00
#let aq = [$("aq")$]
#let liq = [$("l")$]
#let gaz = [$("g")$]
#let sol = [$("s")$]
2023-08-28 19:30:31 -04:00
#let chem = (block: false, body) => {
math.equation(block: block, math.upright(body))
2023-08-27 11:13:11 -04:00
}
#let template(
title: none,
authors: none,
suffix: none,
prefix: none,
body
) = {
2023-12-02 20:47:28 -05:00
doc_template(title: title, {
2023-08-27 11:13:11 -04:00
gen_preamble(title: title, authors: authors, suffix: suffix, prefix: prefix)
body
})
}