Open FliegendeWurst opened 3 years ago
Same problem here. I noticed that the overflow will only happen if the prooftree is growing to the right of the root. To the left MathJax will set the width correctly.
Thanks for reporting these. There are indeed a couple of issues with layout, in particular when formulas or labels grow too large.
Likewise, the sequent calculus style rules have some layout problems. Sometimes it helps to swap label site, but that often only mirrors the issue.
The fact is that bussproofs is still a bit experimental, as it becomes clear that a MathML-based rendering model entirely unsuitable for complex layout of that nature.
I have it on the agenda for the 3.2 release to revamp the layout and rendering algorithm. So if you have other corner cases or real world examples with problems, please add them to this thread, as they would be helpful for development.
Here is a real example: (type inference of a lambda term)
Issue Summary
The example below renders incorrectly (see screenshot). Two of the axioms are overlapping and the SVG width is set too low (->overflow).
Steps to Reproduce:
Render this (I used https://mathjax.github.io/MathJax-demos-web/input-tex2svg.html):
Technical details: