Writing LaTeX formulas with MathJax on Wordpress site: the simplest way (possibly without affecting header.php)?

I'm trying to add some math formula using LaTeX on the math part of my site, http://onlinemathbiz.com/linear-algebra/. I've already installed MathJax, and I can see it from my settings. However, when I try to edit the above site with Elemenator, I'm having problem to display the math. Here's what I've tried: I went on to edite it with Elementor, then first selected the widget "Text Editor" and then "custom HTML", and tried typing the following: $\sqrt(2)$ [math] \sqrt(2) [/math] ...but …
Category: Web

Making Mathjax dynamic so it renders input without page refresh

I use the Simple Mathjax plugin on my Wordpress site to allow users to add nicely formatted mathematics by writing it within dollar signs, $...$ or $$...$$. This works on pages and in posts but not in chat windows. After reading much documentation and searching for answers to my issue, I found out that the MathJax script is run at onload of the page itself. So, after page refresh. Then all $...$ $$...$$ occurrences are formatted nicely. But I need …
Category: Web

Options for math equations rendering in WP in own server

I would like to write an article for a WP-site and include math equations. The site is hosted on own/rented servers (i.e. site is not a free or paid WP-blog). The owners of the site are not technical and have no idea how to setup this but can follow simple instructions if needed. I have no admin rights on their server whatsoever and I do not want to have. Firstly, I am looking to what choice there is out there …
Category: Web

How to use mhchem in wordpress?

I need to write chemical formulae in WordPress posts. For this I want to use mhchem package. I am open to use a plugin for that but there seems to be none in WordPress.org repository. As mentioned here, mhchem extension can be enabled in mathjax configurations by adding following to the extensions array in the TeX block. TeX: { extensions: ["mhchem.js"] } I am able to load Mathjax on my server (usingMathjax-Latex Plugin.) Since Mathjax is available on my server, …
Category: Web

MathJax inside shortcode

In my custom theme I included some shortcodes. One of them is called [alert]...[/alert] and results in a bootstrap alert box. It accepts a type (warning, danger, info or success), a title and the main content. The output is a simple return: return '<div class="alert alert-' . $atts['type'] . '" role="alert"><p class="alert-title">' . $atts['title'] . '</p>' . $content . '</div>'; I need to wrap an important math formula by one of these alerts, so I wrote: [alert type="warning" title="Important Formula"][latex]a^2 …
Category: Web

Is there any better way to write math in latex other than $latex **$

Question is as in the title. Is there any better way to write math in latex other than writing $latex (some code here)$? This is annoying. Is there any better way to do this? I see that theorem environment does not work in latex.. Can you suggest some thing? I have added necessary plugins and $latex x^2$ is giving me x^2 in math mode.. No problem with that.
Category: Web

custom configuration for a mathjax-latex installation

I'm experimenting with a bitnami wordpress service on an amazon hosted VM, and have installed the mathjax-latex plugin. This works when I configure it to use the 'Use MathJax CDN Service', but I'd like to have some of my own macros. Per the readme, I put a copy of the MathJax tree under plugins/mathjax-latex/MathJax: wget https://github.com/mathjax/MathJax/zipball/v2.3-latest mv v2.3-latest ~/tmp/mathjax-v2.3-latest.zip unzip ~/tmp/mathjax-v2.3-latest.zip mv mathjax-MathJax-78ea6af MathJax so that it sits here: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/mathjax-latex/MathJax Under 'Custom MathJax location, if you are not using the …
Category: Web

Recommendations for a LaTeX Plugin?

I need mathematics on a WordPress site and I'm having trouble finding a suitable LaTeX plug-in. I've tried several solutions including MathJax (which is slow and renders inconsistently) and the WP QuickLaTeX plugin which works well but does not allow displayed equations (only inline equations) and stores all images on an external site. I'd like a plugin that allows inline and displayed equations, stores images locally and does not take an age to render the maths on a page. Does …
Category: Web

Matrix problem with MathJax plugin

My code LaTex matrix is as follows: [latex]\begin{matrix} জাহাঙ্গীর খান\\ কালা জাহাঙ্গীর\\ ৩২\\ বাদল খান\\ নোয়াপুর \end{matrix}[/latex] But the output says: Formula does not parse. Even following code is not working. [latex]\begin{matrix} নোয়াপুর \end{matrix}[/latex] I have used Unicode Bangla here as matrix elements.
Category: Web

Conflict between mathax and wp-Typography

Basically and the two plugins mentioned above installed and functioning. But in math posts, my math code is getting hyphenated, so I get mathjax errors like: Undefined control sequence \righ (the intended command was \rightarrow). Searching I could not find anyone with a similar problem, so I resorted to the wisdom of SE :-) Ideas? EDIT: here are the links for the plugins: Mathjax-latex and wp-Typography.
Category: Web

Using MathJax in text

I have installed a Mathjax plugin on my local wordpress installation, and the plugin works fine. However, I can't get it to show Latex in-text; it creates an own line for every latex formula. I end up with pages like this (this is an extreme example to get my point across better :)): How can I make it work to show Latex in-text? I've tried multiple plugins and they all seem to have this issue, with no option to resolve …
Category: Web

Compatibility of MathJax extension and JetPack

I just installed the MathJax Extension for Wordpress because I did not really like the way the math were rendered with the [latex] tags provided with the JetPack. If I use the classic $$, the blog renders the equation using MathJax. However, if I keep using [latex] the JetPack function seems to be used, and I can't find a way to only remove this feature from the jetpack? Is there any known issue in having the two methods at the …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.