Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

189
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda