mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-11-09 10:39:41 -06:00
9 lines
258 B
Python
9 lines
258 B
Python
import yaml
|
|
with open("books/shared/_includes/notation_registry.yml") as f:
|
|
data = yaml.safe_load(f)
|
|
|
|
for var in data["variables"]:
|
|
latex = var["latex"]
|
|
if latex.count('{') != latex.count('}'):
|
|
print(f"BROKEN: {var['macro']} -> {latex}")
|