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

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

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 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