Skip to content

Commit 2d347f8

Browse files
amakerlifeMr-Python-in-China
authored andcommitted
feat: 为页码添加超链接
1 parent 4f744d3 commit 2d347f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typst-template/main.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
},
371371
numbering: (now, total) => [#text(
372372
size: 10pt,
373-
)[第 #(now) 页 ~~~~ 共 #text(fill: rgb("#0000ff"))[#(total)] 页]],
373+
)[第 #(now) 页 ~~~~ 共 #link((page: total, x: 2.5cm, y: 1.5cm))[#text(fill: rgb("#0000ff"))[#(total)]] 页]],
374374
)
375375

376376
#for (i, p) in problems.enumerate() {

0 commit comments

Comments
 (0)