How to avoid using `display()` function in math mode?

The challenge is all in the question: I’d love to write $cases(sum_(n=1)^infinity a_n=?)$ and make it look like $cases(display(sum_(n=1)^infinity a_n=?))$ - I do wonder if #show or #set can be used in this case, as anything I tried was erroring.

Sadly this does not work either:

#math.display(
  $ cases(
    sum_(n=0)^N
  ) $
)

Try

#show math.equation:it=>math.display(it)
1 Like

Unfortunately not - my best guess is the sum symbol becomes ‘immune’ to this when it is put inside cases() somehow.

I don’t know this is what you want,

#math.display(
  $ cases(
    display(sum_(n=0)^N)
  ) $
)

or you can do like this

#show math.equation:it=>math.display(it)

$ cases(
    display(sum_(n=0)^N)
  ) $

yeah, basically I was looking for a way to avoid having to use display() at all, so that every time I use sum() it gets automatically displayed in full height without having to use the function.

I hope this will help you

#show math.cases:it=>{
    show math.sum: math.display

    it
}


$cases(
    sum_(n=0)^n,
    
)$