DRMF / texvcjs

A LaTeX validator/translator for TeX strings embedded in wikitext
0 stars 2 forks source link

Remove curly brackets from the outside of the whole expression if present. #16

Closed poortho closed 9 years ago

poortho commented 9 years ago

make it so that

\binom{x}{y}

returns

\binom{x}{y}

instead of

{\binom{x}{y}}
poortho commented 9 years ago

this applies to all LaTeX commands, not just

\binom
HowardCohl commented 9 years ago

LaTeX commands, not latex commands.

poortho commented 9 years ago

I have looked at this issue and I think I have a solution that works for all LaTeX commands in the program. However, there are some cases in the curlies variable in lib/render.js where deleting the case messes up the rendering of empty parameters and some other special commands. I have not implemented this or issue #15 since adding those thoroughly messes up the test cases and I haven't had time to change every single one of them.

poortho commented 9 years ago

Solved.