Use TaskType enumeration instead of integer constant according to LAHTeX