In generate enable multiple tex files and remove duplicates