An invention to get patented has to be novel but if the details of the invention, if it is published then invention, ceases to be novel and hence cannot be patented after that.