anki icon indicating copy to clipboard operation
anki copied to clipboard

LaTeX curly brackets do not convert correctly

Open SubjunctiveQuaver opened this issue 3 years ago • 2 comments

I've noticed that LaTeX curly brackets do not convert correctly (according to standard LaTeX editing rules).

Fails: $\{STUFF\}$ [correct LaTeX syntax] -> \({STUFF}\) [appears wrong, as "STUFF"] Works: $\\{STUFF\\}$ [wrong LaTeX syntax] -> \(\{STUFF\}\) [appears correct, as "{STUFF}"]

Ideally, the correct LaTeX syntax results in the correct display/conversion in Anki; right now adding an extra backslash works, but is not accurate LaTeX syntax.

SubjunctiveQuaver avatar Oct 19 '21 13:10 SubjunctiveQuaver

\lbrace STUFF \rbrace fails too, because the \r gets translated as a line break.

Yandrik avatar Oct 29 '21 17:10 Yandrik

I have tried to fix these errors these days, my pr is not be merged now, you can download new version here and help me to test it. Besides \{\}, some other character errors have also been fixed(\#\$\&\_\\)

duguosheng avatar Jul 04 '22 15:07 duguosheng