Fixes bug #14 with a ratio scaling.
Merge branch 'mathtex' into addpoppler