• Hi, I’ve been using LaTeX2HTML for my blog and it’s great! Thanks a lot. I’m wondering if it’s possible to increase the size of the text that is presented with \section, for example I’ve tried the following, without success:
    <div style="font-size: 2em;"> \section{The Fundamental Theorem of Calculus} </div>

    will there be a solution? thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Van Abel

    (@van-abel)

    You can do it at the LaTeX2HTML Plugin setting page, which has a css setting block, and add

    .latex-section {
    font-size: 2em;
    }

    which should work.

    Thread Starter SaloWP

    (@salowporg)

    Thank you very much! Yes, it worked for me, however it was with the “_” i.e. “.latex_section”. Anyway, now my question is, how do I change the font of the “.latex_section” and also make it the same as the font of my theme?
    Regards.

    Plugin Author Van Abel

    (@van-abel)

    That’s easy, just check you theme’s font and add it to the class .latex_section, e.g.
    .latex_section {
    font-size: 16pt;
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    font-variant: normal; /* Ensures normal letter casing */
    }

    Thread Starter SaloWP

    (@salowporg)

    “Great! Thank you very much, I did it, and it worked perfectly. One last question: is it possible to change the font of the mathematical symbols to another one? I mention this because they are too thin, very fine in thickness. Could they be changed to, for example, ‘Cambria Math,’ which is used by the latest version of Microsoft Word, or any other font that is not so thin? I hope this is possible. Regards.”

    Plugin Author Van Abel

    (@van-abel)

    Apologies for the delay. It appears that MathJax supports certain mathematical fonts—not including Cambria Math, which is a commercial font of Microsoft Word—such as those listed at https://docs.mathjax.org/en/latest/output/fonts.html.

    Here is an example configuration for the latex2html settings; hopefully, it will function correctly (though I haven’t tested it):

    MathJax.Hub.Config({
        TeX: {
          extensions: ["autoload-all.js"],
          Macros: {
            RR: "{\\mathbb{R}}"
          },
          equationNumbers: { autoNumber: "AMS" },
          TagSide: "right",
          TagIndent: ".8em",
          MultLineWidth: "85%",
          font: "firas"
        }
      });
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.