mirror of
https://github.com/szdytom/LADRSolutions.git
synced 2025-10-20 08:50:17 +00:00
update styles
Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
parent
9bf231157c
commit
e3a8cfceb5
18
styles.typ
18
styles.typ
@ -15,20 +15,24 @@
|
|||||||
#let ee = "e"
|
#let ee = "e"
|
||||||
#let ii = "i"
|
#let ii = "i"
|
||||||
|
|
||||||
#let showy_wrapper(title: "", wrap-border: none, ..args) = {
|
#let margin-wrapper(margin: 2.5em, body) = {
|
||||||
|
set align(center)
|
||||||
|
block(inset: (
|
||||||
|
left: margin,
|
||||||
|
), width: 100%, body)
|
||||||
|
}
|
||||||
|
|
||||||
|
#let showy_wrapper(title: "", margin: none, ..args) = {
|
||||||
let b = if title != "" {
|
let b = if title != "" {
|
||||||
showybox(title: text(font: zhfont_sans, title), ..args)
|
showybox(title: text(font: zhfont_sans, title), ..args)
|
||||||
} else {
|
} else {
|
||||||
showybox(title: title, ..args)
|
showybox(title: title, ..args)
|
||||||
}
|
}
|
||||||
|
|
||||||
if wrap-border == none {
|
if margin == none {
|
||||||
b
|
b
|
||||||
} else {
|
} else {
|
||||||
set align(center)
|
margin-wrapper(b)
|
||||||
block(inset: (
|
|
||||||
left: wrap-border,
|
|
||||||
), width: 100%, b)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +43,6 @@
|
|||||||
color: theme_color.darken(40%),
|
color: theme_color.darken(40%),
|
||||||
sep-thickness: 0pt,
|
sep-thickness: 0pt,
|
||||||
font: zhfont_sans
|
font: zhfont_sans
|
||||||
//align: center
|
|
||||||
),
|
),
|
||||||
frame: (
|
frame: (
|
||||||
title-color: theme_color.lighten(80%),
|
title-color: theme_color.lighten(80%),
|
||||||
@ -92,6 +95,7 @@
|
|||||||
set highlight(fill: none, stroke: (
|
set highlight(fill: none, stroke: (
|
||||||
bottom: 4pt + theme_color.lighten(80%)
|
bottom: 4pt + theme_color.lighten(80%)
|
||||||
))
|
))
|
||||||
|
set footnote(numbering: "注1")
|
||||||
|
|
||||||
v(10fr)
|
v(10fr)
|
||||||
h(2fr)
|
h(2fr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user