Extension:Blahtex/Syntax

BlahTex's input syntax is ever-so-slightly different from texvc (i.e. the current input syntax on wikipedia). In fact, blahtex's input parsing is much closer to TeX's parsing than texvc is. Here are some examples of where they differ:


 * The characters $ (enter/leave math mode) and % (denoting comments) are illegal in blahtex, but texvc treats them as literally the $ sign and the % sign. The correct TeX for these is \$ and \%.
 * You can leave out curly braces in texvc sometimes, where TeX wouldn't allow it. For example: "\hat\overrightarrow x" is OK on wikipedia now, but not cool in TeX or blahtex; it should be "\hat{\overrightarrow x}". Similarly "x^\left( y \right)" is legal in texvc but not in blahtex or TeX.
 * Because of the way TeX handles macros, certain constructs like "x^\cong" are illegal in TeX (needs to be "x^{\cong}), even though other ones like "x^=" are ok.

These differences between blahtex and texvc are entirely deliberate. The idea is that we should make it as easy as possible to translate wikitext into other formats, using standard tools. The closer we are to TeX, the easier it is to do this.