File: shape-aspect-00.typ

package info (click to toggle)
haskell-typst 0.8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 16,624 kB
  • sloc: haskell: 8,567; xml: 32; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test relative width and height and size that is smaller
// than default size.
#set page(width: 120pt, height: 70pt)
#set align(bottom)
#let centered = align.with(center + horizon)
#stack(
  dir: ltr,
  spacing: 1fr,
  square(width: 50%, centered[A]),
  square(height: 50%),
  stack(
    square(size: 10pt),
    square(size: 20pt, centered[B])
  ),
)