Open ice1000 opened 3 months ago
It is a long term issues that how to show long math on small screen devices. The canonical way is breaking down equations manually:
#import "@preview/book:0.2.4": get-page-width
#let page-width = get-page-width()
#if page-width < 400pt { $shorter$ } else { $ longer $ }
Notably, this also happens in writing math in LaTeX.
Any smarter idea?
We can turn overflow-x: hidden
into overflow-x: auto
, but it is not nice to have a page with overflowed content.
Any smarter idea?
Can every math block be in its own box and make that box horizontally scrollable? Is this very hard to achieve?
I don't want to ask for something super difficult...
We can turn
overflow-x: hidden
intooverflow-x: auto
, but it is not nice to have a page with overflowed content.
Would be nice if this can be a custom option!
Code:
On mobile, it is truncated:
Trebor said maybe we should change the css into
overflow-x: auto
, currently it saysoverflow-x: hidden
, is that why?