typst / templates

Templates that are directly maintained by the Typst team.
MIT No Attribution
228 stars 22 forks source link

Fixed error with new figure system #3

Closed Dherse closed 1 year ago

Dherse commented 1 year ago

There was a compilation error due to the new figure system. This fixes it, this fix requires that PR #624 be merged first. Therefore I expect this will have to wait until the next release.

drupol commented 1 year ago

Issue can be seen here: https://github.com/drupol/typst-document/actions/runs/4626405346/jobs/8183124200

        last 10 log lines:
       > error: unable to determine the figure's `kind`, please specify it manually
       >    ┌─ /nix/store/g2x7vi1vrfvxc730yfi8bpscving3lvb-source/dept-news/main.typ:46:1
       >    │
       > 46 │   #figure(
       >    │ ╭──^
       > 47 │ │   rect(width: 100%, height: 80pt, fill: white, stroke: 1pt),
       > 48 │ │   caption: [Our new department rectangle],
       > 49 │ │ )
       >    │ ╰─^
       >
drupol commented 1 year ago

Why closing the PR ?

drupol commented 1 year ago

The reason of the closing is that @laurmaedje would like to have the attribute kind to be image by default.