A fork of ppold's but with LaTeX support...hopefully