typst / packages

Packages for Typst.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lovelace does not display captions correctly

ethanabrooks opened this issue · comments

This code:

#import "@preview/lovelace:0.1.0": *
#show: setup-lovelace

#algorithm(caption: [The Euclidean algorithm], pseudocode(
  no-number,
  [*input:* integers $a$ and $b$],
  no-number,
  [*output:* greatest common divisor of $a$ and $b$],
  [*while* $a != b$ *do*],
  ind,
  [*if* $a > b$ *then*],
  ind,
  $a <- a - b$,
  ded,
  [*else*],
  ind,
  $b <- b - a$,
  ded,
  [*end*],
  ded,
  [*end*],
  [*return* $a$],
))

Displays:
image

Thanks for looking into this!

Understood!