andreasKroepelin / lovelace

A Typst package for typesetting pseudocode
MIT License
52 stars 4 forks source link

`booktabs-stroke` can't handle partial strokes #15

Open tingerrr opened 4 months ago

tingerrr commented 4 months ago

The argument booktabs-stroke works fine if a full stroke is passed, but breaks for the inner stroke if only a thickness is passed, e.g. booktabs-stroke: 1pt.

#import "@preview/lovelace:0.3.0": pseudocode-list
#pseudocode-list(title: [My Algorithm], booktabs-stroke: 2pt)[
  + AAA
  + AAA
  + AAA
]

image

This should produce 2pt + black strokes on the outside and a 1pt + black stroke on the inside.

andreasKroepelin commented 4 months ago

Good catch. For future reference, this line has to be extended: https://github.com/andreasKroepelin/lovelace/blob/main/lovelace.typ#L95