Adds a tex release function for pdf creation.