Improved handling of underscores in URLs for links.
Add optional parameter "fraction" to ImageRef markup.
If not given, image width will be scaled to textwidth in Latex output.
If fraction is given, the image width will be the product of fraction and textwidth.