[texhax] fmt to cls conversion

Reinhard Kotucha reinhard.kotucha at web.de
Thu Jun 21 23:29:01 CEST 2012

On 2012-06-21 at 17:43:55 +0530, Varaprasad Bodducherla, Prakash Rao wrote:

 > Can anybody help me, that how can we convert from .fmt to .cls
 > file?  Actually somebody has converted from cls to fmt by using
 > etex. Now we don't have source.

I fear that it's impossible.  TeX evaluates (expands) macros before
dumping a format file.  With other words, if the source file contains
the expression

  3 + 4

, the format file contains only the number 7 and there is no way to
find out whether it was 3 + 4 or 5 + 2 in the source code. 

The purpose of a format file is to avoid that all calculations have to
be done at runtime.  Hence it only contains the results of such
calculations and macro expansions.

The only solution which comes to my mind is to consult the author of
the class file, as proposed by William already.


Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.

More information about the texhax mailing list