Yeah, but imagine memman.pdf as a Literate .tex source program which had two possible outputs:
- memman.pdf
- memtemplate.tex
where to get the latter one would just iterate through all the possibilities and choose options until one arrived at the end and a template matching the selections which were made was generated.
Maybe a project for the next time I re-read that...
It depends on your perspective, since you could similarly argue that it's already here [0] [1].
> I've always held that someone needs to put together a templated version where quite a large number of options are available, but commented out, so that one could work up a version of a document by just uncommenting the appropriate lines
You can Google "LaTeX templates" and get tons of results; the problem is that most LaTeX templates are terrible, probably because making one that is general-purpose, robust, and gives high-quality output is really hard. But theses are probably one the most common reasons for people to use LaTeX, and there are already hundreds of options available on CTAN [2].
[0]: https://www.texdev.net/2024/11/11/the-mythical-latex3
[1]: https://tug.org/TUGboat/tb44-1/tb136mitt-history.pdf#page=5
[2]: https://www.ctan.org/topic/dissertation