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

81
Visualizações
How to modify TeX before it is processed by MathJax v3?

I am attempting to do something similar to this MathJax v2 startup hook, that modifies the TeX command before it is processed (every time before typesetting).

MathJax v3 does not have that Augment logic. Instead, there are startup actions:

window.MathJax = {

  // configuration...

  startup: {
    ready () {

      // MathJax is loaded, but not yet initialized
      // Get TeX here

      window.MathJax.startup.defaultReady();

      // MathJax is ready
    }
  }
}

But I didn't found anywhere in the documentation how to get the TeX command there, before it is processed. How can it be done?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Here is a configuration for MathJax v3 that should do the trick, provided you are loading a component that has only one input processor.

MathJax = {
  startup: {
    ready() {
      MathJax.startup.defaultReady();
      MathJax.startup.document.inputJax[0].preFilters.add(
        ({math}) => {
          if (math.display === false) {
            math.math = '\\displaystyle{' + math.math + '}';
          }
        }
      );
    }
  }
};
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