How to display latex and math equations in Zendesk Guide?

2 Comments

  • Sebastiaan Wijchers
    Comment actions Permalink

    Hello Cyprien,

    This can't be done natively, but I guess it can be done when you edit your theme and make use of third party JavaScript libraries. Let me know if you're interested in such a solution, then I'll walk you through the steps.

    With kind regards,

    Sebastiaan

    0
  • Sebastiaan Wijchers
    Comment actions Permalink

    Just had a quick peak at this (was looking for something related, syntax highlighting of code blocks).

    For latex, this can be done quite easy it seems.

    When you edit your theme, open up 'document_head.hbs' and add:

    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>

    That's all! 

    It will turn:

    When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
    $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

    Into:

    4

Please sign in to leave a comment.

Powered by Zendesk