Sign in

what is the best way to post math formula with publii ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2229

    I’ve got some markdown text containing latex formula. Mardown seems to work well with the last pre release of Publii, but I’m still having issues with latex formula. Does anyone found a way to display math formula correctly when you make a post ? I’m thinking to convert them to jpeg, but it’s not the ideal.


    Thanks for your help !


    I actually found a working solution for anyone having the same need with using MathJax :

    In publii app, you click on “Tools” -> “Custom HTML”, in “head”, you add the following :

    <script type="text/javascript" id="MathJax-script" async

    It will then render your latex formula. If you have a factorisation, you need to put spaces before and after a *, if not, it won’t render the formula.
    Ex :

    $$V_{min}=V_{init}*k= V_{init}*\frac{1}{1-n}$$

    will not work while

    $$V_{min}=V_{init} * k= V_{init} * \frac{1}{1-n}$$

    will render correctly.


    Hope it’ll work for you !



Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.