Latex Error Can Be Used Only In Preamble