Add html to latex support

* Add html2latex method
* Support pyout and displaystyle html to latex conversion
Prevent too large graphics in LaTeX documents

* Use width, height and keepaspectratio to prevent too large graphics
  which result in latex errors.