dae/anki — pull request #41 by evandrocoan (2013-09-23 18:05:47+00:00)
Title: Makes clozes inside latex tags blue

I use a lot of latex inside anki clozes, and I too like it blue like other clozes, so I wrote this.
In the first time I manually added the tags to the notes, but this makes all clozes texts blue at the same time in multiple clozes.
So I wrote this code.

Userfull Latex example:
[latex]
Demonstre (prove) o seguinte argumento: \medskip \\
p $\wedge$ ($\neg$q $\rightarrow$ $\neg$p) $\Rightarrow$ q \medskip \\
\begin{tabular}{ l | l }
Passo $\qquad\qquad$ & Justificativa \\ \hline
1º p & {{c5::Hipótese}} \\
2º $\neg$q $\rightarrow$ $\neg$p & {{c4::Hipótese}} \\
3º ($\neg$q $\rightarrow$ $\neg$p) $\rightarrow$ (p $\rightarrow$ q) & {{c3::2, Tautologia (Contra-positiva)}} \\
4º p $\rightarrow$ q & {{c2::2, 3, Modus Ponens}} \\
5º q & {{c1::2, 4, Modus Ponens}} \\
\end{tabular}
[/latex]