File tree 6 files changed +27
-1
lines changed
tests/regressions/precentage-margin
6 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
// `+ 0%` forces this to be a relative length
30
30
margin = util . auto-or (margin , () => (2.5 / 21 ) * min ) + 0%
31
- margin . length . to-absolute () + (min * margin . ratio )
31
+ margin . length . to-absolute () + (height * margin . ratio )
32
32
}
33
33
34
34
// / #property(requires-context: true)
Original file line number Diff line number Diff line change
1
+ # generated by tytanic, do not edit
2
+
3
+ diff /**
4
+ out /**
Original file line number Diff line number Diff line change
1
+ // / Synopsis:
2
+ // / - Tracked in #31.
3
+ // / - The smallest page should only be used for the `2.5 / 21` fallback.
4
+
5
+ # import " /src/lib.typ" : hydra
6
+
7
+ # set page (
8
+ paper : " a4" ,
9
+ margin : (top : 10% ),
10
+ header : context hydra (1 , skip-starting : false ),
11
+ )
12
+
13
+ # show heading . where (level : 1 ): it => pagebreak (weak : true ) + it
14
+
15
+ = Chapter 1
16
+ # lorem (100 )
17
+
18
+ = Chapter 2
19
+ # lorem (200 )
20
+
21
+ = Chapter 3
22
+ # lorem (200 )
You can’t perform that action at this time.
0 commit comments