Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anki complains about the translated latex syntax #4

Closed
louietan opened this issue Jan 22, 2018 · 1 comment
Closed

Anki complains about the translated latex syntax #4

louietan opened this issue Jan 22, 2018 · 1 comment
Labels

Comments

@louietan
Copy link
Owner

Anki can't process the content transformed from the snippet below

\begin{vmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots  & \vdots  & \ddots & \vdots  \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{vmatrix}

which becomes

<p>
[latex]    \begin{vmatrix}
    a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
    a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
    \vdots  & \vdots  & \ddots & \vdots  \\
    a_{m,1} & a_{m,2} & \cdots & a_{m,n}
    \end{vmatrix}
[/latex]</p>

Anki reports an error saying "Missing $ inserted".
It works when modified to the following style

<p>
[$]    \begin{vmatrix}
    a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
    a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
    \vdots  & \vdots  & \ddots & \vdots  \\
    a_{m,1} & a_{m,2} & \cdots & a_{m,n}
    \end{vmatrix}
[/$]</p>
@louietan
Copy link
Owner Author

louietan commented Jan 23, 2018

I don't have much experience with latex, but AFAIK the snippet in question should be surrounded with either inline or displayed math delimiters, so it seems to be the problem of the input, not the translation.
The last one works because [$] CONTENTS [/$] in Anki is just the shortened version of [latex]\begin{math} CONTENTS \end{math}[/latex]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant