Publishing math texts and sharing them on the web is usually a big challenge, especially when it comes to lengthy and complex formulas and equations.
However, this could be done with no hassle on P4, and is very easy if you are already familiar with KaTex commands. You can post any expression inline (within the text) or in block (as a separate line), which is handy for big equations.
To add a math element in text, simply surround it by double dollar marks $$\sqrt{x}$$
, and it will automatically convert it to look like this: .
To add a math element in block, use either math
or katex
command code, like this:
For those unfamiliar with KaTex, please refer to its original documentation to view the syntax for all possible math elements.