andreasKroepelin / lovelace

A Typst package for typesetting pseudocode
MIT License
29 stars 2 forks source link

lovelace does not display captions correctly #4

Closed ethanabrooks closed 6 months ago

ethanabrooks commented 6 months ago

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!

andreasKroepelin commented 6 months ago

Fixed in #1. I need to publish a new version.