Latex backend: reformatted k.sty, changed some colors but not definitive. Moved some unused commands to the end.