I'm really new to TeX and I'm trying to learn how the different levels of TeX relate to each other. As far as I understand LaTeX is a set of macros for Plain TeX with the purpose of making life easier, in that sense I wonder whether LaTeX will compile Plain Tex, since LaTeX is just a set of macros.
For instance, I've tried the very basic \bye command of Plain TeX with a LaTeX compiler and it didn't work, I would love to learn the logic behind it.
Edit:
I've figured that Plain TeX is also a set of macros, I thought that it was the pure TeX (which turned out to be called "Virgin TeX"), that explains why \bye won't be compiled in LaTeX but when I try this in LaTeX it still won't be compiled.
\byeis defined in plain tex, not a tex primitive so it is not defined in latex. – David Carlisle May 04 '21 at 08:22\begin{document}before typesetting any paragraphs, so you get the error that you state. – David Carlisle May 04 '21 at 08:33\everypar{}to get rid of that error then you would get an error from\endas you will be using the latex definition of\endwhich will be looking for an argument as in\end{table}and not finding one. – David Carlisle May 04 '21 at 08:37\endfor example. it also doesn't define most of the commands that are in plain tex eg anything to do with page breaking or figure insertion\topinsertand friends is not defined at all, so to get a plain tex document to work with latex you have to first undefine a lot of latex, then essentially input plain.tex before running your document. – David Carlisle May 04 '21 at 08:40