I'm able to make fmt-files with the packages
mylatexformat in my Tex Live 2019 installation but I need a file
mycalclator.tex for a use case as follows
einitex *mycalculator.tex \dump
that does all the work.
I need a source-file which combines the LaTex format and a preamble with selected LaTeX packages e.g. calculator but also others and several combined for a bare eTeX engine.
Any existing options from the packages should be setable from the application file that will be compiled with the generated format.
- only concerns usage of Jim Fowler's Pascal to WebAssembly compiler web2js
Since I still have problems with the memory management of eTeX / LaTeX I'm going to test the answer with
Dumping eplain per
% Thomas Esser, 1998. public domain. % hyphenation is set up in language.dat \input bplain \input eplain \dump \endinput
This would correspond to scenario 2 ( fmt file is not available) but without RequirePackage