talal / ilm

A versatile, clean and minimal template for non-fiction writing. Ideal for class notes, reports, and books.
https://typst.app/universe/package/ilm
MIT No Attribution
65 stars 9 forks source link

Cannot use page function with headings #7

Closed Gobot1234 closed 2 months ago

Gobot1234 commented 4 months ago

Really like this template I'm running into issues using the page function with inner headings.

Code

#import "@preview/ilm:1.1.1": *

#show: ilm.with(
  title: [Process Design - G11],
  author: "",
  abstract: [],
  bibliography: bibliography("refs.bib"),
  figure-index: (enabled: true),
  table-index: (enabled: true),
  listing-index: (enabled: true)
)

#page(flipped: true)[
  = PID
#figure(
  align(center)[#image("PID.svg", width: 100%)],
  caption: [A figure to show the PID for the plant],
) 
#table(
  columns: 5,
  [Gross numbers]
)
]

Error

Pagebreaks are not allowed inside of containers line (failed in package "@preview/ilm:1.1.1")

Thanks!

talal commented 4 months ago

Thanks for the report. I can reproduce this error.

I'll try to debug and fix it when I have some free time.

I will happily accept a pull request if this is urgent for you and you want to fix it yourself.