File: shape-circle-01.typ

package info (click to toggle)
haskell-typst 0.8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,624 kB
  • sloc: haskell: 8,567; xml: 32; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Test auto sizing.
#set circle(inset: 0pt)

Auto-sized circle.
#circle(fill: rgb("eb5278"), stroke: 2pt + black,
  align(center + horizon)[But, soft!]
)

Center-aligned rect in auto-sized circle.
#circle(fill: red, stroke: green,
  align(center + horizon,
    rect(fill: green, inset: 5pt)[But, soft!]
  )
)

Rect in auto-sized circle.
#circle(fill: red,
  rect(fill: green, stroke: white, inset: 4pt)[
    #set text(8pt)
    But, soft! what light through yonder window breaks?
  ]
)

Expanded by height.
#circle(stroke: black, align(center)[A \ B \ C])