Open
Description
Issue Summary
I am using Math Jax 3 with bussproofs. The problem
is observable for example in the Chrome browser.
Boundaries of the SVG box are not correctly computed
leading to problems like:
- uncorrect page width centering
- and missing horizontal scroll bar.
Steps to Reproduce:
- Use Math Jax 3 with bussproofs:
beginning of the HTML document:
<script>
window.MathJax = {
loader: {load: ['[tex]/bussproofs']},
tex: {packages: {'[+]': ['bussproofs']}}
};
</script>
end of the HTML document:
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
</script>
JavaScript call when the plain content has been rendered:
MathJax.typeset();
- This is the second step
Create a small example:
\begin{prooftree}\AxiomC{}
\RightLabel{Ax}\UnaryInfC{p ⊢ p}
\RightLabel{I→}\UnaryInfC{ ⊢ p → p}
\end{prooftree}
Create a larger example:
\begin{prooftree}\AxiomC{}
\RightLabel{Ax}\UnaryInfC{p ⊢ p}
\AxiomC{}
\RightLabel{Ax}\UnaryInfC{¬p ⊢ ¬p}
\RightLabel{E→}\BinaryInfC{¬p, p ⊢ ⊥}
\RightLabel{I→}\UnaryInfC{¬p, p ⊢ ¬ ¬q}
\RightLabel{DNE}\UnaryInfC{¬p, p ⊢ q}
\RightLabel{I→}\UnaryInfC{¬p ⊢ p → q}
\AxiomC{}
\RightLabel{Ax}\UnaryInfC{(p → q) → p ⊢ (p → q) → p}
\RightLabel{E→}\BinaryInfC{(p → q) → p, ¬p ⊢ p}
\AxiomC{}
\RightLabel{Ax}\UnaryInfC{p ⊢ p}
\AxiomC{}
\RightLabel{Ax}\UnaryInfC{¬p ⊢ ¬p}
\RightLabel{E→}\BinaryInfC{¬p, p ⊢ ⊥}
\RightLabel{I→}\UnaryInfC{¬p ⊢ ¬p}
\RightLabel{E→}\BinaryInfC{¬p, (p → q) → p ⊢ ⊥}
\RightLabel{I→}\UnaryInfC{(p → q) → p ⊢ ¬ ¬p}
\RightLabel{DNE}\UnaryInfC{(p → q) → p ⊢ p}
\RightLabel{I→}\UnaryInfC{ ⊢ ((p → q) → p) → p}
\end{prooftree}
- Further steps, etc.
The smaller example has an Ok bounding box:
The larger example has a not Ok bounding box:
Technical details:
See intro and steps.
Supporting information:
You can try it online:
https://www.xlog.ch/runtab/doclet/docs/06_demo/wilson/example42/package.html