1

I tried to use \mathlarger with integrals with htlatex but the MathJax page generated doesn't seem to support \mathlarger : you can see the result on this link :

Issue with \mathlarger

Latex source :

\begin{equation}
P_{a}(x)\cdot P_{b}(x)=\mathlarger{\int}_{-1}^{+1}\,P_{a}(x)\,P_{b}(x)\,dx
\label{eq18}
\end{equation}

Are there other alternatives to circumvent this issue with htlatex ?

michal.h21
  • 50,697
  • 1
    please add a full sample document and a configuration you used for the conversion. it will be necessary to provide some definition of \mathlarge for mathjax – michal.h21 Jun 01 '18 at 10:34
  • 1
    Did you ask at the MathJax users Group: https://groups.google.com/forum/#!forum/mathjax-users? – albert Jun 01 '18 at 10:42
  • Did you see the posting Big integral sign? In particular, did you try using the macros of the bigints package: \bigintssss, \bigintsss, \bigintss, \bigints, and \bigint? – Mico Jun 01 '18 at 11:22

1 Answers1

1

You need to provide mathjax declaration for the \mathlarge command. It can be done using the following configuration file:

\RequirePackage{mathjax-latex-4ht}
\Preamble{xhtml}
\begin{document}
\Configure{@HEAD}{\HCode{\unexpanded{<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: {Macros : {  mathlarger: ["{\\large \#1}",1] }}});</script>}}}
\EndPreamble

It uses mathjax-latex-ht package from the helpers4ht bundle for MathJax loading. The declaration is added using:

\Configure{@HEAD}{\HCode{\unexpanded{<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: {Macros : {  mathlarger: ["{\\large \#1}",1] }}});</script>}}}

This is configuration code for MathJax, you can use commands supported by MathJax to change the font size.

This is the result:

enter image description here

I've used a following mwe:

\documentclass{article}
\usepackage{amsmath}
\usepackage{relsize}

\begin{document}
\begin{equation}
  P_{a}(x)\cdot P_{b}(x)=\mathlarger{\int}_{-1}^{+1}\,P_{a}(x)\,P_{b}(x)\,dx
  \label{eq18}
\end{equation}

\end{document}
michal.h21
  • 50,697