Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

194
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda