fixes an issues with media-heading for dist/thesis

Closes #771 

![screen shot 2014-08-21 at 3 01 33 pm](https://cloud.githubusercontent.com/assets/1656824/4004247/bf719ace-297e-11e4-9a80-ac76cad1f8eb.png)