The check for defining paper size 2+ times does not consider that some definition is in comments, and only one is "active" 