I would like to address this question answer. As per my experience and knowledge if you would like to file a patent as well as publish the article on the same work then you have to file a patent first. Once you will get the filed patent number from the patent office then you can publish the article on that same work within 12 months. Suppose, if you published the work in any peer-review journal and if you would like to file a patent then it will not consider as a novel (nonobviousness) because your work is already in the public domain means it killed the novelty of your work. anyone, please correct me If I am wrong.
Thank you Apparav for you answer and clear explanation. I am also searching for complete and correct information regarding file a patent. Hope we will get some more answers in this platform.
Most countries have an absolute bar for patent applications filed after the publication becomes "available" to the public.
The US Patent Office gives you one year from publication to file for a patent. A list of other countries with 12-month or 6-month "grace periods" can be found at https://www.mewburn.com/law-practice-library/grace-periods-for-disclosure-of-an-invention-before-applying-for-a-patent
Indeed as Apparev has mentioned, one of the criteria for obtaining a patent grant is novelty, which means that (early) publication of your article will take away the novelty of your invention. However, in many jurisdictions, there is a so-called grace period which allows inventors to publish their inventions and still to obtain their patent provided that they file their patent application not too long after such a publication. But, this possibility is not available in all countries.
It is possible to have patent as well as copyright of the same work provided the person filing a patent for an invention is the same person who is the author of the published work which is a theoretical explanation of invention, otherwise it will not possible. A person cannot claiming invention on a copyrighted work of other person which has been published earlier than the claimed invention.