1 \newcount\embedcount\embedcount=0
14 \def\embedcountid{feta-embed}
15 \inputifexists{\embedcountid.aux}
17 % let's not overwrite -- and be sure to create new
19 \immediate\openout\embedfile=\embedcountid.aux
20 \immediate\write\embedfile{\embedcount=\the\embedcount}
21 \immediate\closeout\embedfile
25 % let's keep embedcount to see how many embedded mf's clutter your system
28 \immediate\openout\embedfile=\embedid.mf%
29 \global\advance\embedcount by 1%
30 \immediate\write\embedfile{\%Automatically generated by TeX (fetdefs.tex
32 \immediate\write\embedfile{\%Do not edit}%
33 \immediate\write\embedfile{#2}%
34 \immediate\closeout\embedfile%
35 \font\expandafter\embedid\expandafter=\embedid%