Open acsor opened 3 months ago
Hmm good question. Can a #grid
be split into multiple columns?
Using grid
was indeed one of my first thoughts. But then what about the numbering of lines in the algorithm? How would one continue it, even manually, to the second (or third) column? I have tried using 1.
lists (aka enum
) within pseudocode-list
to manipulate the numbering, but I saw no change. I think It would instead be better if the numbering was managed internally by lovelace
across multiple columns.
Using columns
works reasonably well, which makes sense as that is its primary use case. But lovelace
would need to internally do the column wrapping and do some necessary contextual calculations to get the size right. This way one could have a full spanning header with multiple columns of code.
Here's a contrived use case that already works, but would create a repeating header in all columns.
#import "@preview/lovelace:0.3.0"
#block(height: 100pt, columns(5, lovelace.pseudocode-list(title: [My Algorithm])[
+ AAA
+ AAA
+ AAA
+ AAA
+ AAA
+ AAA
+ AAA
+ AAA
]))
I am currently writing a long algorithm using
pseudocode-list
wrapped inside afigure
, and while allowingfigure
to break up into multiple pages works fine, I would also like to be able to split thepseudocode-list
output up into two columns, so that it could fit within a single page. Is it possible doing this with the current version oflovelace
? If not, could some option be added to make this possible?