retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

ReText ignores LaTeX equations declared by inline $...$ blocks #387

Closed N0rbert closed 6 years ago

N0rbert commented 6 years ago

Steps to reproduce:

# Doing Math

Simple inline math is rendered as is $a^2 + b^2 = 
c^2$.

But LaTeX equation is rendered correctly:

\begin{equation}
J(\theta) = \frac 1 2 \sum_{i=1}^m (h_\theta(x^{(i)})-y^{(i)})^2
\end{equation}

Expected result:

Actual result:

Note: I'm running ReText 7.0.3 (installed with sudo pip3 install ReText) on Ubuntu 16.04 LTS amd64.

mitya57 commented 6 years ago

Hi!

You need to add mathjax to your extensions list as documented in the wiki.

fanxinping commented 6 years ago

Hi!
You need to add $$ like this image

N0rbert commented 6 years ago

Added mathjax to extensions. ReText part is fixed. Thank you, mitya57! Now I can use it as Rmd and bookdown editor.