#Breakable clue with no apparent difference?

33 messages · Page 1 of 1 (latest)

graceful roost
#

Could someone tell me what is wrong with my code here? ```#import "@preview/ctheorems:1.1.3": *
#import "@preview/gentle-clues:1.2.0": *

#let problem = thmenv(
"problem",
"heading",
0,
(name, number, body) => [

#if name != none { name = "(" + name + ")" }

#clue(
  title: smallcaps[Problem #number #name],
  breakable:true,
)[#body]

]
)

#clue(breakable:true)[
Hi #lorem(100)

  1. #lorem(100)
  2. #lorem(100)
  3. #lorem(100)
  4. #lorem(100)
  5. #lorem(100)
  6. #lorem(100)
  7. #lorem(100)
  8. #lorem(100)
    ]

#problem[
Hi #lorem(100)

  1. #lorem(100)
  2. #lorem(100)
  3. #lorem(100)
  4. #lorem(100)
  5. #lorem(100)
  6. #lorem(100)
  7. #lorem(100)
  8. #lorem(100)
    ]
#

This is the output

#

for the first one, it correctly breaks

#

the second one doesn't break

#

why?

left eagle
#

That's a classic! To quote the ctheorems manual:

#import "@preview/ctheorems:1.1.3": *
#show: thmrules

The second line is crucial for displaying thmenvs and references correctly!

graceful roost
#

Thanks, one should indeed read the manual I suppose haha

graceful roost
#

with bullet points it breaks correctly

#

with this

#

with numbered items, it doesn't

graceful roost
#

@left eagle any idea on this? Maybe there is some sort of bug ?

left eagle
#

looks like some container is not set to be breakable, do you have a minimal example?

#

But strange that it works with bullet points

#

@graceful roost do you have a show rule on enum?

graceful roost
#

Oh yeah

#

I figured out what's causing the issue

#

show enum: a => box(a, width: 100%)

#

But I'm pretty sure I put that there for something important haha

#

if I remove that, it works.

#

But I put that there, if I remember correctly, to center math equations within lists

#

so that's not great

#

Or I do not remember why I put that there actually

#

I do now

#

It's because of this issue

#

otherwise the math gets slanted to the left

#

anyways

#

I deleted that line and added

#
    #block(width: 100%, inset: 0em, [
      #set align(center)
      #e
  ])]
#

that one

#

I think that would be it ?