andreasKroepelin / lovelace

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

Make figure kind configurable #16

Open tingerrr opened 4 months ago

tingerrr commented 4 months ago

numbered-title has the implicit assumption of being placed in a figure with kind "algorithm", while this is documented and a sensible assumption, the kind should be configurable for interoperability reasons.

andreasKroepelin commented 4 months ago

What kind of interoperability did you have in mind?

tingerrr commented 4 months ago

If I use another package because I still have complicated algorithms typeset in that, which likewise doesn't support changing the figure kind, it'll create clashes with those figures used here.

I actually ran into this back when using i-figured with lovelace. While i-figured is not an essential package anymore since we now have contexts, a user with a big document that uses it cannot use lovelace without dropping it. Which can require a lot of unnecessary manual work.