Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Scroll on some mathjax formulas #484

AndreWin opened this issue Oct 11, 2017 · 8 comments

Vertical Scroll on some mathjax formulas #484

AndreWin opened this issue Oct 11, 2017 · 8 comments
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open


Copy link


I use Mathjax from here.

On following formulae I get vertical scrollbar on the right hand:

s_{na1} = d_{a1} \left ( \dfrac{\dfrac{\pi}{2} + 2x_1\tg{\alpha}}{z_1} + \inv{\alpha_t} - \inv{\alpha_{a1}} \right )\cos{\beta_{a1}}


My mathjax config:

    tex2jax: {
        inlineMath: [ ["$","$"], ["\\(","\\)"] ],
        displayMath: [ ["$$","$$"], ["\\[","\\]"] ],
        processEscapes: true,
    TeX: {
        Macros: {
            Alpha: "\\mbox{A}",
            Beta: "\\mbox{B}",
            Epsilon: "\\mbox{E}",
            Zeta: "\\mbox{Z}",
            Eta: "\\mbox{H}",
            Iota: "\\mbox{I}",
            Kappa: "\\mbox{K}",
            Mu: "\\mbox{M}",
            Nu: "\\mbox{N}",
            Omicron: "\\mbox{O}",
            Rho: "\\mbox{P}",
            Tau: "\\mbox{T}",
            Chi: "\\mbox{X}",
            and: "\\mbox{&}",
            or: "\\lor",
            exist: "\\exists",
            empty: "\\emptyset",
            P: "\\mbox{P}",
            tan: "\\operatorname{tg}",   // tangent
            tg: "\\operatorname{tg}",    // tangent
            cot: "\\operatorname{ctg}",  // cotangent
            ctg: "\\operatorname{ctg}",  // cotangent
            csc: "\\operatorname{cosec}",     // cosecant
            cosec: "\\operatorname{cosec}",   // cosecant
            arctan: "\\operatorname{arctg}",  // arctangent
            arctg: "\\operatorname{arctg}",   // arctangent
            arccot: "\\operatorname{arcctg}",      // arc cotangent
            arcctg: "\\operatorname{arcctg}",      // arc cotangent
            arcsec: "\\operatorname{arcsec}",      // arc secant
            arccsc: "\\operatorname{arccosec}",    // arc cosecant
            arccosec: "\\operatorname{arccosec}",  // arc cosecant
            sh: "\\operatorname{sh}",     // hyperbolic sine
            ch: "\\operatorname{ch}",     // hyperbolic cosine
            th: "\\operatorname{th}",     // hyperbolic tangent
            cth: "\\operatorname{cth}",   // hyperbolic cotangent
            sinh: "\\operatorname{sh}",   // hyperbolic синус
            cosh: "\\operatorname{ch}",   // hyperbolic cosine
            tanh: "\\operatorname{th}",   // hyperbolic tangent
            coth: "\\operatorname{cth}",  // hyperbolic cotangent
            sgn: "\\operatorname{sgn}",
            mod: "\\operatorname{mod}",
            inv: "\\operatorname{inv}",
            ge: "\\geqslant",
            le: "\\leqslant",
            geq: "\\geqslant",
            leq: "\\leqslant",
            N: "\\mathbb{N}",
            R: "\\mathbb{R}",
            Q: "\\mathbb{Q}",
            Z: "\\mathbb{Z}",
            C: "\\mathbb{C}",
            H: "\\mathbb{H}",
            P: "\\mathbb{P}",
            dmtr: "\\unicode{x2300}", // diameter sign
            deg: "\\unicode{xb0}",    // degree sign
            celdeg: "\\unicode{x2103}"   // degree Celsius sign
        // AutoNumbering of displayed formulas
        equationNumbers: { autoNumber: "AMS" },
        // All mathjax extensions:
        // Source code for all extensions:
        extensions: [
        "color.js", // Color support in LaTeX
        "autobold.js", // support for \boldsymbol{...}
        "AMScd.js", //
        "bbox.js", // support for \bbox[options]{math}
        // "begingroup.js", // mainly for formulas localization
        "cancel.js" // support for strikethrough formulas
        // "HTML.js" // works by default
        // "mhchem.js" // chemical formulas
        // "uniconde.js" // works by default

I asked my question on mathjax repo: mathjax/MathJax#1853 (comment)
Then I tested it on default mkdocs theme and I found that this bug is only when I use mkdocs material theme.

Please help me to fix it.

Best regards,

Copy link

Can you please provide a link to the docs that you host? It's easier to fix then.

Copy link

Yes, this bug is on
Problem formulas are two last numbered ones on this page. They are at the end of this page.

Copy link

Fixed in #486, release will follow shortly.

Copy link

Thank you very much!
Will this update avaliable via pip?

Copy link

Yes, 1.10.3 is just being released, give it a few minutes.

@squidfunk squidfunk added bug Issue reports a bug resolved Issue is resolved, yet unreleased if open labels Oct 11, 2017
Copy link

Thanks you very much! ^_^

Copy link

1.10.3 was released. I increased the padding, that solves it for this formula. I hope that it was some margin/padding issue. If you encounter the error again with another formula, please open a new issue.

Copy link

@squidfunk, OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
None yet

No branches or pull requests

2 participants