Closed johndpope closed 7 years ago
Hi John,
nice idea .. I never tried this. I will have a look into it, but would like to postpone that until after the next major update.
Thanks for your effort
Stefan
hi @goessner - fyi - I found these projects = im2latext https://github.com/search?utf8=%E2%9C%93&q=im2latex&type=
They have an training extensive which includes a list 12mb - of latex formulas -see here im2latex_formulas.lst https://zenodo.org/record/56198#.WVVXzBIrKgx
also -fyi - there's a treasure trove of machine learning latex functions here https://github.com/soulmachine/machine-learning-cheat-sheet
closing this
Summary
copy and pasting the test table into a .md file fails ...
Expected behavior
tests should pass. ...
Actual behavior
Markdown+Math Tests
i valid src render comment 0 π 1+1=21+1=2 1+1=21+1=2
simple equation starting and ending with numbers. 1 π 1+1<31+1<3 1+1<31+1<3
simple equation including special html character. 2 π xx xx
inline equation with single character 3 π \varphiΟ \varphiΟ
inline equation with single greek character 4 π You get 3$ if you solve 1+21+2 You get 3$ if you solve 1+21+2
use of currency symbol 5 π If you solve 1+21+2 you get $3 If you solve 1+21+2 you get $3
use of currency symbol 6 π \frac{1}{2} β2 β β1 ββ \frac{1}{2} β2 β β1 ββ
inline fraction 7 π \begin{pmatrix}x\y\end{pmatrix}( βx βy ββ ) \begin{pmatrix}x\y\end{pmatrix}( βx βy ββ )
inline column vector 8 π {\tilde\bold e}\alpha βe β~ ββ βΞ± ββ {\tilde\bold e}\alpha βe β~ ββ βΞ± ββ
inline bold vector notation 9 π a^{b}a βb ββ a^{b}a βb ββ
exponentiation 10 π a^ba ββ ββ b with a^a ββ ββ a^ba ββ ββ b with a^a ββ ββ
conjugate complex 11 π {e}_xe βx ββ
e_\alphae βΞ± ββ {e}_xe βx ββ
e_\alphae βΞ± ββ
greek index 12 π ParseError: KaTeX parse error: Expected 'EOF', got '$' at position 1: $Μ²c{\bold e}_x = β¦$ c{\bold e}x = a{\bold e}\alpha - b\tilde{\bold e}_\alphace βx ββ =ae βΞ± ββ βb βe β~ ββ βΞ± ββ
underline tests 13 π a1+1=21+1=2 1+1=21+1=2b cxxd a1+1=21+1=2 1+1=21+1=2b cxxd
non-numeric character before opening $ or after closing $ or both is allowed. 14 π xx $ xx $
following dollar character '$' is allowed. 15 π xx yy xx yy
consecutive inline equations. 16 π ParseError: KaTeX parse error: Expected 'EOF', got '$' at position 1: $Μ²1+1=2$ 1+1=21+1=2
display equation on its own single line. 17 π $$ 1+1=2 $$ 1+1=2 1+1=2
display equation with line breaks. 18 π $$\begin{matrix} f & = & 2 + x + 3 \ & = & 5 + x \end{matrix}$$ \begin{matrix} f & = & 2 + x + 3 \ & = & 5 + x \end{matrix} βf β ββ β= β= ββ β2+x+3 β5+x ββ
multiline equation. 19 π $$\begin{pmatrix}x_2 \ y_2 \end{pmatrix} = \begin{pmatrix} A & B \ C & D \end{pmatrix}\cdot \begin{pmatrix} x_1 \ y_1 \end{pmatrix}$$ \begin{pmatrix}x_2 \ y_2 \end{pmatrix} = \begin{pmatrix} A & B \ C & D \end{pmatrix}\cdot \begin{pmatrix} x_1 \ y_1 \end{pmatrix}( βx β2 ββ βy β2 ββ ββ )=( βA βC ββ βB βD ββ )β ( βx β1 ββ βy β1 ββ ββ )
vector equation. 20 π ParseError: KaTeX parse error: Expected 'EOF', got '$' at position 1: $Μ²f(x) = x^2 - 1$ (1) f(x) = x^2 - 1f(x)=x β2 ββ β1 (1)
display equation with equation number. 21 π codea-baβb codea-baβb
inline equation following code section. 22 π ``` code
code
a+ba+b
equation following code block. 23 π ``` code a+ba+b (1) code
a+ba+b (1)
numbered equation following code block. 24 π 1. 1+21+2 2. 2+32+3 1. 3+43+4
1+21+2
2+32+3
3+43+4
Equations in list. 25 π \sum{i=1}^nβ βi=1 βn ββ \sum{i=1}^nβ βi=1 βn ββ
Inline sum. 26 π ParseError: KaTeX parse error: Expected 'EOF', got '$' at position 1: $Μ²\sum{i=1}^n$ \sum{i=1}^n βi=1 ββ βn ββ
Sum without equation number. 27 π ParseError: KaTeX parse error: Expected 'EOF', got '$' at position 1: $Μ²\sum{i=1}^n$ (2) \sum{i=1}^n βi=1 ββ βn ββ (2)
Sum with equation number. 28 π $${\bold e}(\varphi) = \begin{pmatrix} \cos\varphi\sin\varphi \end{pmatrix}$$ (3) {\bold e}(\varphi) = \begin{pmatrix} \cos\varphi\\sin\varphi \end{pmatrix}e(Ο)=( βcosΟ βsinΟ ββ ) (3)
equation number always vertically aligned. 29 π > see a = b + ca=b+c
c^2=a^2+b^2c β2 ββ =a β2 ββ +b β2 ββ (2) c^2=a^2+b^2c β2 ββ =a β2 ββ +b β2 ββ see a = b + ca=b+c
c^2=a^2+b^2c β2 ββ =a β2 ββ +b β2 ββ (2)
c^2=a^2+b^2c β2 ββ =a β2 ββ +b β2 ββ
equations in blockquote. 30 π‘ 3$1+1=2$ $1+1=2$4 5$x$6 3$1+1=2$ $1+1=2$4 5$x$6
numeric character before opening $ or after closing $ is not allowed. 31 π‘ $ $ $ x$ $x $ $ $ $ x$ $x $
whitespace character after opening $ or before closing $ is not allowed. 32 π‘ $1+1=2$ $1+1=2$ 1+1=21+1=2 1+1=21+1=2
escaped dollars '$' are interpreted as dollar '$' characters.+ 33 π‘ 1+1=21+1=2$1+1=2$ 1+1=21+1=2$1+1=2$
at least one character (whitespace) is required between two inline formulas. 34 π‘ $1+1= 2$ $1+1= 2$
line break in inline equation is not allowed. ...
Steps to reproduce
Code example
Related links
Environment