latex parser: optional args support