From 32626b7e3608a64f6a7953488876d534e2df8c13 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 17 Jan 2024 19:20:37 -0500 Subject: [PATCH] make numbered equations non-default --- libs.typ | 5 +++++ main.typ | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libs.typ b/libs.typ index ea01115..9bf7b5f 100644 --- a/libs.typ +++ b/libs.typ @@ -42,3 +42,8 @@ body } + +#let numbered_eq = (body) => { + set math.equation(numbering: "(1)") + body +} diff --git a/main.typ b/main.typ index 1eabaa6..5727923 100644 --- a/main.typ +++ b/main.typ @@ -101,7 +101,6 @@ set text(size: normal-size, font: font, weight: "regular", lang: settings.lang) show link: body => text(fill: rgb("#777777"), weight: "bold", body) show math.equation: eq => eq - set math.equation(numbering: "(1)") show figure: fig => { show: pad.with(x: 1em) show image: pad.with(y: 0.5em)