g(Math) uses LaTeX, a typesetting language based on TeX that was created by Donald Knuth, to render the math expressions. I have pre-populated some LaTeX buttons for your use. The full complement of LaTeX commands are not supported, although many are. If you are having difficulty finding the LaTeX command you want to create, check out these resources: