manojg
March 23rd, 2005, 10:45 AM
Hi,
A latex file can be converted to ps file. Is it possible to convert a ps file to latex file (source file)?
Thank you.
Manojg
khp
March 23rd, 2005, 02:43 PM
No at least not in general.
It's generally not possible to get anything resembling the original latex code from a ps file generated from a latex file.
Latex is a higher level language than ps (OK PS has multiple levels which tends to confuse the issue). So many of the same issues apply as when trying to translate machine code to C code. Sure it's possible to do it by hand, in some simple cases, but getting a program to do it well in general, is more than difficult.
PS is not really a language you want to do much of anything with (except printing and creating pdf file) unless you really really have to.
Of course it's possible to embed PS documents in latex documents, but I guess that's probably not what you were looking for.