Equation input with preview in classic editor

I use WordPress as a headless CMS, and my frontend is made with React. There's no theme or live preview. I'm looking for a plugin to add/edit and preview equations (LaTeX) in the classic editor. This is an example of what I want, but with CKEditor: https://jsfiddle.net/isaul32/3wjrkLdv/ Most of the plugins I find are outdated, and some of them like KaTeX (which I'm planning to use its js library for frontend) only support live preview in gutenberg blocks. The reason …
Category: Web

Wordpress LaTeX symbol inline fails

I've got a problem with LaTeX and Wordpress. I want to put my formula inline with the rest of the text. I've tried several solutions, but none of them worked. I'm using Easy WP LaTeX plugin. Here's the formula: blablabla $$A = \left \{ a_{1}, ..., a_{n} \right \}!$$ blablablabla... I've tried this one, too: blablabla $$\inline A = \left \{ a_{1}, ..., a_{n} \right \}$$ blablablabla... But it's still in another line alone. What can be the problem?
Category: Web

Making a column vector in wordpress blog using Latex

I am new to blogging and using latex here. I want to make a column vector as I can do this in regular latex platforms like overleaf. But when I type $latex h = \begin{bmatrix} h_1 \\ h_2 \\ \vdots \\ h_n \end{bmatrix} $ in WordPress, nothing happens and I get the exact same output in the preview. So, how do I make a column vector?
Category: Web

WP-QuickLaTeX rending problem on WordPress hosted by bluehost

I came across the problem when trying to using QuickLatex on bluehost, but it does not seem to work for me as when I use it in the short code block with the following text. [latexpage] \[ R = \left( 1 + {r \over f} \right)^{f} -1 \] and resulting web page shows
Category: Web

Latex - center equation

I have blog hosted on Wordpress.com. I know that I can write math formulas using latex ($latex $), but I don't know how make these formulas centered (on a separate line). How to place latex formulas centered on a separate line?
Category: Web

Preserving backslashes in post_content

I am trying to preserve backslahes in "post_content". When I escape the content with another backslash, it gets saved into the database correctly. However the next time I load the page in admin to edit it, the backslash is unescaped. So when I save the page after edits, it disappears as PHP thinks I am trying to escape the character after it. Example: \\something in page gets saved as \something in the database. The next time I load the page …
Category: Web

Preparing Hardcopy and Online Page

I am writing a book and I want to post it online (into various web pages) and also want to have a hardcopy. The book has a lot of figures and math equations. How can I prepare the posts to minimize formatting? Currently, I am writing using LaTeX, but I understand it is not efficient at all, because copy and paste from a text file and then formatting for a web page take a lot of time. Is there any …
Category: Web

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

How do I put a latex drawn circuit in my wordpress website?

I made a wordpress website for online education. I have wrote latex code to draw a circuit. Now my question is how do I put this circuit into my website? I know one option that is to take a screenshot of the circuit and upload the image in your website. But is there any other sophisticated solution?
Category: Web

Is there a way to use latex \cite{reference} in wordpress?

I am using QuickLatex plugin and it works great. But when I tried to cite some references using \cite{paper1}, it did not seem work. [latexpage] Here is a citation \cite{example}. \begin{thebibliography} \bibitem{example} Robert C. Merton, On the Pricing of Corporate Debt: The Risk Structure of Interest Rates. \textit{Journal of Finance} 1974; \textbf{2}:449–470. \end{thebibliography} Any help?
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

How can I create LaTeX diagrams in WordPress?

I am writing a math blog in WordPress. I would like to include commutative diagrams and other simple diagrams in my blog. Which diagram library in LaTeX is available in WordPress? I am new to WordPress, and my site is hosted, so I'm not sure how to add plugins to a hosted site, so I'm looking for what is built-in to WordPress.
Category: Web

How do I convert a mathematical Microsoft Word document to a WordPress blog post?

I have a Microsoft Word document which I would like to convert to WordPress. The document is in Hebrew. It contains mathematical equations generated with MathType. It also contains images. Just copying and pasting the text of the document to the text area (in WordPress control pannel) wouldn't work because of the equations and images. What is the simplest way to do it?
Category: Web

xypic on Wordpress

Is it possible to use xypic on Wordpress (for those who don't know what xypic is, it's a LaTex tool for drawing diagrams- see Wikipedia)? On a related note, is it possible to use the LaTeX package chemfig on Wordpress?
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

LaTex MarkUp - align equations

I'm very elated by the fact that it has LaTeX support. I would like to know whether the \begin{align} \end{align} environment could be used, because it looks very good since the equations are aligned. If not how can i make this LaTeX command look better? \begin{align*} \int \frac{1}{(2x^{2}+4x-2)^{-\frac{3}{2}}} \ \textrm{dx} &= \frac{\sqrt{2}}{8} \int\frac{\sec{t} \cdot \tan{t}}{\tan^{3}{t}} \ \textrm{dt} \\\ &= \frac{\sqrt{2}}{8} \int\frac{\cos{t}}{\sin^{2}{t}} \ \textrm{dt} \end{align*}
Category: Web

Keeping LaTeX contents in line with non-latex text

I am using LaTex from the JetPack plugin, which is similar but not identical to TeX for maths, for my WordPress blog where I post course work. How do I get the generated formulae to centre on the line so the equals sign lines up with the normal text that I have typed? to see what I mean please check this blog entry. here are a the two offending pieces of LaTeX for the last two equations of the equations: …
Category: Web

How to deal with the confliction between PHP-Markdown and MathJax?

I use PHP-Markdown plugin in WordPress. In order to show the formula beautifully, I add some code to use MathJax. Like this: <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX", "output/HTML-CSS"], tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], displayMath: [ ['$$','$$'], ["\\[","\\]"] ], processEscapes: true }, "HTML-CSS": { availableFonts: ["TeX"] } }); </script> But something wrong happens. Once my formula contains at least two underlines, the MathJax doesn't work. Such as $$P_1, P_2$$, and the words between the …
Category: Web

About

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