Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
Why my integral is not displaying bigger with react-better-mathjax?

I'm using react-better-mathjax and when i display integrals, it is not displaying as it should.

As-to-say bigger....

It displays this :

enter image description here

Instead of that :

enter image description here

Here is the code :

var mj = "\\(V_{\\frac{1}{2}sphere(h)} = \\int_0^R \\pi(R^2 - h^2) dh \\)";

return (
          <MathJaxContext>
              <MathJax dynamic hideUntilTypeset={ "every" } >
                  {mj}
               </MathJax>
           </MathJaxContext>
    );

Maybe it's a Latex problem, but I didn't find the answer on the documentation.

Can somebody help me please ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In both Latex, AsciiMath and MathML there is something called display mode and inline mode where display mode is supposed to be used for standalone equations which can use more space and inline mode is supposed to be used for equations in text. In AsciiMath you have to decide whether you want to use display mode or inline mode for the entire document but for Latex and MathML you can use both side by side.

For Latex, which you seem to use, you have to set which delimiters to use for display mode and inline mode in the configuration:

  const config = {
    loader: { load: ["[tex]/html"] },
    tex: {
      packages: { "[+]": ["html"] },
      inlineMath: [["$", "$"]],
      displayMath: [["\\(", "\\)"]]
    }
  }

With this config, you should delimit inline mode math with $ and $. and display mode math with \\( and \\).

With this in place, your example will be typeset like you want.

Sandbox: https://codesandbox.io/s/user-example-9-gbsxe

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!