some style fixes + add latex support (fixes issue #11)