From 978057efab6f0f83e0423140211017660efb04e4 Mon Sep 17 00:00:00 2001 From: Yu Cong Date: Fri, 23 May 2025 12:16:51 +0800 Subject: [PATCH] correct frame title. typst cannot properly handle ul/bold/it math... --- firatheme.typ | 11 +++++++++-- touying.typ | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/firatheme.typ b/firatheme.typ index 3c71d61..e97f1ba 100644 --- a/firatheme.typ +++ b/firatheme.typ @@ -40,6 +40,8 @@ linebreaks: self.store.mini-slides.at("linebreaks", default: true), short-heading: self.store.mini-slides.at("short-heading", default: true), ) + } else if self.store.navigation == "line" { + } } @@ -324,7 +326,7 @@ short-heading: true, ), footer: none, - footer-right: context utils.slide-counter.display() + " / " + utils.last-slide-number, + footer-right: none, primary: rgb("#0c4842"), alpha: 60%, subslide-preamble: self => block( @@ -341,10 +343,15 @@ (height: 4em, x: 2em, display-section: false, display-subsection: true, linebreaks: true, short-heading: true), mini-slides, ) - set text(size: 24pt, font: "FiraGO", weight: 400) + set text(size: 24pt, font: ("FiraGO","Source Han Sans SC"), weight: 400) show math.equation: set text(font: "Fira Math") set strong(delta: 200) set par(justify: true) + show heading: it => [ + #set text(size: 1.21em) + #it.body + // #underline(it.body,stroke: 4pt, offset: 4pt) +] show: touying-slides.with( config-page( diff --git a/touying.typ b/touying.typ index ad34ee8..a2edb24 100644 --- a/touying.typ +++ b/touying.typ @@ -6,7 +6,7 @@ #show: fira-theme.with( // aspect-ratio: "16-9", - navigation: "mini-slides", + navigation: "line", config-info( title: [Looong LONG lng Long longlonglonglonglonglong TITLE], subtitle: [Subtitle], @@ -24,7 +24,7 @@ = Section A -== Subsection A.1 +== General piecewise linear convex function *$bb(R)^b bb(Z)^n $* $ x_(n+1) = (x_n + a/x_n) / 2 $