From 31b2c204c39b234e4be4bf5c152003f1b98cd0d4 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Fri, 22 Nov 2024 10:29:16 +0100 Subject: [PATCH] use rich-counter instead of headcount --- lib.typ | 10 ++++++---- .../great-theorems-customized.typ | 2 -- template/main.pdf | Bin 90293 -> 90293 bytes 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib.typ b/lib.typ index 0656286..e78e9aa 100644 --- a/lib.typ +++ b/lib.typ @@ -3,9 +3,13 @@ #import "@preview/hydra:0.5.1": hydra #import "@preview/equate:0.2.1": equate #import "@preview/i-figured:0.2.4": reset-counters, show-equation -#import "@preview/headcount:0.1.0": reset-counter +#import "@preview/rich-counters:0.2.2": rich-counter -#let mathcounter = counter("mathblocks") // counter for mathblocks +// counter for mathblocks +#let mathcounter = rich-counter( + identifier: "mathblocks", + inherited_levels: 1 +) #let template( // personal/subject related stuff author: "Stuart Dent", @@ -179,8 +183,6 @@ show heading: it => { it } } -// from headcount for theorems -show heading: reset-counter(mathcounter, levels: 1) // ------------------- other settings ------------------- // Settings for Chapter in the outline show outline.entry.where( diff --git a/template/customization/great-theorems-customized.typ b/template/customization/great-theorems-customized.typ index a6a4d0d..426e56d 100644 --- a/template/customization/great-theorems-customized.typ +++ b/template/customization/great-theorems-customized.typ @@ -1,7 +1,6 @@ // packages #import "../../lib.typ": mathcounter #import "@preview/great-theorems:0.1.1": * -#import "@preview/headcount:0.1.0": * // local #import "colors.typ": * @@ -10,7 +9,6 @@ radius: 0.3em, inset: 0.8em, counter: mathcounter, - numbering: dependent-numbering("1.1"), breakable: false, titlix: title => [(#title):], ) diff --git a/template/main.pdf b/template/main.pdf index 19b6396ad1082301cf995344d14373a36a8bacd7..3cffe1cc92201c609dbee01e1f72dbcdcfc9ed69 100644 GIT binary patch delta 574 zcmdmbkag=p)(xNLiy0`G8Ymbj1aT>Vfqr_ip@OO5W{w5dwCZ=siU{_5ozB&=O0SsE z_g_v&``a&pOdF|hJH;NK?|gN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