From f044cc7bafb9b86340af521f691f25e88661cf87 Mon Sep 17 00:00:00 2001 From: darvan42 Date: Sat, 19 Oct 2024 15:44:22 +0200 Subject: [PATCH] Fix deprecated locate syntax (#12) Change the syntax from the deprecated locate, to the new context --- src/lib.typ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.typ b/src/lib.typ index c631a8b..1abec54 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -161,11 +161,11 @@ }, footer-descent: 0%, - footer: locate(loc => { + footer: context { show: pad.with(top: 12pt, bottom: 12pt) - let current-page = loc.page() - let page-count = counter(page).final(loc).at(0) + let current-page = here().page() + let page-count = counter(page).final().first() grid( columns: 1fr, @@ -186,7 +186,7 @@ footer } ) - }), + }, ) // Reverse the margin for the header, the address box and the information box