Figures
<KScript.Document title="Gliders" to="'gliders.pdf'">
<Figure path="glider.png" caption="A glider over four generations." id="fig-glider" width="0.8" />
</KScript.Document>import KScript.Document
Document(title: 'Gliders', to: 'gliders.pdf') {
Figure(path: 'glider.png', caption: 'A glider over four generations.', id: 'fig-glider', width: 0.8)
}path: is a PNG or JPEG, relative to the script. width: is the share of the text width (0.5 or '50%'). Figures with captions are numbered for [#id].