ilm icon indicating copy to clipboard operation
ilm copied to clipboard

Cannot use page function with headings

Open Gobot1234 opened this issue 1 year ago • 1 comments

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!

Gobot1234 avatar May 14 '24 22:05 Gobot1234

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.

talal avatar May 15 '24 11:05 talal