Did you know that WordPress has built-in support for subscript and superscript characters? For example, to display H 2 0, you would write it like this:. There are many TinyMCE buttons that are disabled by default so as not to clutter up the WordPress editor with buttons that most people rarely use. If you find that you often need to add characters above or below the normal line of type, you may want to consider adding the Subscript and Superscript buttons to the visual editor for your own convenience. The WordPress codex section on enabling hidden MCE buttons , which demonstrates how to filter the button list.
One of the main advantages over similar services is capability of using native LaTeX syntax directly in the posts, pages and comments without special enclosing tags for every equation. Sincere gratitude to Kim Kirkpatrick for his contributions to this plugin. Miss you my dear friend, may your soul rest in peace.
Not quite what you're looking for?
In my last post I needed to display some mathematical formulas and knew that I should be able to do that on WordPress. Therefore, after I published that post I set out to create a new type of Gutenberg block to give me a visual formula typesetting block and this is the story of that easy hour I spent hacking away. When I started out I knew that I wanted an interactive formula builder. I set out then with a few simple requirements, in order:. This is in line with how we prefer visual representations in Gutenberg over text, codes, and shortcodes. When typing my formulas I want to be able to instantly see the rendered form so I can quickly correct my mistakes. That minor change of focus interrupts my thoughts and so I want to close the feedback loop. It needs to be practically instant to get out of my way. Finally, I want my formulas to appear crisp and beautiful in the rendered page output. The actual work of creating this block was trivial.
There are far more extensive resources out there see links below. This is mainly for helping to get started with inserting math into WordPress. It answers the basic questions I had to dig around for when I first started. KaTex looks far better than Jetpack. KaTeX generates typeface, so it looks crisp even on zooming. To switch, then, would mean updating all my previous posts.