added code environment to latex
extended math symbols, escapes and specials
added \providecommand
snippet for beamer frame