fixes #112 - latex should now be rendered properly

Also addresses #83 but doesn't fix it entirely