Re-enabled LaTeX document generation.

Renamed HVSupply functions to be more clear.

Updated ISeg implemenation to be compatable with new code. Not tested(ie. doesn't work)