Support #13091
closedproblem with latex (math equations)
0%
Description
User Chris McCarthy writes:
I'm using my commons site for mathematics (courses I teach, conference sessions I organize).
The plug in "WP Latex" doesn't work well.
Sometimes, it will parse my latex and produce good output, other times I will get the "formula does not parse" error, even though the latex syntax is correct, short, and doesn't require any packages. I'm very good with latex and this is driving me crazy.
Here is an example of what works:
[latex] S_1 = \{ H, T \} [/latex]
Here is an example of doesn't work:
[latex] |S_3| = |S_1| \times |S_2| = 2 \times 4 = 8 [/latex]
The syntax is correct (I've tested it). So, I don't know what to do.
I'm very careful and I've done this over and over. About 1/4 of the time, the latex doesn't work and I can't figure out what is wrong with it, since it compiles on my desktop.
Can you make another latex plug in available, one that works better?
Or figure out an alternative way to get math equations into the webpage?
Maybe by uploading a webpage with math created off line... anything! Thanks.
Thanks!
Updated by Marilyn Weber over 4 years ago
I asked him if he has any suggestions. He replied:
Thanks for the speedy reply!
Most mathematicians and scientists who work with latex
would like a plugin that allows us to just
copy and paste latex from a latex document
(that we've created on our desktop)
into a wordpress page. I.e., that allows us to keep the $ $ equation indicators, rather than use the [latex] [/latex] short code.
Here are a few plugins that seem to do allow that, based on their descriptions. I think they are free and fairly current. I don't have experience with them.
Latex2HTML (free and current)
https://wordpress.org/plugins/latex2html/
Simple-mathjax
https://wordpress.org/plugins/simple-mathjax/
WPQuickLatex
https://wordpress.org/plugins/wp-quicklatex/
The wordpress page for latex plugins is:
https://wordpress.org/plugins/tags/latex/
Perhaps one of the problem with WP Latex (which is what the commons currently uses) is that it hasn't been up dated for over six years.
Updated by Boone Gorges over 4 years ago
- Status changed from New to Staged for Production Release
- Target version set to 1.17.0
First, I'll note that Jetpack has LaTeX support. It doesn't have the requested syntax, but it might work better than what we've got. https://jetpack.com/support/beautiful-math-with-latex/
Of the listed plugins, I like the way that simple-mathjax looks. I'm going to sneak it in for tomorrow's release. The reporter should have access to it by around noon EDT. If there are problems, we can reopen this ticket to discusse
Updated by Boone Gorges over 4 years ago
- Status changed from Staged for Production Release to Resolved