// SCI Figure Hub — Typst CeTZ Gibbs Free Energy Profile (CC0-1.0) #import "@preview/cetz:0.3.2" #set page(width: auto, height: auto, margin: 6pt) #cetz.canvas({ import cetz.draw: * // Axes line((0, 0), (11.5, 0), mark: (end: ">"), stroke: 1.1pt) line((0, 0), (0, 5.8), mark: (end: ">"), stroke: 1.1pt) content((5.8, -0.55), text(9pt, weight: "bold")[Reaction Coordinate]) content((-0.65, 2.9), angle: 90deg, text(9pt, weight: "bold")[Free Energy ΔG (eV)]) let draw-pathway(ys, col, dashed: false) = { let st = if dashed { (paint: col, thickness: 1.4pt, dash: "dashed") } else { (paint: col, thickness: 2.2pt) } for (i, y) in ys.enumerate() { let x = 0.8 + i * 2.1 line((x, y), (x + 1.1, y), stroke: (paint: col, thickness: 2.8pt)) if i < ys.len() - 1 { let nx = 0.8 + (i + 1) * 2.1 line((x + 1.1, y), (nx, ys.at(i + 1)), stroke: st) } } } draw-pathway((0.6, 1.9, 3.6, 4.7, 5.2), rgb("#3C5488"), dashed: true) draw-pathway((0.6, 1.5, 2.8, 4.1, 5.2), rgb("#E64B35")) for (i, lbl) in ("*", "*OH", "*O", "*OOH", "O₂").enumerate() { content((1.35 + i * 2.1, 0.25), text(8pt)[#lbl]) } })