Add snippet for int, sum in tex