correct frame title.

typst cannot properly handle ul/bold/it math...
This commit is contained in:
Yu Cong 2025-05-23 12:16:51 +08:00
parent 287d80636c
commit 978057efab
2 changed files with 11 additions and 4 deletions

View File

@ -40,6 +40,8 @@
linebreaks: self.store.mini-slides.at("linebreaks", default: true), linebreaks: self.store.mini-slides.at("linebreaks", default: true),
short-heading: self.store.mini-slides.at("short-heading", 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, short-heading: true,
), ),
footer: none, footer: none,
footer-right: context utils.slide-counter.display() + " / " + utils.last-slide-number, footer-right: none,
primary: rgb("#0c4842"), primary: rgb("#0c4842"),
alpha: 60%, alpha: 60%,
subslide-preamble: self => block( subslide-preamble: self => block(
@ -341,10 +343,15 @@
(height: 4em, x: 2em, display-section: false, display-subsection: true, linebreaks: true, short-heading: true), (height: 4em, x: 2em, display-section: false, display-subsection: true, linebreaks: true, short-heading: true),
mini-slides, 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") show math.equation: set text(font: "Fira Math")
set strong(delta: 200) set strong(delta: 200)
set par(justify: true) 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( show: touying-slides.with(
config-page( config-page(

View File

@ -6,7 +6,7 @@
#show: fira-theme.with( #show: fira-theme.with(
// aspect-ratio: "16-9", // aspect-ratio: "16-9",
navigation: "mini-slides", navigation: "line",
config-info( config-info(
title: [Looong LONG lng Long longlonglonglonglonglong TITLE], title: [Looong LONG lng Long longlonglonglonglonglong TITLE],
subtitle: [Subtitle], subtitle: [Subtitle],
@ -24,7 +24,7 @@
= Section A = 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 $ $ x_(n+1) = (x_n + a/x_n) / 2 $