From c2fd8f6ad09a2d3329a32b09628bf7b9ae424ad8 Mon Sep 17 00:00:00 2001 From: Anton Bilous Date: Sun, 16 Feb 2025 21:43:16 +0200 Subject: [PATCH] fix image and table count --- template.typ | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/template.typ b/template.typ index 5430c48..c3b2294 100644 --- a/template.typ +++ b/template.typ @@ -461,10 +461,12 @@ #context [ #let pages = counter(page).final().at(0) - #let tables = counter(figure.where(kind: table)).final().at(0) - // alternative: query(figure.where(kind: image)).len() - #let images = counter(figure.where(kind: image)).final().at(0) + #let images = query(figure.where(kind: image)).len() + #let tables = query(figure.where(kind: table)).len() #let bibs = bib-count.final().dedup().len() + /* TODO: why this stopped working? + #let tables = counter(figure.where(kind: table)).final().at(0) + #let images = counter(figure.where(kind: image)).final().at(0)*/ #let counters = ()