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
MathJax: Is it possible to have two different output formats on single page?

I have a html page which contains maths as TeX that should be converted with mathjax in one block as HTML-CSS and another block as SVG. I'm using requirejs and MathJax v. 2.7.7.

<div class="output-html-css">...
 --------------------------------------------------
|                                                  |
|         This block should be HTML-CSS            |
|                                                  |
 --------------------------------------------------
</div>
<div class="output-svg">
 --------------------------------------------------
|                                                  |
|         This block should be SVG                 |
|                                                  |
 --------------------------------------------------
</div>

Both blocks share the same configuration:

MathJax = {
        jax: ["input/TeX", "output/SVG", "output/HTML-CSS"],
        extensions: ["toMathML.js", "tex2jax.js", "MathMenu.js", "MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
        TeX: {
            extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js", "mhchem.js"],
        },
        tex2jax: {
            inlineMath: [
                ['\\(','\\)'],
                ['[[',']]']
            ],
            displayMath: [
                ['[[$','$]]']
            ],
            balanceBraces: true,

            skipTags: ["script","noscript","style","textarea","pre","code","iframe"],
            ignoreClass: "tex2jax_ignore"
        },
        SVG: {
            useFontCache: true,
            useGlobalCache: false,
            EqnChunk: 1000000,
            EqnDelay: 0,
            font: 'STIX-Web'
        },
    }

Is it possible to tell MathJax that upper block should be rendered as HTML-CSS and lower block should be rendered as SVG?

about 4 years ago · Juan Pablo Isaza
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