fixed latex figure handling, added latex example