File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 11# import " ../style/font.typ" : ziti , zihao
2- # import " ../style/figures.typ" : figures
2+ # import " ../style/figures.typ" : figures , preset
33# import " ../style/enums.typ" : enums
4- # import " @preview/i-figured :0.2.4 "
4+ # import " @preview/cuti :0.3.0 " : show-cn-fakebold
55
66// 文稿设置,可以进行一些像页面边距这类的全局设置
77# let doc (
5454
5555 show ref . where (form : " page" ): set ref (supplement : [页])
5656
57+ show : preset
5758 show : figures
5859 show : enums
60+ show : show-cn-fakebold
5961
6062 set document (
6163 title : info . title ,
Original file line number Diff line number Diff line change 11# import " @preview/i-figured:0.2.4"
22# import " font.typ" : ziti , zihao
3+ # let preset (
4+ body ,
5+ ) = {
6+ show ref : it => {
7+ if it . element != none and it . element . func () == figure and it . element . kind == " subimage_" {
8+ let q = query (figure . where (outlined : true ). before (it . target )). last ()
9+ ref (q . label )
10+ }
11+ it
12+ }
13+ body
14+ }
15+
316# let figures (
417 appendix : false ,
518 math-level : 2 ,
4962 it
5063 }
5164
52- show ref : it => {
53- if it . element != none and it . element . func () == figure and it . element . kind == " subimage_" {
54- let q = query (figure . where (outlined : true ). before (it . target )). last ()
55- ref (q . label )
56- }
57- it
58- }
59-
6065 body
6166}
6267
You can’t perform that action at this time.
0 commit comments