sitandr / typst-examples-book

Book of educational examples for Typst
https://sitandr.github.io/typst-examples-book/book
MIT License
162 stars 16 forks source link

Split long tables in a figure #15

Closed apraga closed 5 months ago

apraga commented 7 months ago

Location: not sure where, in the table section ? Importance: tables inside a figure don't split correctly. table

Snippet:


// Without this, the table fails to split upon several pages
#show figure: set block(breakable: true)
#figure(
table(
  columns: 5,
  [Aligner], [publication], [Indexing], [Pairwise alignment], [Max. read length  (bp)],
  [BWA], [2009], [BWT-FM], [Semi-Global], [125],
  [Bowtie], [2009], [BWT-FM], [HD], [76],
  [CloudBurst], [2009], [Hashing], [Landau-Vishkin], [36],
  [GNUMAP], [2009], [Hashing], [NW], [36]
  )
)

table2

sitandr commented 7 months ago

Thank you!

I think that should go to Typst Basics → Must Know → Tables and Grids, a section that is still missing. I will try to add it in nearest future, definitely using this snippet!