How to display latex and math equations in Zendesk Guide?
Hello,
I am using Zendesk Guide to create technical articles which require to input greek symbols, math equations and other special syntax.
Is there a way Zendesk Guide can support latex to do that?
I know that other editors like wordpress can interpret latex using expressions such as
$
latex f(x_1,x_2)=x_1^2+x_2^2
$
Can I do the same in Zendesk Guide?
Thank you!

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

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=TeXMMLAM_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^24ac} \over 2a}.$$Into:
Please sign in to leave a comment.
2 Comments