From 0c4b347bc4957da12c61ef98f532d91ac95ae089 Mon Sep 17 00:00:00 2001 From: OrangeX4 <318483724@qq.com> Date: Sun, 4 Feb 2024 19:52:40 +0800 Subject: [PATCH] fix: fix simple and dewdrop themes --- themes/dewdrop.typ | 4 ++-- themes/simple.typ | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/themes/dewdrop.typ b/themes/dewdrop.typ index 52437d8c0..95fdc1600 100644 --- a/themes/dewdrop.typ +++ b/themes/dewdrop.typ @@ -183,7 +183,7 @@ if self.d-mini-slides.section { for slide in section.children.filter(it => it.kind == "slide") { final-count += 1 - if final-count == current-count { + if i == current-i and final-count == current-count { [#link(slide.loc, sym.circle.filled)] } else { [#link(slide.loc, sym.circle)] @@ -196,7 +196,7 @@ for subsection in section.children.filter(it => it.kind != "slide") { for slide in subsection.children { final-count += 1 - if final-count == current-count { + if i == current-i and final-count == current-count { [#link(slide.loc, sym.circle.filled)] } else { [#link(slide.loc, sym.circle)] diff --git a/themes/simple.typ b/themes/simple.typ index 6ac4f9b96..8236730e6 100644 --- a/themes/simple.typ +++ b/themes/simple.typ @@ -5,10 +5,6 @@ #import "../utils/states.typ" #let slide(self: utils.empty-object, footer: auto, ..args) = { - self.page-args = self.page-args + ( - footer-descent: 1em, - header-ascent: 1em, - ) if footer != auto { self.simple-footer = footer } @@ -83,6 +79,8 @@ fill: self.colors.neutral-lightest, header: header, footer: footer, + footer-descent: 1em, + header-ascent: 1em, ) // register methods self.methods.slide = slide