File: image-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 (12 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// Test configuring the size and fitting behaviour of images.

// Set width and height explicitly.
#box(image("/assets/files/rhino.png", width: 30pt))
#box(image("/assets/files/rhino.png", height: 30pt))

// Set width and height explicitly and force stretching.
#image("/assets/files/monkey.svg", width: 100%, height: 20pt, fit: "stretch")

// Make sure the bounding-box of the image is correct.
#align(bottom + right, image("/assets/files/tiger.jpg", width: 40pt, alt: "A tiger"))