fix for info file generation

Every chapter name is converted to a 'node' when generating info (or tex) output. So no two chapters should have the same heading.
This change only changes chapter headings for info and latex output. The html output stays the same.