[tex-live] Having a .fmt for different engines

Akira Kakuto kakuto at fsci.fuk.kindai.ac.jp
Fri Jan 5 12:45:14 CET 2007

Hi Norbert,

> On Fre, 05 Jan 2007, Hans Hagen wrote:
> > TEXFORMATS    = .;$TEXMF/web2c/{$engine,}
> > MPMEMS        = .;$TEXFORMATS
> > MFPOOL        = .;$TEXFORMATS
> > MPPOOL        = .;$TEXFORMATS
> > 
> > should do the trick unless mf and mp don't set $engine
> They don't set $engine, it does not work, tested it. 

They do set $engine. It does work. I'm using engine also for
mf and mpost since Olaf introduced it.

See texmfmp.c:
   xputenv("engine", TEXMFENGINENAME);

and texmfmp.h:
#ifdef MF
#define TEXMFPOOLNAME "mf.pool"
#define TEXMFENGINENAME "metafont"
#define DUMP_FILE basefile
#define DUMP_FORMAT kpse_base_format
#define writegf write_out
#define OUT_FILE gffile
#define OUT_BUF gfbuf
#endif /* MF */
#ifdef MP
#define TEXMFPOOLNAME "mp.pool"
#define TEXMFENGINENAME "metapost"
#define DUMP_FILE memfile
#define DUMP_FORMAT kpse_mem_format
#endif /* MP */

Note that "engine" name is not executable name in
the case of mf and mpost.

I think TEXFORMATS etc. should be
TEXFORMATS    = .;$TEXMF/web2c{/$engine,}
if one uses engine.

Best regards,

More information about the tex-live mailing list